Yansen 2 年前
父节点
当前提交
7e5c2b948f
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1
    1
      config/routes.js
  2. 2
    1
      src/pages/guaranteeTask/Edit/BasicForm.jsx

+ 1
- 1
config/routes.js 查看文件

@@ -83,7 +83,7 @@
83 83
     path: '/guaranteeTask/edit',
84 84
     name: '任务详情',
85 85
     icon: 'borderBottom',
86
-    // hideInMenu: true,
86
+    hideInMenu: true,
87 87
     component: './guaranteeTask/Edit/index',
88 88
   },
89 89
   {

+ 2
- 1
src/pages/guaranteeTask/Edit/BasicForm.jsx 查看文件

@@ -1,6 +1,7 @@
1 1
 import React, { useState, useEffect } from 'react';
2 2
 import moment from 'moment';
3 3
 import { Link } from 'umi';
4
+import { history } from '@umijs/max';
4 5
 import { Button, Row, Col, Form, Input, InputNumber, DatePicker, notification } from 'antd';
5 6
 import { addGuaranteeTask, updateGuaranteeTask } from '@/services/api/guaranteeTask';
6 7
 
@@ -199,7 +200,7 @@ export default (props) => {
199 200
       <Row gutter={48}>
200 201
         <Col offset={6} span={12}>
201 202
           <Button type="primary" htmlType="submit" loading={loading}>提交</Button>
202
-          <Button style={{ marginLeft: '48px' }}>返回</Button>
203
+          <Button style={{ marginLeft: '48px' }} onClick={() => history.back()}>返回</Button>
203 204
           <Button style={{ marginLeft: '48px' }}>
204 205
             <Link target="_blank" to={`/guaranteeTask/print?id=${id}`}>打印预览</Link>
205 206
           </Button>