소스 검색

超出志愿提示

shilipojs 3 년 전
부모
커밋
c10fe73fd0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/elective/select/components/elective-preference-command.vue

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

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