瀏覽代碼

feat: 标记状态查询修改

zhangjie 10 月之前
父節點
當前提交
686ba7c4be
共有 2 個文件被更改,包括 10 次插入11 次删除
  1. 2 2
      src/constant/constants.js
  2. 8 9
      src/features/invigilation/WarningManage/WarningManage.vue

+ 2 - 2
src/constant/constants.js

@@ -107,8 +107,8 @@ export const APPROVE_STATUS = {
 };
 // 监控标记状态
 export const MARK_STATUS = {
-  MARK: "标记",
-  UN_MARK: "撤销标记",
+  MARK: "",
+  UN_MARK: "",
 };
 // 重考方式
 export const REEXAM_TYPE = {

+ 8 - 9
src/features/invigilation/WarningManage/WarningManage.vue

@@ -154,13 +154,16 @@
           </el-form-item>
           <el-form-item>
             <el-select
-              v-model="markStatus"
-              placeholder="重点监控"
+              v-model="filter.markStatus"
+              placeholder="标记状态"
               clearable
-              @change="markStatusChange"
             >
-              <el-option value="1" label="是"></el-option>
-              <el-option value="0" label="否"></el-option>
+              <el-option
+                v-for="(val, key) in MARK_STATUS"
+                :key="key"
+                :value="key"
+                :label="val"
+              ></el-option>
             </el-select>
           </el-form-item>
           <el-form-item>
@@ -273,7 +276,6 @@ export default {
         maxWarningCount: undefined,
         minWarningCount: undefined,
       },
-      markStatus: null,
       dataReady: false,
       curExamRoomName: "",
       APPROVE_STATUS,
@@ -365,9 +367,6 @@ export default {
       });
       this.$parent.$parent.timerUpdatePage();
     },
-    markStatusChange() {
-      this.filter.markStatus = this.markStatus === "1" ? "MARK" : "";
-    },
     async getExamBatchList() {
       const userId = this.IS_INVIGILATE ? this.user.id : null;
       const res = await examBatchList({ userId, warnCount: true });