|
@@ -6,7 +6,6 @@ import apis from '../../../services/apis';
|
6
|
6
|
import Styles from './style.less';
|
7
|
7
|
import { router } from 'umi';
|
8
|
8
|
import AuthButton from '@/components/AuthButton';
|
9
|
|
-import axios from 'umi-request';
|
10
|
9
|
|
11
|
10
|
|
12
|
11
|
const { Option } = Select;
|
|
@@ -83,8 +82,9 @@ function body(props) {
|
83
|
82
|
*
|
84
|
83
|
*/
|
85
|
84
|
function exportRecommendCustomer() {
|
86
|
|
- axios(apis.customer.customerRecommendRecommenderExport.url, {
|
87
|
|
- ...apis.customer.customerRecommendRecommenderExport, responseType: 'blob',
|
|
85
|
+ request({
|
|
86
|
+ ...apis.customer.customerRecommendRecommenderExport,
|
|
87
|
+ responseType: 'blob',
|
88
|
88
|
}).then(response => {
|
89
|
89
|
// console.log('response: ', response)
|
90
|
90
|
download(response)
|
|
@@ -213,10 +213,9 @@ function body(props) {
|
213
|
213
|
</Button>
|
214
|
214
|
</Form.Item>
|
215
|
215
|
</Form>
|
216
|
|
- <Button type="primary" onClick={() => exportRecommendCustomer()} className={Styles.SubmitButton} style={{ marginTop: '5px', marginBottom: '5px' }}>
|
|
216
|
+ <Button type="primary" onClick={() => exportRecommendCustomer()} className={Styles.SubmitButton} style={{ marginTop: '5px', marginBottom: '5px', display: 'none' }}>
|
217
|
217
|
导出数据
|
218
|
218
|
</Button>
|
219
|
|
-
|
220
|
219
|
<Table dataSource={dataSource.records} columns={columns} pagination={{ total: dataSource.total, onChange }} />
|
221
|
220
|
</>
|
222
|
221
|
);
|