李志伟 3 years ago
parent
commit
c643d986d2
1 changed files with 4 additions and 9 deletions
  1. 4
    9
      src/pages/org/org/Edit.jsx

+ 4
- 9
src/pages/org/org/Edit.jsx View File

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