Commit 4ed8fb32 by zhaochengxiang

修改切换规则出现的问题

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