Przeglądaj źródła

批量审核完跳转下一条

qinchao 4 lat temu
rodzic
commit
234541a5ed
1 zmienionych plików z 24 dodań i 3 usunięć
  1. 24 3
      src/modules/oe/views/captureDetail.vue

+ 24 - 3
src/modules/oe/views/captureDetail.vue

@@ -418,9 +418,31 @@ export default {
             message: "操作成功",
             type: "success",
           });
-          this.openNextAuditDetail("1");
+          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();
+        }
+      });
+    },
     /**
      * 下一条
      */
@@ -443,7 +465,6 @@ export default {
             message: "当前数据为最后一条",
             type: "success",
           });
-          this.back();
         }
       });
     },
@@ -469,7 +490,7 @@ export default {
                 type: "success",
               });
               this.dialogFormVisible = false;
-              this.openNextAuditDetail("1");
+              this.auditNext();
             });
         } else {
           return false;