Commit ae52f174 by zhaochengxiang

增加分区方式

parent 83b40e16
...@@ -59,9 +59,21 @@ const PartitionCURD = (props) => { ...@@ -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: '定义', title: '定义',
dataIndex: 'definition', dataIndex: 'definition',
width: 180,
ellipsis: true, ellipsis: true,
render: (text, _, __) => { render: (text, _, __) => {
return ( return (
...@@ -88,7 +100,6 @@ const PartitionCURD = (props) => { ...@@ -88,7 +100,6 @@ const PartitionCURD = (props) => {
title: '操作', title: '操作',
key: 'action', key: 'action',
width: 120, width: 120,
render: (text,record) => { render: (text,record) => {
return ( return (
<div style={{ display: 'flex', alignItems: 'center' }}> <div style={{ display: 'flex', alignItems: 'center' }}>
......
...@@ -24,7 +24,7 @@ const UpdatePartitionModal = (props) => { ...@@ -24,7 +24,7 @@ const UpdatePartitionModal = (props) => {
if (visible) { if (visible) {
if (action !== 'add') { 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) => { ...@@ -101,10 +101,16 @@ const UpdatePartitionModal = (props) => {
<Input /> <Input />
</Form.Item> </Form.Item>
<Form.Item <Form.Item
label="分区方式"
name="partitionMethod"
>
<Input />
</Form.Item>
<Form.Item
label="定义" label="定义"
name="definition" name="definition"
> >
<Input /> <Input.TextArea row={4} />
</Form.Item> </Form.Item>
<Form.Item <Form.Item
label="描述" 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