浏览代码

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

chenken 6 年之前
父节点
当前提交
4192faa3ce
共有 3 个文件被更改,包括 4 次插入6 次删除
  1. 二进制
      public/img/blank.png
  2. 2 3
      src/modules/examwork/view/examStudent.vue
  3. 2 3
      src/modules/examwork/view/student.vue

二进制
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;