Prechádzať zdrojové kódy

点击查询回到首页
批量操作改为操作

chenken 6 rokov pred
rodič
commit
d8a42629d6

+ 6 - 3
src/modules/oe/views/absent.vue

@@ -7,7 +7,7 @@
       ></commonFormVue>
       <el-col :span="6">
         <el-button
-          @click="search"
+          @click="search('clickSelectBtn')"
           size="small"
           icon="el-icon-search"
           type="primary"
@@ -20,7 +20,7 @@
       <el-row>
         <el-col v-show="currentPagePrivileges.ABSENT_EXPORT">
           <div class="block-seperator"></div>
-          <span>批量操作:</span>
+          <span>操作:</span>
           <commonExportVue
             :form="form"
             :exportUrl="exportUrl"
@@ -127,7 +127,7 @@ export default {
         auditStatus: null
       };
     },
-    search() {
+    search(type) {
       if (!this.form.examId) {
         this.$notify({
           title: "警告",
@@ -137,6 +137,9 @@ export default {
         });
         return false;
       }
+      if (type && type == "clickSelectBtn") {
+        this.form.pageNo = 1;
+      }
       this.tableLoading = true;
       this.$http
         .post("/api/ecs_oe_admin/exam/student/unfinished/list", this.form)

+ 5 - 2
src/modules/oe/views/alreadyAudited.vue

@@ -68,7 +68,7 @@
       </commonFormVue>
       <el-col :span="24">
         <el-button
-          @click="search"
+          @click="search('clickSelectBtn')"
           size="small"
           type="primary"
           icon="el-icon-search"
@@ -312,7 +312,7 @@ export default {
       this.resetForm();
       this.showAllCondition = false;
     },
-    search() {
+    search(type) {
       if (!this.form.examId) {
         this.$notify({
           title: "警告",
@@ -322,6 +322,9 @@ export default {
         });
         return false;
       }
+      if (type && type == "clickSelectBtn") {
+        this.form.pageNo = 1;
+      }
       this.tableLoading = true;
       var params = JSON.parse(JSON.stringify(this.form));
       this.$http

+ 6 - 3
src/modules/oe/views/awaitingAudit.vue

@@ -83,7 +83,7 @@
       </commonFormVue>
       <el-col :span="24">
         <el-button
-          @click="search"
+          @click="search('clickSelectBtn')"
           size="small"
           type="primary"
           icon="el-icon-search"
@@ -118,7 +118,7 @@
       <el-row>
         <el-col v-show="currentPagePrivileges.PANEING_BATCHAUDIT">
           <div class="block-seperator"></div>
-          <span>批量操作:</span>
+          <span>操作:</span>
           <el-dropdown class="button_left">
             <el-button size="small" type="primary">
               批量审核 <i class="el-icon-arrow-down el-icon--right"></i>
@@ -399,7 +399,7 @@ export default {
       this.resetForm();
       this.showAllCondition = false;
     },
-    search() {
+    search(type) {
       if (!this.form.examId) {
         this.$notify({
           title: "警告",
@@ -409,6 +409,9 @@ export default {
         });
         return false;
       }
+      if (type && type == "clickSelectBtn") {
+        this.form.pageNo = 1;
+      }
       this.tableLoading = true;
       var params = JSON.parse(JSON.stringify(this.form));
       this.$http

+ 6 - 3
src/modules/oe/views/examDetail.vue

@@ -42,7 +42,7 @@
       </commonFormVue>
       <el-col :span="24">
         <el-button
-          @click="search"
+          @click="search('clickSelectBtn')"
           size="small"
           type="primary"
           icon="el-icon-search"
@@ -77,7 +77,7 @@
       <el-row>
         <el-col v-show="currentPagePrivileges.EXAM_DETAIL_EXPORT">
           <div class="block-seperator"></div>
-          <span>批量操作:</span>
+          <span>操作:</span>
           <commonExportVue
             :form="form"
             :exportUrl="exportUrl"
@@ -361,7 +361,7 @@ export default {
       this.resetForm();
       this.showAllCondition = false;
     },
-    search() {
+    search(type) {
       if (!this.form.examId) {
         this.$notify({
           title: "警告",
@@ -371,6 +371,9 @@ export default {
         });
         return false;
       }
+      if (type && type == "clickSelectBtn") {
+        this.form.pageNo = 1;
+      }
       this.tableLoading = true;
       var params = JSON.parse(JSON.stringify(this.form));
       this.$http

+ 6 - 3
src/modules/oe/views/examScheduling.vue

@@ -45,7 +45,7 @@
       </commonFormVue>
       <el-col :span="24">
         <el-button
-          @click="search"
+          @click="search('clickSelectBtn')"
           size="small"
           type="primary"
           icon="el-icon-search"
@@ -82,7 +82,7 @@
           v-show="currentPagePrivileges.EXAM_PARTICULARS_EXPORT"
         >
           <div class="block-seperator"></div>
-          <span>批量操作:</span>
+          <span>操作:</span>
           <commonExportVue
             :form="form"
             :exportUrl="exportUrl"
@@ -361,7 +361,7 @@ export default {
       this.resetForm();
       this.showAllCondition = false;
     },
-    search() {
+    search(type) {
       if (!this.form.examId) {
         this.$notify({
           title: "警告",
@@ -371,6 +371,9 @@ export default {
         });
         return false;
       }
+      if (type && type == "clickSelectBtn") {
+        this.form.pageNo = 1;
+      }
       this.tableLoading = true;
       this.$http
         .post("/api/ecs_oe_admin/exam/student/examScheduling/list", this.form)

+ 6 - 3
src/modules/oe/views/illegalityNameList.vue

@@ -25,7 +25,7 @@
       <el-row>
         <el-col :span="24">
           <el-button
-            @click="search"
+            @click="search('clickSelectBtn')"
             size="small"
             icon="el-icon-search"
             type="primary"
@@ -44,7 +44,7 @@
       <el-row>
         <el-col v-show="currentPagePrivileges.BREACH_THE_PRINCIPLE_EXPORT">
           <div class="block-seperator"></div>
-          <span>批量操作:</span>
+          <span>操作:</span>
           <commonExportVue
             :form="form"
             :exportUrl="exportUrl"
@@ -237,7 +237,7 @@ export default {
         pageSize: 10
       };
     },
-    search() {
+    search(type) {
       if (!this.form.examId) {
         this.$notify({
           title: "警告",
@@ -247,6 +247,9 @@ export default {
         });
         return false;
       }
+      if (type && type == "clickSelectBtn") {
+        this.form.pageNo = 1;
+      }
       this.tableLoading = true;
       var params = JSON.parse(JSON.stringify(this.form));
       this.$http

+ 5 - 2
src/modules/oe/views/reexamine.vue

@@ -5,7 +5,7 @@
       </commonFormVue>
       <el-col :span="6">
         <el-button
-          @click="search"
+          @click="search('clickSelectBtn')"
           size="small"
           type="primary"
           icon="el-icon-search"
@@ -169,7 +169,7 @@ export default {
         pageSize: 10
       };
     },
-    search() {
+    search(type) {
       if (!this.form.examId) {
         this.$notify({
           title: "警告",
@@ -179,6 +179,9 @@ export default {
         });
         return false;
       }
+      if (type && type == "clickSelectBtn") {
+        this.form.pageNo = 1;
+      }
       this.tableLoading = true;
       this.$http
         .post("/api/ecs_oe_admin/exam/student/reexamine/list", this.form)

+ 6 - 3
src/modules/oe/views/scoreStatistics.vue

@@ -20,7 +20,7 @@
       <el-row>
         <el-col :span="24">
           <el-button
-            @click="search"
+            @click="search('clickSelectBtn')"
             size="small"
             type="primary"
             icon="el-icon-search"
@@ -35,7 +35,7 @@
       <el-row>
         <el-col :span="24" v-show="currentPagePrivileges.SCORE_STATICS_EXPORT">
           <div class="block-seperator"></div>
-          <span>批量操作:</span>
+          <span>操作:</span>
           <el-button
             type="primary"
             size="small"
@@ -291,7 +291,7 @@ export default {
         endLimit: ""
       };
     },
-    search() {
+    search(type) {
       if (!this.form.examId) {
         this.$notify({
           title: "警告",
@@ -301,6 +301,9 @@ export default {
         });
         return false;
       }
+      if (type && type == "clickSelectBtn") {
+        this.form.pageNo = 1;
+      }
       this.tableLoading = true;
       this.$http
         .post("/api/ecs_oe_admin/exam/score/statistic/list", this.form)