|
@@ -268,7 +268,7 @@ class InviteTable extends React.Component {
|
268
|
268
|
* @returns
|
269
|
269
|
*/
|
270
|
270
|
function body (props) {
|
271
|
|
- const { getFieldDecorator } = props.form
|
|
271
|
+ const { getFieldDecorator, getFieldsValue } = props.form
|
272
|
272
|
|
273
|
273
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
274
|
274
|
const [dataSource, setDataSource] = useState({ records: [] })
|
|
@@ -349,7 +349,9 @@ function body (props) {
|
349
|
349
|
}
|
350
|
350
|
|
351
|
351
|
function exportIndependen () {
|
352
|
|
- request({ ...apis.customer.customerRecommendAgentsExport, responseType: 'blob' })
|
|
352
|
+ const fieldsValue = getFieldsValue()
|
|
353
|
+ console.log('fieldsValue', fieldsValue)
|
|
354
|
+ request({ ...apis.customer.customerRecommendAgentsExport, responseType: 'blob', params: { ...fieldsValue } })
|
353
|
355
|
.then(response => {
|
354
|
356
|
download(response)
|
355
|
357
|
}).catch(error => {
|