xiatian hace 5 años
padre
commit
c2b1825a4f
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      src/modules/examwork/view/onlineExam.vue

+ 8 - 0
src/modules/examwork/view/onlineExam.vue

@@ -393,6 +393,7 @@
                     :label-width="style.label_width_tab4"
                   >
                     <el-radio-group
+                      @change="faceEnableChange"
                       v-model="form.properties.IS_FACE_ENABLE"
                       :disabled="this.is_face_enable_diabled"
                       class="input"
@@ -1056,6 +1057,13 @@ export default {
   },
 
   methods: {
+    faceEnableChange() {
+      if (this.form.properties.IS_FACE_ENABLE == "false") {
+        this.form.properties.IS_STRANGER_ENABLE = "false";
+        this.form.properties.IS_FACE_CHECK = "false";
+        this.form.properties.IS_FACE_VERIFY = "false";
+      }
+    },
     init() {
       if (this.examId != "add") {
         let url = EXAM_WORK_API + "/exam/" + this.examId;