|
@@ -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
|
|