Răsfoiți Sursa

aorb bug fix

zhangjie 5 ani în urmă
părinte
comite
86d48ba218
1 a modificat fișierele cu 6 adăugiri și 5 ștergeri
  1. 6 5
      src/modules/card/components/PagePropEdit.vue

+ 6 - 5
src/modules/card/components/PagePropEdit.vue

@@ -45,7 +45,9 @@
         >
       </el-form-item>
       <el-form-item label-width="0px">
-        <el-checkbox v-model="form.showForbidArea" @change="configChange"
+        <el-checkbox
+          v-model="form.showForbidArea"
+          @change="showForbidAreaChange"
           >启用禁答区</el-checkbox
         >
       </el-form-item>
@@ -114,9 +116,6 @@ export default {
       handler(val) {
         this.form = this.$objAssign(this.form, val);
         this.prePageSize = this.form.pageSize;
-        if (val.hasOwnProperty("aOrBSystem")) {
-          this.form.aOrB = val.aOrBSystem;
-        }
         this.columnOptions[2].disabled = val.examNumberStyle === "fill";
       }
     }
@@ -152,8 +151,10 @@ export default {
       this.setTopicNos([]);
       this.$emit("init-page");
     },
+    showForbidAreaChange() {
+      this.setCardConfig(this.form);
+    },
     configChange() {
-      // TIPS:暂时不用到
       this.setCardConfig(this.form);
       this.$nextTick(() => {
         this.rebuildPages();