Commit 4ed8fb32 by zhaochengxiang

修改切换规则出现的问题

parent f80d32d1
......@@ -106,7 +106,9 @@ const ImportAction = (props) => {
});
(modelerData.easyDataModelerDataModelAttributes||[]).forEach((_attribute, index) => {
_hints.push(_attribute.cnName||'');
if (_attribute.name && _attribute.name!=='') {
_hints.push(_attribute.cnName);
}
});
setConstraint(currentConstraint);
......
......@@ -240,7 +240,7 @@ const ImportModal = (props) => {
forceRender
visible={visible}
title={title}
width={1000}
width={step===2?1000:520}
maskClosable={false}
destroyOnClose
onCancel={() => {
......
......@@ -89,6 +89,8 @@ const UpdateTreeItemModal = (props) => {
_action = item ? 'sub' : 'root';
}
form.setFields([{ name: 'name', errors: [] }, { name: 'remark', error: [] }])
if (type === 'add') {
form.setFieldsValue({ action: _action, name: '', remark: '' });
} else {
......@@ -144,7 +146,7 @@ const UpdateTreeItemModal = (props) => {
}
});
} catch (errInfo) {
console.log('Validate Failed:', errInfo);
setConfirmLoading(false);
}
}
......
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