xiexaing před 1 rokem
rodič
revize
ac29dd5a93

+ 5 - 2
src/views/education/examManagement/examArrangement/index.vue

@@ -762,7 +762,10 @@ export default {
       loading: false, //当前表单加载是否加载动画
       isPeopleNumDialog: false,
       peopleRules: { num: [{ required: true, message: "请输入", trigger: "blur" }]},
-      peopleNumDate: {},
+      peopleNumDate: {
+        num: '',
+        applyIds: []
+      },
       navText: {
         title: "考试安排",
         index: 0,
@@ -959,7 +962,6 @@ export default {
     },
     // 保存修改人数
     handlePeopleNum() {
-      this.isPeopleNumDialog = false
       this.$refs['peopleNum'].validate((valid) => {
         if (valid) {
           this.$api.editPeopleNum(this.peopleNumDate).then(res => {
@@ -967,6 +969,7 @@ export default {
             this.search();
           }).finally(() => {
             console.log('error submit!')
+            this.isPeopleNumDialog = false
           })
         } else {
           return false;