Pārlūkot izejas kodu

审核详情页面,添加上一条下一条

qinchao 4 gadi atpakaļ
vecāks
revīzija
48a2fde0ec

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

@@ -691,10 +691,11 @@ export default {
     },
     gotoCaptureDetail(examRecordDataId) {
       let pendingOperate = !this.currentPagePrivileges.PENDING_OPERATE;
+      let searchParam = JSON.parse(JSON.stringify(this.form));
       this.$router.push({
         path: "/oe/captureDetail/" + examRecordDataId + "/awaitingAudit",
         // name: "captureDetail",
-        query: { pendingOperate },
+        query: { pendingOperate, searchParam },
       });
     },
     backFill() {

+ 57 - 6
src/modules/oe/views/captureDetail.vue

@@ -11,10 +11,19 @@
         </el-col>
         <el-col :span="19">
           <el-row>
-            <el-col :span="8" class="capture-title">
+            <el-col :span="6" class="capture-title">
               <span>监考数据ID:{{ examRecordDataId }}</span>
             </el-col>
-            <el-col :span="16" style="text-align: right">
+            <el-col :span="12" style="text-align: center">
+              <el-button
+                v-if="showAudit"
+                size="small"
+                type="warning"
+                icon="el-icon-d-arrow-left"
+                title="上一条"
+                @click="openNextAuditDetail('0')"
+                >上一条</el-button
+              >
               <el-button
                 v-if="showAudit"
                 size="small"
@@ -24,7 +33,6 @@
                 @click="auditPass"
                 >通过</el-button
               >
-
               <el-button
                 v-if="showAudit"
                 size="small"
@@ -34,6 +42,16 @@
                 @click="openAuditDialog"
                 >不通过</el-button
               >
+              <el-button
+                v-if="showAudit"
+                size="small"
+                type="warning"
+                title="下一条"
+                @click="openNextAuditDetail('1')"
+                >下一条<i class="el-icon-d-arrow-right el-icon--right"></i
+              ></el-button>
+            </el-col>
+            <el-col :span="6" style="text-align: right">
               <el-button
                 size="small"
                 icon="el-icon-arrow-left"
@@ -285,6 +303,10 @@ export default {
       currentPaths: ["抓拍详情"],
       disciplineTypeList: [],
       pendingOperate: false,
+      searchParam: {},
+      orderDesc: true,
+      first: false,
+      last: false,
       examProcessRecordData: [],
     };
   },
@@ -294,6 +316,7 @@ export default {
   created() {
     this.examRecordDataId = this.$route.params.examRecordDataId;
     this.pendingOperate = this.$route.query.pendingOperate;
+    this.searchParam = this.$route.query.searchParam;
     var fromPage = this.$route.params.from;
     var currentPathJson = {
       illegalityNameList: ["违纪名单", "抓拍详情"],
@@ -333,7 +356,7 @@ export default {
               isPendingAudit == "false" &&
               response.data.isWarn &&
               !response.data.isAudit;
-            this.examAuditData.push(response.data);
+            this.examAuditData = new Array(response.data);
             var studentId = response.data.studentId;
             this.syncCapturePhotoPath = response.data.syncCaptureFileUrl;
             this.getStudentInfo(studentId);
@@ -389,9 +412,37 @@ export default {
             message: "操作成功",
             type: "success",
           });
-          this.back();
+          this.openNextAuditDetail("");
         });
     },
+    /**
+     * 下一条
+     */
+    openNextAuditDetail(next) {
+      var url =
+        "/api/ecs_oe_admin/exam/record/waiting/audit/next?examRecordDataId=" +
+        this.examRecordDataId +
+        "&next=" +
+        next;
+      this.$http.post(url, this.searchParam).then((response) => {
+        if (response.data) {
+          this.examRecordDataId = response.data;
+          this.getExamAuditData();
+          this.listExamCapture();
+          this.getDisciplineTypeList("");
+          this.getExamProcessRecordData();
+        } else {
+          if (next == "") {
+            this.$notify({
+              title: "成功",
+              message: "全部审核完毕。",
+              type: "success",
+            });
+            this.back();
+          }
+        }
+      });
+    },
     openAuditDialog() {
       this.dialogFormVisible = true;
       this.auditForm = {
@@ -413,7 +464,7 @@ export default {
                 message: "操作成功",
                 type: "success",
               });
-              this.back();
+              this.openNextAuditDetail("");
             });
         } else {
           return false;