소스 검색

虚拟摄像头为空显示";"

qinchao 4 년 전
부모
커밋
64a3c4f9f2
2개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      src/modules/oe/views/awaitingAudit.vue
  2. 3 0
      src/modules/oe/views/captureDetail.vue

+ 8 - 0
src/modules/oe/views/awaitingAudit.vue

@@ -274,6 +274,7 @@
               sortable
               label="虚拟设备"
               prop="virtualCameraNames"
+              :formatter="formatVirtualCameraName"
               width="120"
             ></el-table-column>
             <el-table-column
@@ -637,6 +638,13 @@ export default {
           });
         });
     },
+    formatVirtualCameraName(row) {
+      if (row.virtualCameraNames === "") {
+        return ";";
+      } else {
+        return row.virtualCameraNames;
+      }
+    },
     selectable(row) {
       return row.isWarn;
     },

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

@@ -364,6 +364,9 @@ export default {
               isPendingAudit == "false" &&
               response.data.isWarn &&
               !response.data.isAudit;
+            if (response.data.virtualCameraNames === "") {
+              response.data.virtualCameraNames = ";";
+            }
             this.examAuditData = new Array(response.data);
             var studentId = response.data.studentId;
             this.syncCapturePhotoPath = response.data.syncCaptureFileUrl;