deason 1 жил өмнө
parent
commit
a3da863536

+ 54 - 18
src/modules/oe/component/ExamRecordDetail.vue

@@ -102,11 +102,6 @@
                   <span v-html="getLevel(scope.row.courseLevel)"></span>
                 </template>
               </el-table-column>
-              <el-table-column
-                label="客观题总分"
-                prop="objectiveTotalScore"
-                width="95"
-              ></el-table-column>
               <el-table-column
                 label="学习中心"
                 prop="orgName"
@@ -114,43 +109,48 @@
               ></el-table-column>
               <el-table-column
                 label="年级"
-                width="60"
+                min-width="90px"
                 prop="grade"
               ></el-table-column>
             </el-table>
           </el-col>
         </el-row>
 
-        <el-row class="margin-top-20">
+        <el-row class="margin-top-10">
           <el-col :span="24">
             <el-table :data="examRecordData" border>
+              <el-table-column
+                label="客观题总分"
+                prop="objectiveTotalScore"
+                min-width="90px"
+              ></el-table-column>
               <el-table-column
                 label="切屏次数"
                 prop="switchScreenCount"
-                width="80"
+                min-width="90px"
               ></el-table-column>
               <el-table-column
                 label="校验次数"
                 prop="faceTotalCount"
-                width="80"
+                min-width="90px"
               ></el-table-column>
               <el-table-column
                 label="成功次数"
                 prop="faceSuccessCount"
-                width="80"
+                min-width="90px"
               ></el-table-column>
               <el-table-column
                 label="陌生人次数"
                 prop="faceStrangerCount"
-                width="95"
+                min-width="90px"
               ></el-table-column>
               <el-table-column
-                width="100"
+                min-width="90px"
                 label="人脸比对(%)"
                 prop="faceSuccessPercent"
               ></el-table-column>
               <el-table-column
-                width="115"
+                min-width="90px"
                 label="人脸真实性(%)"
                 prop="baiduFaceLivenessSuccessPercent"
               ></el-table-column>
@@ -159,6 +159,18 @@
                 label="虚拟设备"
                 prop="virtualCameraNames"
               ></el-table-column>
+            </el-table>
+          </el-col>
+        </el-row>
+
+        <el-row class="margin-top-10">
+          <el-col :span="24">
+            <el-table :data="examRecordData" border>
+              <el-table-column
+                min-width="90px"
+                label="审核结果"
+                prop="status"
+              ></el-table-column>
               <el-table-column
                 label="违纪类型"
                 prop="disciplineType"
@@ -171,11 +183,11 @@
                   ></span>
                 </template>
               </el-table-column>
-              <el-table-column
-                width="80"
-                label="审核结果"
-                prop="status"
-              ></el-table-column>
+              <el-table-column label="其它异常" min-width="90px">
+                <template>
+                  <span v-html="warnFilter(examWarns)"></span>
+                </template>
+              </el-table-column>
             </el-table>
           </el-col>
         </el-row>
@@ -248,6 +260,7 @@ export default {
       examRecordData: [],
       photoCaptures: [],
       examProcessRecords: [],
+      examWarns: [],
       studentBasePhotoPath: "/admin/img/no-photo.jpg",
       syncCapturePhotoPath: "",
       showFirstCapturePhoto: false,
@@ -291,6 +304,7 @@ export default {
       this.examRecordData = [];
       this.photoCaptures = [];
       this.examProcessRecords = [];
+      this.examWarns = [];
       this.studentBasePhotoPath = "/admin/img/no-photo.jpg";
       this.syncCapturePhotoPath = "";
       this.showFirstCapturePhoto = false;
@@ -300,6 +314,7 @@ export default {
         this.getExamRecordData();
         this.getPhotoCaptures();
         this.getExamProcessRecords();
+        this.getExamWarnList();
       }
     },
     getExamRecordData() {
@@ -352,6 +367,17 @@ export default {
         }
       });
     },
+    getExamWarnList() {
+      let param = new URLSearchParams({
+        examRecordDataId: this.examRecordDataId,
+      });
+      let url = "/api/ecs_oe_admin/exam/warn/list";
+      this.$http.post(url, param).then((response) => {
+        if (response.data) {
+          this.examWarns = response.data;
+        }
+      });
+    },
     getLevel(level) {
       if (level === "ZSB") {
         return "专升本";
@@ -375,6 +401,16 @@ export default {
         return value;
       }
     },
+    warnFilter: function (examWarns) {
+      if (examWarns) {
+        let detail = "";
+        for (let i = 0; i < examWarns.length; i++) {
+          detail += examWarns[i].warnDetail + "<br>";
+        }
+        return detail;
+      }
+      return "";
+    },
   },
 };
 </script>