Pārlūkot izejas kodu

Merge branch 'master' of http://git.qmth.com.cn/ExamCloud-3/examcloud-web-admin

chenken 6 gadi atpakaļ
vecāks
revīzija
4192faa3ce

BIN
public/img/blank.png


+ 2 - 3
src/modules/examwork/view/examStudent.vue

@@ -809,7 +809,7 @@
           :visible.sync="photoDialog"
           width="300px"
         >
-          <img :src="photo.url" alt="学生照片" height="100%" width="100%" />
+          <img :src="photo.url" height="100%" width="100%" />
         </el-dialog>
       </div>
     </div>
@@ -1141,11 +1141,10 @@ export default {
         });
     },
     closePhotoDialog() {
-      this.photo.url = "";
+      this.photo.url = "/img/blank.png";
       this.photoDialog = false;
     },
     showPhoto(row) {
-      this.photo.url = "";
       let url =
         CORE_API +
         "/student/getStudentInfo?rootOrgId=" +

+ 2 - 3
src/modules/examwork/view/student.vue

@@ -446,7 +446,7 @@
           width="300px"
           :center="true"
         >
-          <img :src="photo.url" alt="学生照片" height="100%" width="100%" />
+          <img :src="photo.url" height="100%" width="100%" />
         </el-dialog>
       </div>
     </div>
@@ -624,11 +624,10 @@ export default {
       this.searchStuExam();
     },
     closePhotoDialog() {
-      this.photo.url = "";
+      this.photo.url = "/img/blank.png";
       this.photoDialog = false;
     },
     showPhoto(row) {
-      this.photo.url = "";
       if (row.photoPath) {
         this.photo.url = row.photoPath;
         this.photoDialog = true;