Commit d092e57a by zhaochengxiang

模型增加分区

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