baozhangchao 3 vuotta sitten
vanhempi
commit
6c34db3f3b
1 muutettua tiedostoa jossa 5 lisäystä ja 10 poistoa
  1. 5
    10
      src/pages/staff/Organization/index.jsx

+ 5
- 10
src/pages/staff/Organization/index.jsx Näytä tiedosto

@@ -224,9 +224,7 @@ const userTree = React.forwardRef((props, ref) => {
224 224
   const { form, history } = props;
225 225
   const { getFieldDecorator, setFieldsValue, validateFields } = form;
226 226
   const { curriculumId } = history.location.query || {}
227
-  function goBack() {
228
-    window.history.back(-1)
229
-  }
227
+
230 228
 
231 229
   const formItemLayout = {
232 230
     //布局
@@ -240,6 +238,9 @@ const userTree = React.forwardRef((props, ref) => {
240 238
       <Row justify='center'>
241 239
         <Col xs={{ span: 5, offset: 1 }} lg={{ span: 6, offset: 0 }}>
242 240
           <Card>
241
+            <Button type='danger' style={{ marginLeft: '2em' }} >
242
+              删除
243
+            </Button>
243 244
             <DirectoryTree multiple>
244 245
               <TreeNode title="parent 0" key="0-0">
245 246
                 <TreeNode title="leaf 0-0" key="0-0-0" isLeaf />
@@ -319,13 +320,7 @@ const userTree = React.forwardRef((props, ref) => {
319 320
 
320 321
               <FormItem wrapperCol={{ span: 12, offset: 6 }}>
321 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 324
                 </Button>
330 325
               </FormItem>
331 326
             </Form>