Commit d092e57a by zhaochengxiang

模型增加分区

parent 90128c52
...@@ -91,6 +91,8 @@ const AttributesInput = ({ value = [], attributes, onChange }) => { ...@@ -91,6 +91,8 @@ const AttributesInput = ({ value = [], attributes, onChange }) => {
const onAttributeChange = (value, index) => { const onAttributeChange = (value, index) => {
console.log('att', indexedEasyDataModelAttributes);
console.log('value', value);
if (indexedEasyDataModelAttributes.findIndex(item => item.iid === value) !== -1) { if (indexedEasyDataModelAttributes.findIndex(item => item.iid === value) !== -1) {
showMessage('warn', '字段不能重复选择'); showMessage('warn', '字段不能重复选择');
return; return;
...@@ -248,7 +250,7 @@ const ImportActionPartition = (props) => { ...@@ -248,7 +250,7 @@ const ImportActionPartition = (props) => {
const row = await form.validateFields(); const row = await form.validateFields();
if (!row.partitionType?.name) { if (!row.partitionType?.name) {
form.setFields([{ name: 'partitionType', errors: ['必须选择分区名称'] }]); form.setFields([{ name: 'partitionType', errors: ['必须选择分区类型'] }]);
return; return;
} }
...@@ -295,7 +297,7 @@ const ImportActionPartition = (props) => { ...@@ -295,7 +297,7 @@ const ImportActionPartition = (props) => {
} }
}, },
{ {
title: '分区名称', title: '分区类型',
width: 200, width: 200,
dataIndex: 'partitionType', dataIndex: 'partitionType',
editable: true, editable: true,
......
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