魏熙美 преди 5 години
родител
ревизия
cf5884e014
променени са 2 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 1
    0
      src/pages/activity/drainage/DrainageList.jsx
  2. 2
    1
      src/pages/customer/report/index.jsx

+ 1
- 0
src/pages/activity/drainage/DrainageList.jsx Целия файл

@@ -264,6 +264,7 @@ const header = (props) => {
264 264
   //重置搜索
265 265
   function handleReset () {
266 266
     props.form.resetFields();
267
+    gettaDrainage({ pageNum: 1, pageSize: 10 })
267 268
   }
268 269
 
269 270
 

+ 2
- 1
src/pages/customer/report/index.jsx Целия файл

@@ -75,10 +75,11 @@ function body(props) {
75 75
     */
76 76
   function handleReset() {
77 77
     props.form.resetFields();
78
+    getList({ pageNumber: 1, pageSize: 9 })
78 79
   }
79 80
 
80 81
   function exportReport() {
81
-    request({ ...apis.customer.customerRecommendReportExport, responseType: 'blob' })
82
+    request({ ...apis.customer.customerRecommendReportExport, params: { ...props.form.getFieldsValue() }, responseType: 'blob' })
82 83
       .then(response => {
83 84
         download(response)
84 85
       })