|
@@ -333,7 +333,12 @@ function body(props) {
|
333
|
333
|
}
|
334
|
334
|
|
335
|
335
|
function exportIndependen() {
|
|
336
|
+ request({ ...apis.customer.customerRecommendAgentsExport, responseType: 'blob' })
|
|
337
|
+ .then(response => {
|
|
338
|
+ download(response)
|
|
339
|
+ }).catch(error => {
|
336
|
340
|
|
|
341
|
+ })
|
337
|
342
|
}
|
338
|
343
|
|
339
|
344
|
function download(data) {
|
|
@@ -432,7 +437,7 @@ function body(props) {
|
432
|
437
|
</Button>
|
433
|
438
|
</Form.Item>
|
434
|
439
|
</Form>
|
435
|
|
- <Button type="primary" onClick={() => exportIndependen()} className={Styles.SubmitButton} style={{ marginTop: '5px', marginBottom: '5px', display: 'none' }}>
|
|
440
|
+ <Button type="primary" onClick={() => exportIndependen()} className={Styles.SubmitButton} style={{ marginTop: '5px', marginBottom: '5px' }}>
|
436
|
441
|
导出数据
|
437
|
442
|
</Button>
|
438
|
443
|
<Table dataSource={dataSource.records} columns={columns} pagination={{ total: dataSource.total, onChange }} />
|