ソースを参照

1111111111111

chenken 6 年 前
コミット
9c1192b766

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

@@ -199,17 +199,18 @@ export default {
         return false;
       }
       this.tableLoading = true;
+      var params = JSON.parse(JSON.stringify(this.form));
       this.$http
-        .post("/api/ecs_oe_admin/exam/audit/list", this.form)
+        .post("/api/ecs_oe_admin/exam/audit/list", params)
         .then(response => {
           if (response.data) {
             this.tableData = response.data.content;
             this.total = response.data.totalElements;
+            this.form.pageNo = response.data.number + 1;
           } else {
             this.tableData = [];
           }
           this.tableLoading = false;
-          var params = this.form;
           this.$router.push({
             path: "/oe/alreadyAudited?" + new URLSearchParams(params)
           });

+ 4 - 2
src/modules/oe/views/awaitingAudit.vue

@@ -307,13 +307,14 @@ export default {
         return false;
       }
       this.tableLoading = true;
-      var params = this.form;
+      var params = JSON.parse(JSON.stringify(this.form));
       this.$http
-        .post("/api/ecs_oe_admin/exam/record/waiting/audit/list", this.form)
+        .post("/api/ecs_oe_admin/exam/record/waiting/audit/list", params)
         .then(response => {
           if (response.data) {
             this.tableData = response.data.content;
             this.total = response.data.totalElements;
+            this.form.pageNo = response.data.number + 1;
           } else {
             this.tableData = [];
           }
@@ -340,6 +341,7 @@ export default {
      * 当前页改变时触发
      */
     handleCurrentChange(val) {
+      debugger;
       this.form.pageNo = val;
       this.search();
     },

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

@@ -217,17 +217,18 @@ export default {
         return false;
       }
       this.tableLoading = true;
+      var params = JSON.parse(JSON.stringify(this.form));
       this.$http
-        .post("/api/ecs_oe_admin/exam/record/detail/list", this.form)
+        .post("/api/ecs_oe_admin/exam/record/detail/list", params)
         .then(response => {
           if (response.data) {
             this.tableData = response.data.content;
             this.total = response.data.totalElements;
+            this.form.pageNo = response.data.number + 1;
           } else {
             this.tableData = [];
           }
           this.tableLoading = false;
-          var params = this.form;
           this.$router.push({
             path: "/oe/examDetail?" + new URLSearchParams(params)
           });

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

@@ -177,13 +177,14 @@ export default {
         return false;
       }
       this.tableLoading = true;
-      var params = this.form;
+      var params = JSON.parse(JSON.stringify(this.form));
       this.$http
-        .post("/api/ecs_oe_admin/exam/audit/discipline/list", this.form)
+        .post("/api/ecs_oe_admin/exam/audit/discipline/list", params)
         .then(response => {
           if (response.data) {
             this.tableData = response.data.content;
             this.total = response.data.totalElements;
+            this.form.pageNo = response.data.number + 1;
           } else {
             this.tableData = [];
           }