|
@@ -1,9 +1,9 @@
|
1
|
1
|
import React, { useState, useEffect } from 'react';
|
2
|
2
|
import { Form, Input, Button, Icon, Select, message, Table, Divider, Tag, Pagination, Modal, DatePicker } from 'antd';
|
3
|
3
|
import { FormattedMessage } from 'umi-plugin-react/locale';
|
4
|
|
-import styles from '../../style/GoodsList.less';
|
5
|
4
|
import router from 'umi/router';
|
6
|
5
|
import moment from 'moment';
|
|
6
|
+import styles from '../../style/GoodsList.less';
|
7
|
7
|
import SelectCity from '../../../components/SelectButton/CitySelect'
|
8
|
8
|
import BuildSelect from '../../../components/SelectButton/BuildSelect'
|
9
|
9
|
import apis from '../../../services/apis';
|
|
@@ -11,6 +11,8 @@ import request from '../../../utils/request';
|
11
|
11
|
import BatchDel from './components/BatchDel';
|
12
|
12
|
import AddDemand from './components/AddDemand';
|
13
|
13
|
import AuthButton from '@/components/AuthButton';
|
|
14
|
+import withActions from '@/components/ActionList';
|
|
15
|
+import EditIcon from '@/components/EditIcon';
|
14
|
16
|
|
15
|
17
|
const { Option } = Select;
|
16
|
18
|
const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
|
|
@@ -106,10 +108,11 @@ const header = props => {
|
106
|
108
|
dataIndex: 'handle',
|
107
|
109
|
key: 'handle',
|
108
|
110
|
align: 'center',
|
109
|
|
- render: (text, record) => (
|
|
111
|
+ render: withActions((text, record) =>[ (
|
110
|
112
|
<AuthButton name="admin.h5Demand.detail.get" noRight={null}>
|
111
|
|
- <a style={{ color: '#66B3FF' }} onClick={toDetail(record)} >查看详情</a>
|
|
113
|
+ <EditIcon type="look" text="查看详情" onClick={toDetail(record)}></EditIcon>
|
112
|
114
|
</AuthButton>
|
|
115
|
+ )]
|
113
|
116
|
),
|
114
|
117
|
},
|
115
|
118
|
];
|