fangmingyue 2 years ago
parent
commit
5f633555dc
2 changed files with 8 additions and 8 deletions
  1. 4
    4
      src/pages/checkAnswer/loc/index.jsx
  2. 4
    4
      src/pages/checkAnswer/survey/index.jsx

+ 4
- 4
src/pages/checkAnswer/loc/index.jsx View File

84
     return params;
84
     return params;
85
   }
85
   }
86
   const onExport = () => {
86
   const onExport = () => {
87
-    // if (!paramsRef.current) {
88
-    //   notificationApi.warning({ message: '请先进行条件查询' });
89
-    //   return
90
-    // }
87
+    if (!paramsRef.current) {
88
+      notificationApi.warning({ message: '请先进行条件查询' });
89
+      return
90
+    }
91
 
91
 
92
     startLoading();
92
     startLoading();
93
     exportTaCheckAnswer({ ...addOnParams, ...params }).then(() => {
93
     exportTaCheckAnswer({ ...addOnParams, ...params }).then(() => {

+ 4
- 4
src/pages/checkAnswer/survey/index.jsx View File

87
   }
87
   }
88
 
88
 
89
   const onExport = () => {
89
   const onExport = () => {
90
-    // if (!paramsRef.current) {
91
-    //   notificationApi.warning({ message: '请先进行条件查询' });
92
-    //   return
93
-    // }
90
+    if (!paramsRef.current) {
91
+      notificationApi.warning({ message: '请先进行条件查询' });
92
+      return
93
+    }
94
 
94
 
95
     startLoading();
95
     startLoading();
96
     exportTaCheckAnswer({
96
     exportTaCheckAnswer({