李志伟 3 年之前
父節點
當前提交
08ecbc107f
共有 1 個檔案被更改,包括 8 行新增4 行删除
  1. 8
    4
      src/pages/org/org/Edit.jsx

+ 8
- 4
src/pages/org/org/Edit.jsx 查看文件

63
               name="orgName"
63
               name="orgName"
64
               rules={[{ required: true, message: '请填写企业名称!' }]}
64
               rules={[{ required: true, message: '请填写企业名称!' }]}
65
             >
65
             >
66
-              <Input />
66
+              <Input readOnly={id} />
67
             </Form.Item>
67
             </Form.Item>
68
 
68
 
69
             <Form.Item wrapperCol={{ offset: 8, span: 16 }}>
69
             <Form.Item wrapperCol={{ offset: 8, span: 16 }}>
70
-              <Button type="primary" htmlType="submit" loading={loading}>
71
-                保存
72
-              </Button>
70
+              {
71
+                id ?
72
+                  <Button onClick={()=>history.go(-1)}>返回</Button> :
73
+                  <Button type="primary" htmlType="submit" loading={loading}>
74
+                    保存
75
+                  </Button>
76
+              }
73
             </Form.Item>
77
             </Form.Item>
74
           </Form>
78
           </Form>
75
         </div>
79
         </div>