From 7cb5a9e2bbe22ca82f8ab14b0db2d82b75aab615 Mon Sep 17 00:00:00 2001 From: xbx <1827135378@qq.com> Date: Sun, 28 Apr 2024 13:35:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cet/cet-ana-1.vue | 70 +++++++++++++++++++++---------------- 1 file changed, 39 insertions(+), 31 deletions(-) diff --git a/src/views/cet/cet-ana-1.vue b/src/views/cet/cet-ana-1.vue index 441f0d6..4a7367b 100644 --- a/src/views/cet/cet-ana-1.vue +++ b/src/views/cet/cet-ana-1.vue @@ -5,8 +5,8 @@
- 年级: + 年级: 查询 @@ -35,28 +35,16 @@
- 学院: + 学院: - - 年级: + + 年级: - + 查询
@@ -94,23 +82,35 @@ :max-tag-count="5" @change="onCollegeMajorChange"> 查询 -->
- 年级: + 年级: - +
- 学院: + 学院: - +
- 专业: + 专业:
+
+ 已选择: + + {{ item[1] }} + + + +
清除 - 查询 + 查询
@@ -442,6 +442,14 @@ export default { } console.log(value, 'value'); }, + removeTag(index) { + if (this.majorCheckOn.includes(this.lastCollegeMajor[index][1])) { + let index1 = this.majorCheckOn.indexOf(this.lastCollegeMajor[index][1]) + this.majorCheckOn.splice(index1, 1); + } + this.lastCollegeMajor.splice(index, 1); + this.majorLength--; + }, //学院选项回调函数 onMajorCollegeChange(value) { let val = value.target.value;