xiatian 5 سال پیش
والد
کامیت
3046c85217
1فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 8 4
      src/modules/examwork/view/examStudent.vue

+ 8 - 4
src/modules/examwork/view/examStudent.vue

@@ -12,7 +12,6 @@
               remote
               :loading="queryExams4SearchLoading"
               filterable
-              clearable
               v-model="formSearch.examId"
               placeholder="请选择"
             >
@@ -1225,6 +1224,13 @@ export default {
     },
     //查询方法
     searchForm() {
+      if (!this.formSearch.examId) {
+        this.$notify({
+          type: "warning",
+          message: "请选择考试"
+        });
+        return;
+      }
       var param = new URLSearchParams(this.formSearch);
       this.loading = true;
       var url =
@@ -1714,10 +1720,8 @@ export default {
           ];
           this.formSearch.orgId = this.lc_id;
           this.examStudentForm.orgId = this.lc_id;
-          this.searchForm();
+          // this.searchForm();
         });
-      } else {
-        this.searchForm();
       }
     }
   },