fangmingyue 2 年前
父节点
当前提交
5f633555dc
共有 2 个文件被更改,包括 8 次插入8 次删除
  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 查看文件

@@ -84,10 +84,10 @@ export default (props) => {
84 84
     return params;
85 85
   }
86 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 92
     startLoading();
93 93
     exportTaCheckAnswer({ ...addOnParams, ...params }).then(() => {

+ 4
- 4
src/pages/checkAnswer/survey/index.jsx 查看文件

@@ -87,10 +87,10 @@ export default (props) => {
87 87
   }
88 88
 
89 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 95
     startLoading();
96 96
     exportTaCheckAnswer({