瀏覽代碼

超出志愿提示

shilipojs 2 年之前
父節點
當前提交
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
       }