瀏覽代碼

专业条件全选失效修复

shilipojs 2 年之前
父節點
當前提交
c81e49e7f6
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/views/career/zhiyuan/components/recommend.vue

+ 4 - 4
src/views/career/zhiyuan/components/recommend.vue

@@ -450,16 +450,16 @@ export default {
             this.$message.warning('最多选择10个专业')
             throw Error('最多选择10个专业')
           }
-          if (this.checkedList.findIndex(code => code == item.code) == -1) {
-            this.checkedList.push(item.code)
+          if (this.checkedList.findIndex(name => name == item.name) == -1) {
+            this.checkedList.push(item.name)
           }
         })
       } else {
         // 移除
         this.childrenMajors.forEach(item => {
           for (let i = 0; i < checkedList.length; i++) {
-            if (item.code == checkedList[i]) {
-              this.checkedList.remove(item.code)
+            if (item.name == checkedList[i]) {
+              this.checkedList.remove(item.name)
             }
           }
         })