fix: 修复扩缩/迁移副本无法选中默认 Topic 的问题 & 迁移副本 Topic 迁移时间单位支持分钟粒度

This commit is contained in:
GraceWalk
2022-09-13 14:42:21 +08:00
parent 8d22a0664a
commit b3f8b46f0f
4 changed files with 60 additions and 19 deletions

View File

@@ -30,8 +30,8 @@ const { TextArea } = Input;
const { Option } = Select;
const jobNameMap: any = {
expandAndReduce: '批量扩缩副本',
transfer: '批量迁移副本',
expandAndReduce: '扩缩副本',
transfer: '迁移副本',
};
interface DefaultConfig {
@@ -325,8 +325,7 @@ export default (props: DefaultConfig) => {
!jobId &&
Utils.request(Api.getTopicMetaData(+routeParams.clusterId))
.then((res: any) => {
const filterRes = res.filter((item: any) => item.type !== 1);
const topics = (filterRes || []).map((item: any) => {
const topics = (res || []).map((item: any) => {
return {
label: item.topicName,
value: item.topicName,