Преглед изворни кода

标签组编号禁止修改

zhanghe пре 7 година
родитељ
комит
4cdbd8a130
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/routes/TagGroup/Edit/index.js

+ 3 - 1
src/routes/TagGroup/Edit/index.js

@@ -157,7 +157,9 @@ export default class GroupDetail extends PureComponent {
                 {getFieldDecorator('code', {
                   rules: [{ required: true, type: 'string', message: "编号为必填项!" }],
                   initialValue: code,
-                })(<Input placeholder="请输入" />)}
+                })(
+                  <Input disabled={operType === 'update' ? true : false} placeholder="请输入" />
+                )}
               </Form.Item>
               <Form.Item label="标签组名称:" hasFeedback {...formItemLayout}>
                 {getFieldDecorator('name', {