mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-03 11:28:12 +08:00
同步代码
This commit is contained in:
@@ -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 =
|
||||
|
||||
@@ -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);
|
||||
}}
|
||||
|
||||
@@ -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);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user