Explorar o código

monitorVideoSource 修改为大写字段

Michael Wang %!s(int64=4) %!d(string=hai) anos
pai
achega
0aef468b26
Modificáronse 1 ficheiros con 9 adicións e 9 borrados
  1. 9 9
      src/features/examwork/ExamManagement/ExamEdit.vue

+ 9 - 9
src/features/examwork/ExamManagement/ExamEdit.vue

@@ -307,14 +307,14 @@
           <el-row>
             <el-form-item v-if="form.monitorProxy" label="电脑&手机监控方案">
               <el-checkbox-group v-model="form.monitorVideoSource">
-                <el-checkbox label="client_camera"
+                <el-checkbox label="CLIENT_CAMERA"
                   >电脑摄像头为主机位</el-checkbox
                 >
-                <el-checkbox label="client_screen">电脑开启录频</el-checkbox>
-                <el-checkbox label="mobile_first">手机主机位</el-checkbox>
+                <el-checkbox label="CLIENT_SCREEN">电脑开启录频</el-checkbox>
+                <el-checkbox label="MOBILE_FIRST">手机主机位</el-checkbox>
                 <el-checkbox
-                  :disabled="!form.monitorVideoSource.includes('mobile_first')"
-                  label="mobile_second"
+                  :disabled="!form.monitorVideoSource.includes('MOBILE_FIRST')"
+                  label="MOBILE_SECOND"
                   >手机辅机位</el-checkbox
                 >
               </el-checkbox-group>
@@ -415,12 +415,12 @@ export default {
         }
         if (
           // 没动静,不修改,避免死循环
-          (v || []).includes("mobile_first") !==
-            (ov || []).includes("mobile_first") &&
-          !this.form.monitorVideoSource.includes("mobile_first")
+          (v || []).includes("MOBILE_FIRST") !==
+            (ov || []).includes("MOBILE_FIRST") &&
+          !this.form.monitorVideoSource.includes("MOBILE_FIRST")
         ) {
           this.form.monitorVideoSource = this.form.monitorVideoSource.filter(
-            (v) => v !== "mobile_second"
+            (v) => v !== "MOBILE_SECOND"
           );
         }
       },