WANG hace 6 años
padre
commit
df7f3330ea

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

@@ -1145,7 +1145,8 @@ export default {
       this.photoDialog = false;
     },
     showPhoto(row) {
-      var url =
+      this.photo.url = "";
+      let url =
         CORE_API +
         "/student/getStudentInfo?rootOrgId=" +
         row.rootOrgId +

+ 6 - 0
src/modules/examwork/view/student.vue

@@ -441,6 +441,7 @@
         <!--查看照片-->
         <el-dialog
           title="照片"
+          @close="closePhotoDialog"
           :visible.sync="photoDialog"
           width="300px"
           :center="true"
@@ -622,7 +623,12 @@ export default {
       this.stuExamPageSize = val;
       this.searchStuExam();
     },
+    closePhotoDialog() {
+      this.photo.url = "";
+      this.photoDialog = false;
+    },
     showPhoto(row) {
+      this.photo.url = "";
       if (row.photoPath) {
         this.photo.url = row.photoPath;
         this.photoDialog = true;