Yansen 2 years ago
parent
commit
137df09447

BIN
public/favicon.ico View File


+ 2
- 4
src/pages/guaranteeTask/index.jsx View File

@@ -1,6 +1,7 @@
1 1
 import { deleteGuaranteeTask, getGuaranteeTaskList } from '@/services/api/guaranteeTask';
2 2
 import { queryTable } from '@/utils/request';
3 3
 import { PageContainer, ProTable } from '@ant-design/pro-components';
4
+import { Link } from 'umi';
4 5
 import { history } from '@umijs/max';
5 6
 import { Button, message, Popconfirm } from 'antd';
6 7
 import moment from 'moment';
@@ -99,11 +100,8 @@ const GuaranteeTaskList = (props) => {
99 100
           key={4}
100 101
           style={{ padding: 0 }}
101 102
           type="link"
102
-          onClick={() => {
103
-            history.push(`/guaranteeTask/print?id=${record.id}`);
104
-          }}
105 103
         >
106
-          打印
104
+          <Link target="_blank" to={`/guaranteeTask/print?id=${record.id}`}>打印</Link>
107 105
         </Button>,
108 106
       ],
109 107
     },

+ 1
- 0
src/pages/guaranteeTask/print/index.jsx View File

@@ -127,6 +127,7 @@ export default (props) => {
127 127
       <div className={Styles['print-btn']}>
128 128
         <Button type="primary" onClick={onPrint}>打印</Button>
129 129
       </div>
130
+      <div></div>
130 131
     </div>
131 132
   )
132 133
 }

+ 1
- 1
src/pages/guaranteeTask/print/style.less View File

@@ -85,7 +85,7 @@
85 85
 @media screen {
86 86
   .print-btn {
87 87
     text-align: center;
88
-    margin: 64px auto;
88
+    padding: 64px 0;
89 89
   }
90 90
 
91 91
   .print-table {