Browse Source

填报组合修复

shilipojs 2 năm trước cách đây
mục cha
commit
98c6d23fba

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

@@ -36,6 +36,7 @@ export default {
   },
   methods: {
     async handleCommit() {
+      console.log(this.group)
       if (this.enableCommit) {
         this.$message.error(this.preferenceCount == 1 ? `只能填报1个志愿` : `最多只能填报${this.preferenceCount}个志愿`)
         return
@@ -46,7 +47,7 @@ export default {
         this.selectedList.push(this.group)
       } else {
         let confirmTip = `确认填报 ${this.group.groupName}`
-        if (!group.isRecommend) confirmTip += '(非推荐)'
+        if (!this.group.isRecommend) confirmTip += '(非推荐)'
         await this.$confirm(confirmTip)
         this.group.selected = true
         this.selectedList.push(this.group)