فهرست منبع

批量审核完跳转下一条

qinchao 4 سال پیش
والد
کامیت
133c5b5a30
1فایلهای تغییر یافته به همراه32 افزوده شده و 9 حذف شده
  1. 32 9
      src/modules/oe/views/captureDetail.vue

+ 32 - 9
src/modules/oe/views/captureDetail.vue

@@ -418,9 +418,31 @@ export default {
             message: "操作成功",
             type: "success",
           });
-          this.openNextAuditDetail("");
+          this.auditNext();
         });
     },
+    auditNext() {
+      var url =
+        "/api/ecs_oe_admin/exam/record/waiting/audit/next?examRecordDataId=" +
+        this.examRecordDataId +
+        "&next=1";
+      this.$http.post(url, this.searchParam).then((response) => {
+        if (response.data) {
+          this.examRecordDataId = response.data;
+          this.getExamAuditData();
+          this.listExamCapture();
+          this.getDisciplineTypeList("");
+          this.getExamProcessRecordData();
+        } else {
+          this.$notify({
+            title: "成功",
+            message: "审核完毕",
+            type: "success",
+          });
+          this.back();
+        }
+      });
+    },
     /**
      * 下一条
      */
@@ -438,14 +460,15 @@ export default {
           this.getDisciplineTypeList("");
           this.getExamProcessRecordData();
         } else {
-          if (next == "") {
-            this.$notify({
-              title: "成功",
-              message: "全部审核完毕。",
-              type: "success",
-            });
-            this.back();
+          var msg = "最后";
+          if (next === "0") {
+            msg = "第";
           }
+          this.$notify({
+            title: "成功",
+            message: "当前数据为" + msg + "一条",
+            type: "success",
+          });
         }
       });
     },
@@ -471,7 +494,7 @@ export default {
                 type: "success",
               });
               this.dialogFormVisible = false;
-              this.openNextAuditDetail("");
+              this.auditNext();
             });
         } else {
           return false;