Commit d807a806 by zhaochengxiang

资产目录编号新增后不允许修改

parent a4388a2e
......@@ -126,7 +126,8 @@ const UpdateDirectoryModal = (props) => {
showMessage('warn', '资产目录节点信息正在加载中...');
return;
}
form.resetFields();
form.setFieldsValue({ code: dir?.code, name: dir?.name||'', desc: dir?.desc||'', remarks: dir?.remarks||'', resourceType: dir?.resourceType });
}
}
......@@ -202,7 +203,7 @@ const UpdateDirectoryModal = (props) => {
name="code"
rules={[{ required: true, message: '必填项' }]}
>
<Input placeholder="请输入编号" />
<Input placeholder="请输入编号" disabled={action!=='add'} />
</Form.Item>
<Form.Item
label="名称"
......
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