xiatian 4 anos atrás
pai
commit
cebf815e5e

+ 8 - 1
src/modules/marking/views/export_task_list.vue

@@ -184,7 +184,6 @@ export default {
   },
   created() {
     this.getMarkWorks();
-    this.doSearch(1);
   },
   methods: {
     getMarkWorks() {
@@ -198,6 +197,14 @@ export default {
         });
     },
     doSearch(pageNo) {
+      if (!this.formSearch.workId) {
+        this.$notify({
+          title: "警告",
+          message: "请选择评卷名称",
+          type: "warning",
+        });
+        return false;
+      }
       this.formSearch.pageNo = pageNo;
 
       this.loading = true;

+ 9 - 1
src/modules/oe/views/export_task_list.vue

@@ -177,7 +177,6 @@ export default {
   },
   created() {
     this.getExams();
-    this.doSearch(1);
   },
   methods: {
     getExams(examName) {
@@ -197,6 +196,15 @@ export default {
         });
     },
     doSearch(pageNo) {
+      if (!this.formSearch.examId) {
+        this.$notify({
+          title: "警告",
+          message: "请选择考试",
+          type: "warning",
+          duration: 2000,
+        });
+        return false;
+      }
       this.formSearch.pageNo = pageNo;
 
       this.loading = true;