Commit ae52f174 by zhaochengxiang

增加分区方式

parent 83b40e16
......@@ -59,9 +59,21 @@ const PartitionCURD = (props) => {
}
},
{
title: '分区方式',
dataIndex: 'partitionMethod',
width: 180,
ellipsis: true,
render: (text, _, __) => {
return (
<Tooltip title={text||''}>
<span>{text||''}</span>
</Tooltip>
)
}
},
{
title: '定义',
dataIndex: 'definition',
width: 180,
ellipsis: true,
render: (text, _, __) => {
return (
......@@ -88,7 +100,6 @@ const PartitionCURD = (props) => {
title: '操作',
key: 'action',
width: 120,
render: (text,record) => {
return (
<div style={{ display: 'flex', alignItems: 'center' }}>
......
......@@ -24,7 +24,7 @@ const UpdatePartitionModal = (props) => {
if (visible) {
if (action !== 'add') {
form.setFieldsValue({ name: item?.name||'', cnName: item?.cnName||'', definition: item?.definition||'', remark: item?.remark||'' });
form.setFieldsValue({ name: item?.name||'', cnName: item?.cnName||'', partitionMethod: item?.partitionMethod||'', definition: item?.definition||'', remark: item?.remark||'' });
}
}
......@@ -101,10 +101,16 @@ const UpdatePartitionModal = (props) => {
<Input />
</Form.Item>
<Form.Item
label="分区方式"
name="partitionMethod"
>
<Input />
</Form.Item>
<Form.Item
label="定义"
name="definition"
>
<Input />
<Input.TextArea row={4} />
</Form.Item>
<Form.Item
label="描述"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment