deason 3 years ago
parent
commit
d950702211

+ 12 - 3
src/modules/basic/view/school_config.vue

@@ -217,7 +217,7 @@ export default {
       let pcClientEnabled = this.ruleForm.PC_CLIENT_ENABLED;
       if (pcClientEnabled) {
         let reg = /^[1-9][0-9]*$/;
-        if (!value.match(reg) || value < 5 || value > 20) {
+        if (!new String(value).match(reg) || value < 5 || value > 20) {
           return callback(new Error("范围5至20之间"));
         }
       }
@@ -395,8 +395,17 @@ export default {
           if (params.properties.PC_CLIENT_ENABLED) {
             params.properties.ACTION_ALERT = this.ruleForm.ACTION_ALERT;
             params.properties.ACTION_NUM = this.ruleForm.ACTION_NUM;
-            params.properties.ACTION_OPTIONS =
-              this.ruleForm.ACTION_OPTIONS.join(",");
+
+            // 固定动作顺序
+            let finalActionOptions = [];
+            for (let n = 0; n < ACTION_OPTION_LIST.length; n++) {
+              let code = ACTION_OPTION_LIST[n].code;
+              if (this.ruleForm.ACTION_OPTIONS.indexOf(code) > -1) {
+                finalActionOptions.push(code);
+              }
+            }
+            params.properties.ACTION_OPTIONS = finalActionOptions.join(",");
+
             params.properties.ACTION_ORDER = this.ruleForm.ACTION_ORDER;
             params.properties.ACTION_DURATION = this.ruleForm.ACTION_DURATION;
           }

+ 0 - 3
src/modules/examwork/view/examStudent.vue

@@ -94,7 +94,6 @@
               filterable
               clearable
               placeholder="请选择"
-              :disabled="pureLC"
             >
               <el-option
                 v-for="item in orgList4Search"
@@ -302,7 +301,6 @@
                 filterable
                 clearable
                 placeholder="请选择"
-                :disabled="pureLC"
               >
                 <el-option
                   v-for="item in orgList4InsertOrUpdate"
@@ -491,7 +489,6 @@
                 filterable
                 clearable
                 placeholder="请选择"
-                :disabled="pureLC"
                 @clear="clearOrg4UpdateExamStudent"
               >
                 <el-option

+ 0 - 2
src/modules/examwork/view/student.vue

@@ -55,7 +55,6 @@
               filterable
               clearable
               placeholder="请选择"
-              :disabled="pureLC"
             >
               <el-option
                 v-for="item in orgList4Search"
@@ -178,7 +177,6 @@
                 filterable
                 clearable
                 placeholder="请选择"
-                :disabled="pureLC"
               >
                 <el-option
                   v-for="item in orgList4RestPassword"