Procházet zdrojové kódy

试题列表查询必选课程

xiatian před 2 roky
rodič
revize
b8559d68d3
1 změnil soubory, kde provedl 10 přidání a 1 odebrání
  1. 10 1
      src/modules/questions/views/Question.vue

+ 10 - 1
src/modules/questions/views/Question.vue

@@ -457,6 +457,13 @@ export default {
       this.searchQues();
     },
     searchQues() {
+      if (!this.formSearch.courseNo) {
+        this.$notify({
+          message: "请选择课程",
+          type: "warning",
+        });
+        return;
+      }
       this.tableData = [];
       var url =
         QUESTION_API + "/question/" + this.currentPage + "/" + this.pageSize;
@@ -736,7 +743,9 @@ export default {
           secondPropertyId: "",
         };
       }
-      this.searchQues();
+      if (this.formSearch.courseNo) {
+        this.searchQues();
+      }
     },
   },
 };