同步代码

This commit is contained in:
zengqiao
2022-08-23 19:01:53 +08:00
parent e90c5003ae
commit e1514c901b
76 changed files with 796 additions and 577 deletions

View File

@@ -97,7 +97,7 @@ export default (props: any) => {
className="preview-task-plan-drawer"
maskClosable={false}
destroyOnClose
// closeIcon={<ArrowLeftOutlined />}
// closeIcon={<ArrowLeftOutlined />}
>
<Table
rowKey={'topicName'}
@@ -130,6 +130,8 @@ export default (props: any) => {
<Select
value={reassignBrokerIdList}
mode="multiple"
maxTagCount={'responsive'}
allowClear
onChange={(selBrokerIds) => {
let reassignBrokerIdListEditStatusMapCopy = JSON.parse(JSON.stringify(reassignBrokerIdListEditStatusMap));
reassignBrokerIdListEditStatusMapCopy[topicRecord.topicName][partitionRecord.partitionId].reassignBrokerIdList =

View File

@@ -30,8 +30,8 @@ const { TextArea } = Input;
const { Option } = Select;
const jobNameMap: any = {
expandAndReduce: '批量扩缩',
transfer: '批量迁移',
expandAndReduce: '批量扩缩副本',
transfer: '批量迁移副本',
};
interface DefaultConfig {
@@ -454,6 +454,8 @@ export default (props: DefaultConfig) => {
<Select
placeholder="请选择Topic可多选"
mode="multiple"
maxTagCount={'responsive'}
allowClear
onChange={(v: any) => {
setTopicSelectValue(v);
}}
@@ -473,6 +475,8 @@ export default (props: DefaultConfig) => {
<Select
placeholder="请选择Broker可多选"
mode="multiple"
maxTagCount={'responsive'}
allowClear
onChange={(v: any) => {
setSelectBrokerList(v);
}}

View File

@@ -31,8 +31,8 @@ const { TextArea } = Input;
const { Option } = Select;
const jobNameMap: any = {
expandAndReduce: '批量扩缩',
transfer: '批量迁移',
expandAndReduce: '批量扩缩副本',
transfer: '批量迁移副本',
};
interface DefaultConfig {
@@ -101,6 +101,7 @@ export default (props: DefaultConfig) => {
{
title: '需迁移Partition',
dataIndex: 'partitionIdList',
width: 220,
render: (v: any, r: any, i: number) => {
return (
<Select
@@ -109,6 +110,8 @@ export default (props: DefaultConfig) => {
defaultValue={v}
value={needMovePartitions[i]}
mode="multiple"
maxTagCount={'responsive'}
allowClear
onChange={(a: any) => {
const needMovePartitionsCopy = JSON.parse(JSON.stringify(needMovePartitions));
needMovePartitionsCopy[i] = a;
@@ -468,6 +471,8 @@ export default (props: DefaultConfig) => {
<Select
placeholder="请选择Topic可多选"
mode="multiple"
maxTagCount={'responsive'}
allowClear
onChange={(v: any) => {
setTopicSelectValue(v);
}}