Selaa lähdekoodia

批次编辑加校验

Michael Wang 4 vuotta sitten
vanhempi
commit
c6aaf9eb72
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  1. 10 0
      src/features/examwork/ExamManagement/ExamEdit.vue

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

@@ -426,6 +426,16 @@ export default {
     },
   },
   watch: {
+    "form.mode": {
+      immediate: true,
+      handler(v) {
+        if (v === "ANYTIME") {
+          this.form.forceFinish = 0;
+          this.form.prepareSeconds = 0;
+          this.form.openingSeconds = 0;
+        }
+      },
+    },
     "form.startEndTimeProxy": {
       immediate: true,
       handler(v) {