Yansen 5 anos atrás
pai
commit
4859efb666

+ 10
- 11
src/pages/house/preSelect/list/index.jsx Ver arquivo

@@ -1,19 +1,18 @@
1 1
 import React, { useState, useEffect } from 'react';
2
-import { Form, Input, Button, Icon, Select, message, Table, Divider, Tag, Pagination, Modal, DatePicker, notification } from 'antd';
3
-import { FormattedMessage } from 'umi-plugin-react/locale';
2
+import { Form, Input, Button, Icon, Select, message, Table, Pagination, Modal, notification } from 'antd';
4 3
 import router from 'umi/router';
5 4
 import moment from 'moment';
6
-import styles from '../../../style/GoodsList.less';
7
-import SelectCity from '../../../../components/SelectButton/CitySelect'
5
+import AuthButton from '@/components/AuthButton';
6
+import Navigate from '@/components/Navigate';
7
+import withActions from '@/components/ActionList';
8
+import EditIcon from '@/components/EditIcon';
8 9
 import BuildSelect from '../../../../components/SelectButton/BuildSelect'
9 10
 import apis from '../../../../services/apis';
10 11
 import request from '../../../../utils/request';
11
-import AuthButton from '@/components/AuthButton';
12 12
 import PreSelectHelpDoc from '../edit/components/PreSelectHelpDoc';
13
-import Navigate from '@/components/Navigate';
13
+import styles from '../../../style/GoodsList.less';
14 14
 
15 15
 const { Option } = Select;
16
-const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
17 16
 
18 17
 const header = props => {
19 18
   // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -166,11 +165,11 @@ const header = props => {
166 165
       dataIndex: '',
167 166
       key: '',
168 167
       align: 'center',
169
-      render: (text, record) => (
168
+      render: withActions((text, record) => [
170 169
         <AuthButton name="admin.preselection.detail.get" noRight={null}>
171
-          <a style={{ color: '#66B3FF' }} onClick={toAddHouse(record)} >查看详情</a>
172
-        </AuthButton>
173
-      ),
170
+          <EditIcon type="look" text="查看详情" onClick={toAddHouse(record)} ></EditIcon>
171
+        </AuthButton>,
172
+      ]),
174 173
     },
175 174
   ];
176 175
 

+ 7
- 7
src/pages/system/document/list.jsx Ver arquivo

@@ -3,6 +3,8 @@ import { Table, Form, Icon, Input, Button, message  } from 'antd'
3 3
 import { router } from 'umi';
4 4
 import moment from 'moment';
5 5
 import Navigate from '@/components/Navigate';
6
+import withActions from '@/components/ActionList';
7
+import EditIcon from '@/components/EditIcon';
6 8
 import request from '../../../utils/request';
7 9
 import apis from '../../../services/apis';
8 10
 import AuthButton from '../../../components/AuthButton';
@@ -111,13 +113,11 @@ function body(props) {
111 113
       dataIndex: 'documentVerifyId',
112 114
       key: 'documentVerifyId',
113 115
       align: 'center',
114
-      render: (x,row) => (
115
-        <>
116
-          <AuthButton name="admin.documentVerify.id.get" noRight={null}>
117
-            <span style={{ color: '#1990FF',cursor: 'pointer' }} onClick={()=>audit(row)}>{ row.unverified === 0 ? '查看' : '审核' }</span>
118
-           </AuthButton>
119
-        </>
120
-      )
116
+      render: withActions((x,row) => [
117
+        <AuthButton name="admin.documentVerify.id.get" noRight={null}>
118
+          <EditIcon type={row.unverified === 0 ? 'look' : ''} text={row.unverified === 0 ? '查看' : '审核'} onClick={()=>audit(row)}></EditIcon>
119
+        </AuthButton>,
120
+      ])
121 121
     },
122 122
   ]
123 123