魏超 5 years ago
parent
commit
ae0f7351db
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      src/pages/channel/independentList/index.jsx

+ 4
- 2
src/pages/channel/independentList/index.jsx View File

260
  * @returns
260
  * @returns
261
  */
261
  */
262
 function body (props) {
262
 function body (props) {
263
-  const { getFieldDecorator } = props.form
263
+  const { getFieldDecorator, getFieldsValue } = props.form
264
 
264
 
265
   // eslint-disable-next-line react-hooks/rules-of-hooks
265
   // eslint-disable-next-line react-hooks/rules-of-hooks
266
   const [dataSource, setDataSource] = useState({ records: [] })
266
   const [dataSource, setDataSource] = useState({ records: [] })
341
   }
341
   }
342
 
342
 
343
   function exportIndependen () {
343
   function exportIndependen () {
344
-    request({ ...apis.customer.customerRecommendAgentsExport, responseType: 'blob' })
344
+    const fieldsValue = getFieldsValue()
345
+    console.log('fieldsValue', fieldsValue)
346
+    request({ ...apis.customer.customerRecommendAgentsExport, responseType: 'blob', params: { ...fieldsValue } })
345
       .then(response => {
347
       .then(response => {
346
         download(response)
348
         download(response)
347
       }).catch(error => {
349
       }).catch(error => {