Commit db0f971a by zhaochengxiang

新增或者编辑资产增加必选项

parent a5e0fbd9
...@@ -574,6 +574,7 @@ const AssetAction = (props) => { ...@@ -574,6 +574,7 @@ const AssetAction = (props) => {
<Form.Item <Form.Item
label={<div className='title-color'>{element.name||''}</div>} label={<div className='title-color'>{element.name||''}</div>}
name={element.name} name={element.name}
rules={[{ required: element.required }]}
key={_index} key={_index}
style={{ marginBottom: (_index===sameAttributeElements.length-1)? 0 : 15 }} style={{ marginBottom: (_index===sameAttributeElements.length-1)? 0 : 15 }}
> >
......
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