فهرست منبع

优化学校配置

WANG 5 سال پیش
والد
کامیت
bac0744b71
1فایلهای تغییر یافته به همراه9 افزوده شده و 6 حذف شده
  1. 9 6
      src/modules/examwork/view/onlineExam.vue

+ 9 - 6
src/modules/examwork/view/onlineExam.vue

@@ -150,13 +150,14 @@
                 </el-row>
                 <el-row>
                   <el-form-item
-                    label="是否开启环境检测"
-                    :label-width="style.label_width_tab7"
+                    label="开启环境检测"
+                    :label-width="style.label_width_tab1"
                   >
-                    <el-radio-group v-model="form.properties.CHECK_ENVIRONMENT">
-                      <el-radio label="true">是</el-radio>
-                      <el-radio label="false">否</el-radio>
-                    </el-radio-group>
+                    <el-switch
+                      v-model="form.properties.CHECK_ENVIRONMENT"
+                      on-text="是"
+                      off-text="否"
+                    ></el-switch>
                   </el-form-item>
                 </el-row>
               </el-tab-pane>
@@ -1091,6 +1092,8 @@ export default {
               this.form.properties.BOOL_EDIT === "true";
             this.form.properties.FILL_BLANK_EDIT =
               this.form.properties.FILL_BLANK_EDIT === "true";
+            this.form.properties.CHECK_ENVIRONMENT =
+              this.form.properties.CHECK_ENVIRONMENT === "true";
 
             this.show_ckeditor = true;