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; //总人数名称