提交 b1100071 编写于 作者: G GraceWalk

修复 Topic Config 编辑表单不能正确回显当前值的问题

上级 b3f8b46f
......@@ -26,10 +26,14 @@ export const ConfigurationEdit = (props: any) => {
props.setVisible(false);
props.genData({ pageNo: 1, pageSize: 10 });
})
.catch((err: any) => { });
.catch((err: any) => {});
});
};
React.useEffect(() => {
form.setFieldsValue(props.record);
}, [props.record]);
return (
<Drawer
title={
......@@ -43,6 +47,7 @@ export const ConfigurationEdit = (props: any) => {
visible={props.visible}
onClose={() => props.setVisible(false)}
maskClosable={false}
destroyOnClose
extra={
<Space>
<Button size="small" onClick={onClose}>
......@@ -76,7 +81,7 @@ export const ConfigurationEdit = (props: any) => {
{props.record?.documentation || '-'}
</Col>
</Row>
<Form form={form} layout={'vertical'} initialValues={props.record}>
<Form form={form} layout={'vertical'}>
<Form.Item name="defaultValue" label="Kafka默认配置">
<Input disabled />
</Form.Item>
......
......@@ -77,7 +77,7 @@ export const getTopicMessagesColmns = () => {
key: 'partitionId',
},
{
title: 'offset',
title: 'Offset',
dataIndex: 'offset',
key: 'offset',
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册