xiatian 4 years ago
parent
commit
6ca45d0ffe
1 changed files with 100 additions and 95 deletions
  1. 100 95
      src/modules/examwork/view/student.vue

+ 100 - 95
src/modules/examwork/view/student.vue

@@ -153,7 +153,7 @@
           >重置学习中心所有学生密码</el-button
           >重置学习中心所有学生密码</el-button
         >
         >
 
 
-        <div style="width: 100%;margin-bottom: 10px;"></div>
+        <div style="width: 100%; margin-bottom: 10px;"></div>
 
 
         <!-- 重置学习中心所有学生密码-->
         <!-- 重置学习中心所有学生密码-->
         <el-dialog
         <el-dialog
@@ -189,7 +189,7 @@
               </el-select>
               </el-select>
             </el-form-item>
             </el-form-item>
           </el-form>
           </el-form>
-          <div style="text-align: center;margin-top: 20px;">
+          <div style="text-align: center; margin-top: 20px;">
             <el-button type="primary" @click="submitResetPasswordByOrgId"
             <el-button type="primary" @click="submitResetPasswordByOrgId"
               >确 定</el-button
               >确 定</el-button
             >
             >
@@ -203,7 +203,7 @@
         <el-table
         <el-table
           :data="tableData"
           :data="tableData"
           border
           border
-          style="width: 100%;text-align:center;"
+          style="width: 100%; text-align: center;"
           @selection-change="selectChange"
           @selection-change="selectChange"
         >
         >
           <el-table-column type="selection" width="50"></el-table-column>
           <el-table-column type="selection" width="50"></el-table-column>
@@ -216,52 +216,52 @@
           <el-table-column label="考生" width="100">
           <el-table-column label="考生" width="100">
             <template slot-scope="scope">
             <template slot-scope="scope">
               <el-popover trigger="hover" placement="left">
               <el-popover trigger="hover" placement="left">
-                <div style="font-size: 18px;font-family: 新宋体">
+                <div style="font-size: 18px; font-family: 新宋体;">
                   <tr>
                   <tr>
-                    <td style="color: green">姓名</td>
-                    <td style="color:purple;padding-left: 20px;">
+                    <td style="color: green;">姓名</td>
+                    <td style="color: purple; padding-left: 20px;">
                       {{ scope.row.name }}
                       {{ scope.row.name }}
                     </td>
                     </td>
                   </tr>
                   </tr>
                   <tr>
                   <tr>
-                    <td style="color: green">身份证号</td>
-                    <td style="color:purple;padding-left: 20px;">
+                    <td style="color: green;">身份证号</td>
+                    <td style="color: purple; padding-left: 20px;">
                       {{ scope.row.privateIdentityNumber }}
                       {{ scope.row.privateIdentityNumber }}
                     </td>
                     </td>
                   </tr>
                   </tr>
                   <tr>
                   <tr>
-                    <td style="color: green">学号</td>
-                    <td style="color:purple;padding-left: 20px;">
+                    <td style="color: green;">学号</td>
+                    <td style="color: purple; padding-left: 20px;">
                       {{ scope.row.studentCodeList }}
                       {{ scope.row.studentCodeList }}
                     </td>
                     </td>
                   </tr>
                   </tr>
                   <tr>
                   <tr>
-                    <td style="color: green">学习中心名称</td>
-                    <td style="color:purple;padding-left: 20px;">
+                    <td style="color: green;">学习中心名称</td>
+                    <td style="color: purple; padding-left: 20px;">
                       {{ scope.row.orgName }}
                       {{ scope.row.orgName }}
                     </td>
                     </td>
                   </tr>
                   </tr>
                   <tr>
                   <tr>
-                    <td style="color: green">学习中心编码</td>
-                    <td style="color:purple;padding-left: 20px;">
+                    <td style="color: green;">学习中心编码</td>
+                    <td style="color: purple; padding-left: 20px;">
                       {{ scope.row.orgCode }}
                       {{ scope.row.orgCode }}
                     </td>
                     </td>
                   </tr>
                   </tr>
                   <tr>
                   <tr>
-                    <td style="color: green">手机号</td>
-                    <td style="color:purple;padding-left: 20px;">
+                    <td style="color: green;">手机号</td>
+                    <td style="color: purple; padding-left: 20px;">
                       {{ scope.row.phoneNumber }}
                       {{ scope.row.phoneNumber }}
                     </td>
                     </td>
                   </tr>
                   </tr>
                   <tr>
                   <tr>
-                    <td style="color: green">安全手机号</td>
-                    <td style="color:purple;padding-left: 20px;">
+                    <td style="color: green;">安全手机号</td>
+                    <td style="color: purple; padding-left: 20px;">
                       {{ scope.row.securityPhone }}
                       {{ scope.row.securityPhone }}
                     </td>
                     </td>
                   </tr>
                   </tr>
                   <tr>
                   <tr>
-                    <td style="color: green">创建时间</td>
-                    <td style="color:purple;padding-left: 20px;">
+                    <td style="color: green;">创建时间</td>
+                    <td style="color: purple; padding-left: 20px;">
                       {{ scope.row.creationTime }}
                       {{ scope.row.creationTime }}
                     </td>
                     </td>
                   </tr>
                   </tr>
@@ -304,7 +304,7 @@
                   content="启用"
                   content="启用"
                   placement="left"
                   placement="left"
                 >
                 >
-                  <i class="el-icon-success" style="color:green;"></i>
+                  <i class="el-icon-success" style="color: green;"></i>
                 </el-tooltip>
                 </el-tooltip>
               </span>
               </span>
               <span v-else>
               <span v-else>
@@ -314,7 +314,7 @@
                   content="禁用"
                   content="禁用"
                   placement="left"
                   placement="left"
                 >
                 >
-                  <i class="el-icon-error" style="color:red;"></i>
+                  <i class="el-icon-error" style="color: red;"></i>
                 </el-tooltip>
                 </el-tooltip>
               </span>
               </span>
             </span>
             </span>
@@ -333,8 +333,8 @@
               <el-button
               <el-button
                 v-if="
                 v-if="
                   null != scope.row.enable &&
                   null != scope.row.enable &&
-                    !scope.row.enable &&
-                    rolePrivileges.change_student_availability
+                  !scope.row.enable &&
+                  rolePrivileges.change_student_availability
                 "
                 "
                 size="mini"
                 size="mini"
                 type="primary"
                 type="primary"
@@ -422,7 +422,7 @@
           <el-table
           <el-table
             :data="unbindStudentCodeData.tableData"
             :data="unbindStudentCodeData.tableData"
             border
             border
-            style="width: 100%;text-align:center;"
+            style="width: 100%; text-align: center;"
           >
           >
             <el-table-column prop="name" label="姓名" />
             <el-table-column prop="name" label="姓名" />
             <el-table-column prop="identityNumber" label="身份证" />
             <el-table-column prop="identityNumber" label="身份证" />
@@ -509,7 +509,7 @@
           <el-table
           <el-table
             :data="stuExamList"
             :data="stuExamList"
             border
             border
-            style="width: 100%;text-align:center;"
+            style="width: 100%; text-align: center;"
           >
           >
             <el-table-column
             <el-table-column
               prop="studentName"
               prop="studentName"
@@ -564,7 +564,7 @@
         >
         >
           <el-form>
           <el-form>
             <el-row>
             <el-row>
-              <el-form-item style="margin-left:30px">
+              <el-form-item style="margin-left: 30px;">
                 <el-upload
                 <el-upload
                   class="form_left"
                   class="form_left"
                   ref="upload"
                   ref="upload"
@@ -589,7 +589,7 @@
                   >
                   >
                   <el-button
                   <el-button
                     size="small"
                     size="small"
-                    style="margin-left:10px;"
+                    style="margin-left: 10px;"
                     type="primary"
                     type="primary"
                     icon="el-icon-check"
                     icon="el-icon-check"
                     @click="submitUpload"
                     @click="submitUpload"
@@ -629,7 +629,7 @@
               <el-input
               <el-input
                 placeholder="请输入操作内容"
                 placeholder="请输入操作内容"
                 v-model="studentLog.formSearch.operate"
                 v-model="studentLog.formSearch.operate"
-                style="width: 180px"
+                style="width: 180px;"
               />
               />
             </el-form-item>
             </el-form-item>
             <el-form-item label="操作时间">
             <el-form-item label="操作时间">
@@ -698,7 +698,7 @@ import {
   CORE_API,
   CORE_API,
   EXAM_WORK_API,
   EXAM_WORK_API,
   EXCHANGE_API,
   EXCHANGE_API,
-  REPORTS_API
+  REPORTS_API,
 } from "@/constants/constants.js";
 } from "@/constants/constants.js";
 import { mapState } from "vuex";
 import { mapState } from "vuex";
 
 
@@ -711,7 +711,7 @@ export default {
         reset_student_password: false,
         reset_student_password: false,
         change_student_availability: false,
         change_student_availability: false,
         unbind_student_code: false,
         unbind_student_code: false,
-        unbind_security_phone: false
+        unbind_security_phone: false,
       },
       },
       rootOrgList: null,
       rootOrgList: null,
       stuExamLoading: false,
       stuExamLoading: false,
@@ -726,7 +726,7 @@ export default {
       getOrgList4RestPasswordLoading: false,
       getOrgList4RestPasswordLoading: false,
       resetPasswordByOrgIdDialog: false,
       resetPasswordByOrgIdDialog: false,
       resetPasswordByOrgIdForm: {
       resetPasswordByOrgIdForm: {
-        orgId: ""
+        orgId: "",
       },
       },
       formSearch: {
       formSearch: {
         orgId: "",
         orgId: "",
@@ -735,18 +735,18 @@ export default {
         studentCode: "",
         studentCode: "",
         identityNumber: "",
         identityNumber: "",
         enable: "UNDEFINED",
         enable: "UNDEFINED",
-        hasPhoto: "UNDEFINED"
+        hasPhoto: "UNDEFINED",
       },
       },
       selectedStuIds: [],
       selectedStuIds: [],
       statusList: [
       statusList: [
         {
         {
           value: true,
           value: true,
-          label: "启用"
+          label: "启用",
         },
         },
         {
         {
           value: false,
           value: false,
-          label: "禁用"
-        }
+          label: "禁用",
+        },
       ],
       ],
 
 
       tableData: [],
       tableData: [],
@@ -759,7 +759,7 @@ export default {
 
 
       unbindStudentCodeDialog: false,
       unbindStudentCodeDialog: false,
       unbindStudentCodeData: {
       unbindStudentCodeData: {
-        tableData: []
+        tableData: [],
       },
       },
 
 
       errMessages: [],
       errMessages: [],
@@ -789,7 +789,7 @@ export default {
         courseName: "",
         courseName: "",
         infoCollector: "",
         infoCollector: "",
         identityNumber: "",
         identityNumber: "",
-        identityNumberLike: false
+        identityNumberLike: false,
       },
       },
       resetPasswordByOrgIdRules: {
       resetPasswordByOrgIdRules: {
         orgId: [
         orgId: [
@@ -797,9 +797,9 @@ export default {
             type: "number",
             type: "number",
             required: true,
             required: true,
             message: "请选择学习中心",
             message: "请选择学习中心",
-            trigger: "change"
-          }
-        ]
+            trigger: "change",
+          },
+        ],
       },
       },
       examStageDisabled4Search: true,
       examStageDisabled4Search: true,
       queryExamStages4SearchLoading: false,
       queryExamStages4SearchLoading: false,
@@ -809,19 +809,20 @@ export default {
         timeRange: [],
         timeRange: [],
         paginationShow: false,
         paginationShow: false,
         formSearch: {
         formSearch: {
+          operate: null,
           studentId: "",
           studentId: "",
           startTime: null,
           startTime: null,
-          endTime: null
+          endTime: null,
         },
         },
         tableData: [],
         tableData: [],
         currentPage: 1,
         currentPage: 1,
         pageSize: 10,
         pageSize: 10,
-        total: 10
-      }
+        total: 10,
+      },
     };
     };
   },
   },
   computed: {
   computed: {
-    ...mapState({ user: state => state.user }),
+    ...mapState({ user: (state) => state.user }),
     stuIds() {
     stuIds() {
       var stuIds = "";
       var stuIds = "";
       for (let stuId of this.selectedStuIds) {
       for (let stuId of this.selectedStuIds) {
@@ -837,11 +838,15 @@ export default {
       return this.selectedStuIds.length === 0;
       return this.selectedStuIds.length === 0;
     },
     },
     isSuperAdmin() {
     isSuperAdmin() {
-      return this.user.roleList.some(role => role.roleCode == "SUPER_ADMIN");
-    }
+      return this.user.roleList.some((role) => role.roleCode == "SUPER_ADMIN");
+    },
   },
   },
   methods: {
   methods: {
     gotoOperateLog(studentId) {
     gotoOperateLog(studentId) {
+      this.studentLog.formSearch.operate = null;
+      this.studentLog.timeRange = [];
+      this.studentLog.formSearch.startTime = null;
+      this.studentLog.formSearch.endTime = null;
       this.studentLog.formSearch.studentId = studentId;
       this.studentLog.formSearch.studentId = studentId;
       this.studentLog.tableData = [];
       this.studentLog.tableData = [];
       this.studentLog.total = 0;
       this.studentLog.total = 0;
@@ -882,12 +887,12 @@ export default {
         this.studentLog.pageSize;
         this.studentLog.pageSize;
       this.$httpWithMsg
       this.$httpWithMsg
         .get(url, { params: this.studentLog.formSearch })
         .get(url, { params: this.studentLog.formSearch })
-        .then(response => {
+        .then((response) => {
           this.studentLog.tableData = response.data.list;
           this.studentLog.tableData = response.data.list;
           this.studentLog.total = response.data.total;
           this.studentLog.total = response.data.total;
           this.studentLog.loading = false;
           this.studentLog.loading = false;
 
 
-          this.$nextTick(function() {
+          this.$nextTick(function () {
             this.studentLog.paginationShow = true;
             this.studentLog.paginationShow = true;
           });
           });
         })
         })
@@ -898,7 +903,7 @@ export default {
       this.resetPasswordByOrgIdForm.orgId = null;
       this.resetPasswordByOrgIdForm.orgId = null;
       if (this.pureLC) {
       if (this.pureLC) {
         this.orgList4RestPassword = [
         this.orgList4RestPassword = [
-          { id: this.lc_id, name: this.lc_name, code: this.lc_code }
+          { id: this.lc_id, name: this.lc_name, code: this.lc_code },
         ];
         ];
         this.resetPasswordByOrgIdForm.orgId = this.lc_id;
         this.resetPasswordByOrgIdForm.orgId = this.lc_id;
       } else {
       } else {
@@ -907,17 +912,17 @@ export default {
       this.resetPasswordByOrgIdDialog = true;
       this.resetPasswordByOrgIdDialog = true;
     },
     },
     submitResetPasswordByOrgId() {
     submitResetPasswordByOrgId() {
-      this.$refs.resetPasswordByOrgIdForm.validate(valid => {
+      this.$refs.resetPasswordByOrgIdForm.validate((valid) => {
         if (valid) {
         if (valid) {
           var url =
           var url =
             CORE_API +
             CORE_API +
             "/student/resetPasswordByOrgId/" +
             "/student/resetPasswordByOrgId/" +
             this.resetPasswordByOrgIdForm.orgId;
             this.resetPasswordByOrgIdForm.orgId;
-          this.$httpWithMsg.put(url).then(response => {
+          this.$httpWithMsg.put(url).then((response) => {
             console.log(response);
             console.log(response);
             this.$notify({
             this.$notify({
               type: "success",
               type: "success",
-              message: "重置密码成功"
+              message: "重置密码成功",
             });
             });
             this.searchForm();
             this.searchForm();
             this.resetPasswordByOrgIdDialog = false;
             this.resetPasswordByOrgIdDialog = false;
@@ -940,11 +945,11 @@ export default {
         orgName;
         orgName;
       this.$httpWithMsg
       this.$httpWithMsg
         .get(url)
         .get(url)
-        .then(response => {
+        .then((response) => {
           this.getOrgList4SearchLoading = false;
           this.getOrgList4SearchLoading = false;
           this.orgList4Search = response.data;
           this.orgList4Search = response.data;
         })
         })
-        .catch(response => {
+        .catch((response) => {
           console.log(response);
           console.log(response);
           this.getOrgList4SearchLoading = false;
           this.getOrgList4SearchLoading = false;
         });
         });
@@ -959,11 +964,11 @@ export default {
         orgName;
         orgName;
       this.$httpWithMsg
       this.$httpWithMsg
         .get(url)
         .get(url)
-        .then(response => {
+        .then((response) => {
           this.getOrgList4RestPasswordLoading = false;
           this.getOrgList4RestPasswordLoading = false;
           this.orgList4RestPassword = response.data;
           this.orgList4RestPassword = response.data;
         })
         })
-        .catch(response => {
+        .catch((response) => {
           console.log(response);
           console.log(response);
           this.getOrgList4RestPasswordLoading = false;
           this.getOrgList4RestPasswordLoading = false;
         });
         });
@@ -978,7 +983,7 @@ export default {
       }
       }
       this.$httpWithMsg
       this.$httpWithMsg
         .get(EXAM_WORK_API + "/exam/queryByNameLike?name=" + name)
         .get(EXAM_WORK_API + "/exam/queryByNameLike?name=" + name)
-        .then(response => {
+        .then((response) => {
           if ("search" == where) {
           if ("search" == where) {
             this.queryExams4SearchLoading = false;
             this.queryExams4SearchLoading = false;
             this.examList4Search = response.data;
             this.examList4Search = response.data;
@@ -1017,12 +1022,12 @@ export default {
         param;
         param;
       this.$httpWithMsg
       this.$httpWithMsg
         .get(url)
         .get(url)
-        .then(response => {
+        .then((response) => {
           this.stuExamList = response.data.list;
           this.stuExamList = response.data.list;
           this.stuExamTotal = response.data.total;
           this.stuExamTotal = response.data.total;
           this.stuExamLoading = false;
           this.stuExamLoading = false;
         })
         })
-        .catch(function(response) {
+        .catch(function (response) {
           console.log(response);
           console.log(response);
           this.stuExamLoading = false;
           this.stuExamLoading = false;
         });
         });
@@ -1047,7 +1052,7 @@ export default {
         this.$notify({
         this.$notify({
           showClose: true,
           showClose: true,
           message: "未上传照片",
           message: "未上传照片",
-          type: "error"
+          type: "error",
         });
         });
       }
       }
     },
     },
@@ -1093,7 +1098,7 @@ export default {
         this.pageSize +
         this.pageSize +
         "?" +
         "?" +
         param;
         param;
-      this.$httpWithMsg.get(url).then(response => {
+      this.$httpWithMsg.get(url).then((response) => {
         this.tableData = response.data.list;
         this.tableData = response.data.list;
         this.total = response.data.total;
         this.total = response.data.total;
       });
       });
@@ -1117,7 +1122,7 @@ export default {
         if (this.stuIds.length == 0) {
         if (this.stuIds.length == 0) {
           this.$notify({
           this.$notify({
             type: "warning",
             type: "warning",
-            message: "请选择学生"
+            message: "请选择学生",
           });
           });
           return "";
           return "";
         } else {
         } else {
@@ -1132,7 +1137,7 @@ export default {
           studentCode: cur,
           studentCode: cur,
           rootOrgId: row.rootOrgId,
           rootOrgId: row.rootOrgId,
           name: row.name,
           name: row.name,
-          identityNumber: row.identityNumber
+          identityNumber: row.identityNumber,
         });
         });
       }
       }
       this.unbindStudentCodeDialog = true;
       this.unbindStudentCodeDialog = true;
@@ -1140,15 +1145,15 @@ export default {
     unbindStudentCode(row) {
     unbindStudentCode(row) {
       var params = new URLSearchParams({
       var params = new URLSearchParams({
         studentCode: row.studentCode,
         studentCode: row.studentCode,
-        rootOrgId: row.rootOrgId
+        rootOrgId: row.rootOrgId,
       });
       });
       this.$confirm("是否解绑学号?", "提示", {
       this.$confirm("是否解绑学号?", "提示", {
         confirmButtonText: "确定",
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         cancelButtonText: "取消",
-        type: "warning"
+        type: "warning",
       }).then(() => {
       }).then(() => {
         var url = CORE_API + "/student/unbindStudentCode?" + params;
         var url = CORE_API + "/student/unbindStudentCode?" + params;
-        this.$httpWithMsg.post(url).then(response => {
+        this.$httpWithMsg.post(url).then((response) => {
           console.log(response);
           console.log(response);
           let newTableData = [];
           let newTableData = [];
           for (let cur of this.unbindStudentCodeData.tableData) {
           for (let cur of this.unbindStudentCodeData.tableData) {
@@ -1159,7 +1164,7 @@ export default {
           this.unbindStudentCodeData.tableData = newTableData;
           this.unbindStudentCodeData.tableData = newTableData;
           this.$notify({
           this.$notify({
             type: "success",
             type: "success",
-            message: "解绑成功"
+            message: "解绑成功",
           });
           });
           this.searchForm();
           this.searchForm();
         });
         });
@@ -1171,14 +1176,14 @@ export default {
       this.$confirm("是否解绑安全手机号?", "提示", {
       this.$confirm("是否解绑安全手机号?", "提示", {
         confirmButtonText: "确定",
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         cancelButtonText: "取消",
-        type: "warning"
+        type: "warning",
       }).then(() => {
       }).then(() => {
         var url = CORE_API + "/student/unbindSecurityPhone/" + stuIds;
         var url = CORE_API + "/student/unbindSecurityPhone/" + stuIds;
-        this.$httpWithMsg.put(url).then(response => {
+        this.$httpWithMsg.put(url).then((response) => {
           console.log(response);
           console.log(response);
           this.$notify({
           this.$notify({
             type: "success",
             type: "success",
-            message: "解绑成功"
+            message: "解绑成功",
           });
           });
           this.searchForm();
           this.searchForm();
         });
         });
@@ -1191,14 +1196,14 @@ export default {
       this.$confirm("是否重置所选学生的密码?", "提示", {
       this.$confirm("是否重置所选学生的密码?", "提示", {
         confirmButtonText: "确定",
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         cancelButtonText: "取消",
-        type: "warning"
+        type: "warning",
       }).then(() => {
       }).then(() => {
         var url = CORE_API + "/student/resetPass/" + stuIds;
         var url = CORE_API + "/student/resetPass/" + stuIds;
-        this.$httpWithMsg.put(url).then(response => {
+        this.$httpWithMsg.put(url).then((response) => {
           console.log(response);
           console.log(response);
           this.$notify({
           this.$notify({
             type: "success",
             type: "success",
-            message: "重置密码成功"
+            message: "重置密码成功",
           });
           });
           this.searchForm();
           this.searchForm();
         });
         });
@@ -1212,14 +1217,14 @@ export default {
       this.$confirm("是否禁用所选学生?", "提示", {
       this.$confirm("是否禁用所选学生?", "提示", {
         confirmButtonText: "确定",
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         cancelButtonText: "取消",
-        type: "warning"
+        type: "warning",
       }).then(() => {
       }).then(() => {
         var url = CORE_API + "/student/disable/" + stuIds;
         var url = CORE_API + "/student/disable/" + stuIds;
-        this.$httpWithMsg.put(url).then(response => {
+        this.$httpWithMsg.put(url).then((response) => {
           console.log(response);
           console.log(response);
           this.$notify({
           this.$notify({
             type: "success",
             type: "success",
-            message: "禁用成功"
+            message: "禁用成功",
           });
           });
           this.searchForm();
           this.searchForm();
         });
         });
@@ -1233,14 +1238,14 @@ export default {
       this.$confirm("是否启用所选学生?", "提示", {
       this.$confirm("是否启用所选学生?", "提示", {
         confirmButtonText: "确定",
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         cancelButtonText: "取消",
-        type: "warning"
+        type: "warning",
       }).then(() => {
       }).then(() => {
         var url = CORE_API + "/student/enable/" + stuIds;
         var url = CORE_API + "/student/enable/" + stuIds;
-        this.$httpWithMsg.put(url).then(response => {
+        this.$httpWithMsg.put(url).then((response) => {
           console.log(response);
           console.log(response);
           this.$notify({
           this.$notify({
             type: "success",
             type: "success",
-            message: "启用成功"
+            message: "启用成功",
           });
           });
           this.searchForm();
           this.searchForm();
         });
         });
@@ -1261,7 +1266,7 @@ export default {
       console.log(fileList);
       console.log(fileList);
       this.$notify({
       this.$notify({
         message: "上传成功",
         message: "上传成功",
-        type: "success"
+        type: "success",
       });
       });
       this.fileLoading = false;
       this.fileLoading = false;
       this.photoUploadDialog = false;
       this.photoUploadDialog = false;
@@ -1275,7 +1280,7 @@ export default {
       if (response.status == 500) {
       if (response.status == 500) {
         this.$notify({
         this.$notify({
           message: json.desc,
           message: json.desc,
-          type: "error"
+          type: "error",
         });
         });
       }
       }
       this.fileLoading = false;
       this.fileLoading = false;
@@ -1288,14 +1293,14 @@ export default {
       if (fileList.length == 0) {
       if (fileList.length == 0) {
         this.$notify({
         this.$notify({
           message: "上传文件不能为空",
           message: "上传文件不能为空",
-          type: "error"
+          type: "error",
         });
         });
         return false;
         return false;
       }
       }
       if (fileList.length > 1) {
       if (fileList.length > 1) {
         this.$notify({
         this.$notify({
           message: "每次只能上传一个文件",
           message: "每次只能上传一个文件",
-          type: "error"
+          type: "error",
         });
         });
         return false;
         return false;
       }
       }
@@ -1304,7 +1309,7 @@ export default {
         if (!f.endsWith(".jpg") && !f.endsWith(".png")) {
         if (!f.endsWith(".jpg") && !f.endsWith(".png")) {
           this.$notify({
           this.$notify({
             message: "上传文件必须为jpg或者png格式",
             message: "上传文件必须为jpg或者png格式",
-            type: "error"
+            type: "error",
           });
           });
           this.initUpload();
           this.initUpload();
           return false;
           return false;
@@ -1331,7 +1336,7 @@ export default {
         Object.keys(this.rolePrivileges).toString()
         Object.keys(this.rolePrivileges).toString()
       );
       );
       let url = CORE_API + "/rolePrivilege/checkPrivileges?" + params;
       let url = CORE_API + "/rolePrivilege/checkPrivileges?" + params;
-      this.$httpWithMsg.post(url).then(response => {
+      this.$httpWithMsg.post(url).then((response) => {
         this.rolePrivileges = response.data;
         this.rolePrivileges = response.data;
       });
       });
     },
     },
@@ -1351,13 +1356,13 @@ export default {
 
 
       if (this.pureLC) {
       if (this.pureLC) {
         let url = CORE_API + "/user/" + this.user.userId;
         let url = CORE_API + "/user/" + this.user.userId;
-        this.$httpWithMsg.get(url).then(response => {
+        this.$httpWithMsg.get(url).then((response) => {
           var userInfo = response.data;
           var userInfo = response.data;
           this.lc_id = userInfo.orgId;
           this.lc_id = userInfo.orgId;
           this.lc_name = userInfo.orgName;
           this.lc_name = userInfo.orgName;
           this.lc_code = userInfo.orgCode;
           this.lc_code = userInfo.orgCode;
           this.orgList4Search = [
           this.orgList4Search = [
-            { id: this.lc_id, name: this.lc_name, code: this.lc_code }
+            { id: this.lc_id, name: this.lc_name, code: this.lc_code },
           ];
           ];
           this.formSearch.orgId = this.lc_id;
           this.formSearch.orgId = this.lc_id;
         });
         });
@@ -1365,7 +1370,7 @@ export default {
 
 
       let url = CORE_API + "/org/getRootOrgList";
       let url = CORE_API + "/org/getRootOrgList";
 
 
-      this.$httpWithMsg.get(url).then(response => {
+      this.$httpWithMsg.get(url).then((response) => {
         this.rootOrgList = response.data;
         this.rootOrgList = response.data;
       });
       });
 
 
@@ -1375,7 +1380,7 @@ export default {
     },
     },
     handleExamChange4Search(value) {
     handleExamChange4Search(value) {
       if (this.examList4Search.length > 0) {
       if (this.examList4Search.length > 0) {
-        let examArr = this.examList4Search.filter(p => p.id == value);
+        let examArr = this.examList4Search.filter((p) => p.id == value);
         if (examArr && examArr.length > 0) {
         if (examArr && examArr.length > 0) {
           let exam = examArr[0];
           let exam = examArr[0];
           if (
           if (
@@ -1405,7 +1410,7 @@ export default {
             "&enable=true&name=" +
             "&enable=true&name=" +
             name
             name
         )
         )
-        .then(response => {
+        .then((response) => {
           if ("search" == where) {
           if ("search" == where) {
             this.queryExamStages4SearchLoading = false;
             this.queryExamStages4SearchLoading = false;
             this.examStageList4Search = response.data;
             this.examStageList4Search = response.data;
@@ -1414,7 +1419,7 @@ export default {
             this.examStageList4InsertOrUpdate = response.data;
             this.examStageList4InsertOrUpdate = response.data;
           }
           }
         })
         })
-        .catch(response => {
+        .catch((response) => {
           console.log(response);
           console.log(response);
           if ("search" == where) {
           if ("search" == where) {
             this.queryExamStages4SearchLoading = false;
             this.queryExamStages4SearchLoading = false;
@@ -1422,15 +1427,15 @@ export default {
             this.queryExamStages4InsertOrUpdateLoading = false;
             this.queryExamStages4InsertOrUpdateLoading = false;
           }
           }
         });
         });
-    }
+    },
   },
   },
   created() {
   created() {
     this.init();
     this.init();
     this.uploadHeaders = {
     this.uploadHeaders = {
       key: this.user.key,
       key: this.user.key,
-      token: this.user.token
+      token: this.user.token,
     };
     };
-  }
+  },
 };
 };
 </script>
 </script>
 <style scoped>
 <style scoped>