Michael Wang 6 rokov pred
rodič
commit
f1473d9199

+ 6 - 1
src/modules/basic/view/campus.vue

@@ -42,7 +42,7 @@
               size="small"
               type="primary"
               icon="el-icon-search"
-              @click="searchForm"
+              @click="handleSearchBtn"
             >
               查询
             </el-button>
@@ -361,6 +361,7 @@ export default {
     },
     handleSizeChange(val) {
       this.pageSize = val;
+      this.currentPage = 1;
       this.searchForm();
     },
     toExamSite(row) {
@@ -389,6 +390,10 @@ export default {
       this.currentPage = val;
       this.searchForm();
     },
+    handleSearchBtn() {
+      this.currentPage = 1;
+      this.searchForm();
+    },
     //查询
     searchForm() {
       this.loading = true;

+ 6 - 1
src/modules/basic/view/course.vue

@@ -80,7 +80,7 @@
               size="small"
               type="primary"
               icon="el-icon-search"
-              @click="searchForm"
+              @click="handleSearchBtn"
               >查询</el-button
             >
             <el-button size="small" @click="resetPrimaryForm"> 重置 </el-button>
@@ -598,6 +598,7 @@ export default {
   methods: {
     handleSizeChange(val) {
       this.pageSize = val;
+      this.currentPage = 1;
       this.searchForm();
     },
     dialogBeforeClose() {
@@ -732,6 +733,10 @@ export default {
           this.specialtyLoading4Search = false;
         });
     },
+    handleSearchBtn() {
+      this.currentPage = 1;
+      this.searchForm();
+    },
     searchForm() {
       var param = new URLSearchParams(this.formSearch);
       var url =

+ 6 - 1
src/modules/basic/view/school.vue

@@ -20,7 +20,7 @@
             size="small"
             type="primary"
             icon="search"
-            @click="searchForm"
+            @click="handleSearchBtn"
           >
             查询
           </el-button>
@@ -381,6 +381,7 @@ export default {
     },
     handleSizeChange(val) {
       this.pageSize = val;
+      this.currentPage = 1;
       this.searchForm();
     },
     getStatus(status) {
@@ -403,6 +404,10 @@ export default {
       this.currentPage = val;
       this.searchForm();
     },
+    handleSearchBtn() {
+      this.currentPage = 1;
+      this.searchForm();
+    },
     //查询
     searchForm() {
       this.loading = true;

+ 6 - 1
src/modules/basic/view/specially.vue

@@ -47,7 +47,7 @@
               size="small"
               type="primary"
               icon="el-icon-search"
-              @click="searchForm"
+              @click="handleSearchBtn"
             >
               查询
             </el-button>
@@ -578,6 +578,10 @@ export default {
           this.courseLoading4AddRelation = false;
         });
     },
+    handleSearchBtn() {
+      this.currentPage = 1;
+      this.searchForm();
+    },
     //查询
     searchForm() {
       var param = new URLSearchParams(this.formSearch);
@@ -608,6 +612,7 @@ export default {
     },
     handleCurrentChange(val) {
       this.currentPage = val;
+      this.currentPage = 1;
       this.searchForm();
     },
     handleCourseCurrentChange(val) {

+ 7 - 2
src/modules/basic/view/user.vue

@@ -55,7 +55,7 @@
               size="small"
               type="primary"
               icon="el-icon-search"
-              @click="search"
+              @click="handleSearchBtn"
             >
               查询
             </el-button>
@@ -460,7 +460,7 @@ export default {
       searchForm: {
         name: "",
         loginName: "",
-        enable: true,
+        enable: "",
         rootOrgId: "",
         roleId: ""
       },
@@ -561,6 +561,7 @@ export default {
       });
     },
     handleSizeChange(val) {
+      this.currentPage = 1;
       this.pageSize = val;
       this.search();
     },
@@ -691,6 +692,10 @@ export default {
       }
       return level;
     },
+    handleSearchBtn() {
+      this.currentPage = 1;
+      this.search();
+    },
     search() {
       this.loading = true;
       var param = new URLSearchParams(this.searchForm);