WANG 6 年之前
父节点
当前提交
3ace616732
共有 1 个文件被更改,包括 6 次插入14 次删除
  1. 6 14
      src/modules/examwork/view/student.vue

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

@@ -267,7 +267,7 @@
           <el-dialog
             title="学生考试记录"
             size="small"
-            v-model="stuExamDialog"
+            :visible.sync="stuExamDialog"
             v-loading="stuExamLoading"
             element-loading-text="拼命加载中"
           >
@@ -401,11 +401,7 @@
             </el-form>
           </el-dialog>
 
-          <el-dialog
-            @close="closePhotoDialog"
-            title="照片"
-            v-model="photoDialog"
-          >
+          <el-dialog title="照片" :visible.sync="photoDialog">
             <div class="student_photo">
               <img :src="photo.url" alt="学生照片" height="20%" width="30%" />
             </div>
@@ -481,11 +477,11 @@ export default {
       examList4Search: [],
       queryExams4SearchLoading: false,
       stuExamSearch: {
-        rootOrgId: null,
+        rootOrgId: "",
         examId: "",
         studentCode: "",
         studentName: "",
-        orgId: null,
+        orgId: "",
         specialtyName: "",
         courseCode: "",
         courseName: "",
@@ -564,8 +560,8 @@ export default {
       this.$http
         .get(url)
         .then(response => {
-          this.stuExamList = response.body.list;
-          this.stuExamTotal = response.body.total;
+          this.stuExamList = response.data.list;
+          this.stuExamTotal = response.data.total;
           this.stuExamLoading = false;
         })
         .catch(function(response) {
@@ -585,10 +581,6 @@ export default {
       this.stuExamSearch.page = val - 1;
       this.searchStuExam();
     },
-    closePhotoDialog() {
-      this.photo.url = "";
-      this.photoDialog = false;
-    },
     showPhoto(row) {
       if (row.photoPath) {
         this.photo.url = row.photoPath;