From 46d1d319f68c70e322b9b56cf33821dd5e869954 Mon Sep 17 00:00:00 2001 From: YuNan <3194726156@qq.com> Date: Wed, 19 Mar 2025 17:49:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cet/universityDashboard.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/views/cet/universityDashboard.vue b/src/views/cet/universityDashboard.vue index 9d63ae7..87d916f 100644 --- a/src/views/cet/universityDashboard.vue +++ b/src/views/cet/universityDashboard.vue @@ -334,6 +334,8 @@ const parent = this.collegeMajorOptions.find((p) => p.children && p.children.some((child) => child.value === item.value)); //console.log('1111', parent.label); console.log('2222', this.collegeMajorOptions); + //清空collegeMajor + this.collegeMajor = []; if (parent) { this.selectedLabel = `${parent.label} / ${item.label}`; this.collegeMajor[0] = parent.value; @@ -864,6 +866,19 @@ } console.log('tableData', tableData); + tableData.forEach((item) => { + const year = item.batch.substring(0, 4); + console.log('year', year); + if (item.batch.includes('12-01')) { + item.batch = `${year}冬季`; + } else if (item.batch.includes('06-01')) { + item.batch = `${year}夏季`; + } else if (item.batch.includes('09-01')) { + item.batch = `${year}夏季`; + } else if (item.batch.includes('03-01')) { + item.batch = `${year}春季`; + } + }); this.dataSourceCet4 = tableData; //表格数据 this.total = result.total; //总人数 this.totalName = result.totalName; //总人数名称