zhangjie 5 роки тому
батько
коміт
e8432021ad

+ 9 - 1
src/modules/exam-center/views/CardAudit.vue

@@ -2,7 +2,7 @@
   <div class="card-check">
     <div style="margin-bottom: 20px;">
       <el-button
-        v-for="(val, key) in AUDITING_STATUS"
+        v-for="(val, key) in auditingStatus"
         :key="key"
         :type="key == filter.auditingStatus ? 'primary' : 'default'"
         @click="selectAuditStatus(key)"
@@ -139,6 +139,7 @@ export default {
       size: this.GLOBAL.pageSize,
       total: 0,
       visible: false,
+      auditingStatus: {},
       AUDITING_STATUS,
       schools: [],
       colleges: [],
@@ -147,6 +148,13 @@ export default {
     };
   },
   created() {
+    let auditingStatus = {};
+    Object.keys(AUDITING_STATUS)
+      .filter(key => key !== "9")
+      .map(key => {
+        auditingStatus[key] = AUDITING_STATUS[key];
+      });
+    this.auditingStatus = auditingStatus;
     this.getList();
     this.getSchoolList();
   },

+ 0 - 2
src/modules/exam-center/views/ExamRomeDetail.vue

@@ -98,7 +98,6 @@
 </template>
 
 <script>
-import { PRINT_STATUS } from "@/constants/enumerate";
 import { examRoomDetail, examSiteRoomList } from "../api";
 
 export default {
@@ -114,7 +113,6 @@ export default {
       size: this.GLOBAL.pageSize,
       total: 0,
       visible: false,
-      PRINT_STATUS,
       exams: [],
       scenes: [],
       sites: [],

+ 0 - 2
src/modules/exam-center/views/ExamRomeStudentDetail.vue

@@ -141,7 +141,6 @@
 </template>
 
 <script>
-import { PRINT_STATUS } from "@/constants/enumerate";
 import { studentDetail, examSiteRoomList } from "../api";
 
 export default {
@@ -159,7 +158,6 @@ export default {
       size: this.GLOBAL.pageSize,
       total: 0,
       visible: false,
-      PRINT_STATUS,
       exams: [],
       scenes: [],
       sites: [],