Quellcode durchsuchen

ExamRecordDetail is showFirstCapturePhoto

deason vor 2 Jahren
Ursprung
Commit
16ef3c31e9
1 geänderte Dateien mit 11 neuen und 3 gelöschten Zeilen
  1. 11 3
      src/modules/oe/component/ExamRecordDetail.vue

+ 11 - 3
src/modules/oe/component/ExamRecordDetail.vue

@@ -3,7 +3,12 @@
     <el-row>
       <el-col :span="5">
         <img :src="studentBasePhotoPath" alt width="180" />
-        <img :src="syncCapturePhotoPath" alt class="syncPhto" />
+        <img
+          v-if="showFirstCapturePhoto"
+          :src="syncCapturePhotoPath"
+          alt
+          class="syncPhto"
+        />
       </el-col>
 
       <el-col :span="19">
@@ -234,7 +239,8 @@ export default {
       photoCaptures: [],
       examProcessRecords: [],
       studentBasePhotoPath: "/img/no-photo.jpg",
-      syncCapturePhotoPath: "/img/no-photo-blank.png",
+      syncCapturePhotoPath: "",
+      showFirstCapturePhoto: false,
       needAudit: false,
       needDisable: false,
     };
@@ -268,7 +274,8 @@ export default {
       this.photoCaptures = [];
       this.examProcessRecords = [];
       this.studentBasePhotoPath = "/img/no-photo.jpg";
-      this.syncCapturePhotoPath = "/img/no-photo-blank.png";
+      this.syncCapturePhotoPath = "";
+      this.showFirstCapturePhoto = false;
       this.needAudit = false;
 
       if (this.examRecordDataId) {
@@ -289,6 +296,7 @@ export default {
             this.examRecordData = new Array(result);
             if (result.syncCaptureFileUrl) {
               this.syncCapturePhotoPath = result.syncCaptureFileUrl;
+              this.showFirstCapturePhoto = true;
             }
             if (this.showAuditButton) {
               this.needAudit = result.isWarn && !result.isAudit;