Commit 092baf20 by zhaochengxiang

资产管理

parent 0593d80b
...@@ -34,7 +34,11 @@ const UpdateDirectoryModal = (props) => { ...@@ -34,7 +34,11 @@ const UpdateDirectoryModal = (props) => {
}, },
callback: data => { callback: data => {
setDir(data); setDir(data);
onReset(); if(action === 'add') {
form.resetFields();
} else {
form.setFieldsValue({ code: data.code, name: data.name||'', order: data.order||'', remarks: data.remarks||'' });
}
} }
}) })
} }
......
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