瀏覽代碼

批次新增是否允许考试发起语音通话配置

zhangjie 2 年之前
父節點
當前提交
87015ad9a1
共有 3 個文件被更改,包括 22 次插入6 次删除
  1. 16 0
      src/features/examwork/ExamManagement/ExamEdit.vue
  2. 5 5
      src/styles/base.scss
  3. 1 1
      src/styles/element-ui-custom.scss

+ 16 - 0
src/features/examwork/ExamManagement/ExamEdit.vue

@@ -502,6 +502,16 @@
               ></div>
             </div>
           </div>
+          <el-row v-if="isOpenMonitorVideo">
+            <el-form-item label="是否允许考生发起语音通话">
+              <el-radio v-model="form.studentCanCall" :label="1">
+                是
+              </el-radio>
+              <el-radio v-model="form.studentCanCall" :label="0">
+                否
+              </el-radio>
+            </el-form-item>
+          </el-row>
         </el-form>
       </el-tab-pane>
 
@@ -631,6 +641,11 @@ export default {
     enablePrevilleges() {
       return !!this.$store.state.user.orgInfo.enableMonitorRecord;
     },
+    isOpenMonitorVideo() {
+      return Object.keys(this.monitorVideoSource).some(
+        (k) => this.monitorVideoSource[k] !== "0"
+      );
+    },
   },
   watch: {
     "form.mode": {
@@ -749,6 +764,7 @@ export default {
         monitorProxy: false,
         monitorRecord: [],
         monitorVideoSource: [],
+        studentCanCall: 1,
         ipAllow: "",
       },
       rules: {

+ 5 - 5
src/styles/base.scss

@@ -910,7 +910,7 @@ body {
   position: absolute;
   top: 90px;
   right: 30px;
-  bottom: 40px;
+  bottom: 45px;
   left: 30px;
   overflow: hidden;
 
@@ -2076,18 +2076,18 @@ body {
     margin: 20px 0 0;
   }
 }
-.student-track-record-dialog{
-  .el-dialog{
+.student-track-record-dialog {
+  .el-dialog {
     border-radius: 0;
   }
-  .el-dialog__body{
+  .el-dialog__body {
     position: absolute;
     width: 100%;
     top: 58px;
     bottom: 0;
     background-color: #f0f4f9;
   }
-  .student-track-record{
+  .student-track-record {
     position: relative;
     height: 0;
     top: auto;

+ 1 - 1
src/styles/element-ui-custom.scss

@@ -260,7 +260,7 @@
     margin-right: 12px;
 
     &.is-active {
-      color: #202b4b;
+      color: #1886fe;
       font-weight: 600;
     }
   }