Bläddra i källkod

补录-二次补录报名bug

shilipojs 2 år sedan
förälder
incheckning
afe1db7d7a

+ 2 - 2
src/views/elective/select/components/elective-preference-command.vue

@@ -28,7 +28,7 @@ export default {
       return this.selectedList.some(this.isGroupRejected)
     },
     enableCommit() {
-      return this.selectedList.length >= this.generation.activeModel.preferenceCount
+      return this.selectedList.length >= this.generation.status.preferenceCount
     },
     preferenceCount() {
       return this.generation.status.preferenceCount
@@ -36,7 +36,7 @@ export default {
   },
   methods: {
     async handleCommit() {
-      if (!this.enableCommit) {
+      if (this.enableCommit) {
         this.$message.error(this.preferenceCount == 1 ? `只能填报1个志愿` : `最多只能填报${this.preferenceCount}个志愿`)
         return
       }