瀏覽代碼

Merge branch 'dev' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager into dev

zhoulisen 5 年之前
父節點
當前提交
f0da38777d
共有 1 個檔案被更改,包括 4 行新增2 行删除
  1. 4
    2
      src/pages/channel/independentList/index.jsx

+ 4
- 2
src/pages/channel/independentList/index.jsx 查看文件

@@ -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 => {