Эх сурвалжийг харах

监考直播方案配置修改

zhangjie 3 жил өмнө
parent
commit
a6bebfa141

+ 8 - 11
src/features/examwork/ExamManagement/ExamEdit.vue

@@ -402,7 +402,7 @@
               <el-form-item label="电脑操作录屏">
                 <el-radio-group
                   v-model="monitorVideoSource.CLIENT_SCREEN"
-                  :disabled="monitorVideoSource.CLIENT_CAMERA === '0'"
+                  :disabled="monitorVideoSource.CLIENT_CAMERA !== '1'"
                   :title="
                     monitorVideoSource.CLIENT_CAMERA === '0' &&
                     '原因:先选择电脑摄像头主机位'
@@ -410,7 +410,7 @@
                   @change="monitorClientScreenChange"
                 >
                   <el-radio
-                    v-for="(val, key) in monitorTypes"
+                    v-for="(val, key) in monitorTinyTypes"
                     :key="key"
                     :label="key"
                     >{{ val }}
@@ -875,6 +875,10 @@ export default {
         1: "直播",
         2: "直播+回放",
       },
+      monitorTinyTypes: {
+        0: "关闭",
+        1: "直播",
+      },
       monitorVideoSource: {
         CLIENT_CAMERA: "0",
         CLIENT_SCREEN: "0",
@@ -905,20 +909,13 @@ export default {
       return "";
     },
     monitorClientCameraChange(val) {
-      if (val === "0") {
+      if (val === "0" || val === "2") {
         this.monitorVideoSource.CLIENT_SCREEN = "0";
       }
-      if (val === "2" && this.monitorVideoSource.CLIENT_SCREEN === "2") {
-        this.monitorVideoSource.CLIENT_SCREEN = "1";
-      }
 
       this.monitorVideoSourceChange();
     },
-    monitorClientScreenChange(val) {
-      if (val === "2" && this.monitorVideoSource.CLIENT_CAMERA === "2") {
-        this.monitorVideoSource.CLIENT_CAMERA = "1";
-      }
-
+    monitorClientScreenChange() {
       this.monitorVideoSourceChange();
     },
     monitorMobileFirstChange(val) {