瀏覽代碼

commit tips

hare8999@163.com 2 年之前
父節點
當前提交
d0387be21d
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/views/elective/select/components/elective-preference-command.vue

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

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