baozhangchao 3 years ago
parent
commit
6c34db3f3b
1 changed files with 5 additions and 10 deletions
  1. 5
    10
      src/pages/staff/Organization/index.jsx

+ 5
- 10
src/pages/staff/Organization/index.jsx View File

224
   const { form, history } = props;
224
   const { form, history } = props;
225
   const { getFieldDecorator, setFieldsValue, validateFields } = form;
225
   const { getFieldDecorator, setFieldsValue, validateFields } = form;
226
   const { curriculumId } = history.location.query || {}
226
   const { curriculumId } = history.location.query || {}
227
-  function goBack() {
228
-    window.history.back(-1)
229
-  }
227
+
230
 
228
 
231
   const formItemLayout = {
229
   const formItemLayout = {
232
     //布局
230
     //布局
240
       <Row justify='center'>
238
       <Row justify='center'>
241
         <Col xs={{ span: 5, offset: 1 }} lg={{ span: 6, offset: 0 }}>
239
         <Col xs={{ span: 5, offset: 1 }} lg={{ span: 6, offset: 0 }}>
242
           <Card>
240
           <Card>
241
+            <Button type='danger' style={{ marginLeft: '2em' }} >
242
+              删除
243
+            </Button>
243
             <DirectoryTree multiple>
244
             <DirectoryTree multiple>
244
               <TreeNode title="parent 0" key="0-0">
245
               <TreeNode title="parent 0" key="0-0">
245
                 <TreeNode title="leaf 0-0" key="0-0-0" isLeaf />
246
                 <TreeNode title="leaf 0-0" key="0-0-0" isLeaf />
319
 
320
 
320
               <FormItem wrapperCol={{ span: 12, offset: 6 }}>
321
               <FormItem wrapperCol={{ span: 12, offset: 6 }}>
321
                 <Button loading={loading} type="primary" htmlType="">
322
                 <Button loading={loading} type="primary" htmlType="">
322
-                  保存
323
-                </Button>
324
-                <Button style={{ marginLeft: '2em' }} onClick={goBack}>
325
-                  返回
326
-                </Button>
327
-                <Button type='danger' style={{ marginLeft: '2em' }} >
328
-                  删除
323
+                  确认修改
329
                 </Button>
324
                 </Button>
330
               </FormItem>
325
               </FormItem>
331
             </Form>
326
             </Form>