+
+
@@ -207,22 +207,21 @@ export default {
this.getEntrydateAndCollegeData();
this.getCollegeMajorData();
this.query();
- this.allQuery();
+ // this.allQuery();
this.getCollegeOptions();
this.getEntrydate();
},
methods: {
allQuery() {
- console.log('查询===========');
-
this.map1loading = true;
+ console.log('查询===========ddddddddddd');
let college = ['全校'];
let query = 'tab1';
if (this.oneentrydate == null) {
this.oneentrydate = '2017';
}
- this.queryChart(query, college, [this.oneentrydate]);
+ this.queryChart(query, college, [this.entrydate]);
this.majorPassRate();
this.gradePassRate();
},
@@ -589,7 +588,6 @@ export default {
// 查询数据
async queryChart(query, college, entrydate) {
console.log('dddddddddddddddddddddddd');
-
this.visible = false;
let result = null;
// console.log(this.college, this.entrydate);
@@ -606,7 +604,7 @@ export default {
// console.log(this.college, this.entrydate)
let params = {
college: college,
- entrydate: entrydate,
+ entrydate: [String(entrydate[0])],
level: 'cet4',
};
let url = query == 'tab1' ? this.Url.getAllRate : this.Url.getCollegeRate;
@@ -618,10 +616,9 @@ export default {
// });
console.log('data', result.data);
} finally {
- this.map1loading = false;
+ this.map1loading=false;
this.$nextTick(() => {
console.log('调用==============');
-
this.dataChart(result.data, query);
});
}
@@ -665,6 +662,7 @@ export default {
// 查询数据
async query() {
try {
+ this.allQuery();
//如果this.collegeMajor[1]不存在则设为null
let major = this.collegeMajor.length > 1 ? this.collegeMajor[1] : '';
this.topCollege = this.collegeMajor[0];
@@ -952,6 +950,7 @@ export default {
.bottom-box {
display: flex;
column-gap: 10px;
+ padding: 0 5px;
.left-side {
// margin-top: 41px;
From 02024f1e2493156ab35942a66187653fec894f9e Mon Sep 17 00:00:00 2001
From: YuNan <3194726156@qq.com>
Date: Sat, 15 Mar 2025 18:28:54 +0800
Subject: [PATCH 4/6] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=9A=84=E9=A1=B6?=
=?UTF-8?q?=E9=83=A8=E4=BC=98=E5=8C=961?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/cet/universityDashboard.vue | 1928 ++++++++++++++-----------
1 file changed, 1069 insertions(+), 859 deletions(-)
diff --git a/src/views/cet/universityDashboard.vue b/src/views/cet/universityDashboard.vue
index 8232bc3..19e6350 100644
--- a/src/views/cet/universityDashboard.vue
+++ b/src/views/cet/universityDashboard.vue
@@ -1,6 +1,6 @@
-
+
+
+
+
+
+
+ {{ selectedLabel || '请选择学院' }}
+
+
+
+
+
+
+
+
查询
- {{ totalName }}总人数:{{ total }}
+ {{ totalName }}总人数:{{ total }}
累计通过人数: {{ passNumberBottom }}
累计总通过率: {{ passRateBottom }}
-
-
-
查询
@@ -27,9 +59,7 @@
-
-
+
累计总通过率
@@ -39,11 +69,10 @@
-
+
-
-
-
\ No newline at end of file
+ .right-side {
+ position: relative;
+ flex: 1;
+ }
+ }
+
+ .search-row {
+ display: flex;
+ align-items: center;
+ }
+
+ .query {
+ right: 3%;
+ top: 10px;
+ position: absolute;
+ padding-left: 20px;
+ margin-bottom: 10px;
+ display: flex;
+ align-items: center;
+ z-index: 9999;
+ }
+ .dropdown-wrapper {
+ position: relative; /* ✅ 让下拉菜单基于此定位 */
+ display: inline-block;
+ }
+ .dropdown-trigger {
+ width: 160px; /* ✅ 设置选择框宽度 */
+ height: 32px;
+ border: 1px solid #ccc; /* ✅ 添加边框 */
+ padding: 6px 12px;
+ border-radius: 4px;
+ background-color: #fff;
+ cursor: pointer;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ }
+
+ .dropdown-panel {
+ position: absolute;
+ top: 100%; /* ✅ 紧贴选择框底部 */
+ left: 0;
+ background: white;
+ border: 1px solid #ddd;
+ z-index: 1000;
+ display: flex;
+ }
+ .main-menu,
+ .sub-menu {
+ min-width: 160px;
+ max-height: 300px; /* ✅ 控制每一级高度 */
+ overflow-y: auto; /* ✅ 各自独立滚动 */
+ overflow-x: hidden;
+ border-right: 1px solid #eee;
+ }
+
+ .menu-item {
+ padding: 6px 12px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ cursor: pointer;
+ white-space: nowrap;
+ }
+
+ .menu-item:hover {
+ background: #f5f5f5;
+ }
+
+ .expand-icon {
+ margin-left: 8px;
+ color: #999;
+ }
+
From 930fbdf47476e1d6677a25589516a294b39c2d72 Mon Sep 17 00:00:00 2001
From: YuNan <3194726156@qq.com>
Date: Sun, 16 Mar 2025 15:14:46 +0800
Subject: [PATCH 5/6] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5?=
=?UTF-8?q?=E6=95=88=E6=9E=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/cet/universityDashboard.vue | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/src/views/cet/universityDashboard.vue b/src/views/cet/universityDashboard.vue
index 19e6350..b84e5d3 100644
--- a/src/views/cet/universityDashboard.vue
+++ b/src/views/cet/universityDashboard.vue
@@ -47,7 +47,7 @@
+
{{ totalName }}总人数:{{ total }}
累计通过人数: {{ passNumberBottom }}
累计总通过率: {{ passRateBottom }}
@@ -110,6 +110,7 @@
import * as echarts from 'echarts';
import { message } from 'ant-design-vue';
import { DownOutlined, RightOutlined } from '@ant-design/icons-vue';
+ import { getThirdUserBindByWechat } from '../system/appconfig/ThirdApp.api';
export default {
components: {
@@ -720,6 +721,13 @@
// 使用刚指定的配置项和数据显示图表。
myChart.on('click', async (params) => {
+ const college = params.name.replace(/\n/g, ''); // 去掉所有换行符
+ this.selectedLabel = college;
+ //清空数组
+ this.collegeMajor = [];
+ this.collegeMajor[0] = college;
+ this.query();
+ console.log('123', college);
console.log(
this.collegeOptions.map((item) => item.value),
'collegeOptions'
@@ -809,6 +817,7 @@
}),
};
});
+ this.collegeMajorOptions.unshift({ value: '全校(不含艺体美外语)', label: '全校(不含艺体美外语)' });
//手动添加一个专升本字段
this.collegeMajorOptions.unshift({ value: '专升本', label: '专升本' });
// 手动添加一个全校字段
From c123a87789ef7cffd421158957e284b1137ca14f Mon Sep 17 00:00:00 2001
From: YuNan <3194726156@qq.com>
Date: Sun, 16 Mar 2025 15:45:09 +0800
Subject: [PATCH 6/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=89=E5=8D=95?=
=?UTF-8?q?=E6=89=B9=E6=AC=A1=E5=88=86=E6=9E=90=E6=89=B9=E6=AC=A1=E9=80=89?=
=?UTF-8?q?=E6=8B=A9=E6=A1=86lable?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/cet/cet-ana-3.vue | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/src/views/cet/cet-ana-3.vue b/src/views/cet/cet-ana-3.vue
index 195427f..011935e 100644
--- a/src/views/cet/cet-ana-3.vue
+++ b/src/views/cet/cet-ana-3.vue
@@ -214,12 +214,26 @@
// 获取批次数据
async getBatch() {
const getBatch = await defHttp.get({ url: this.Url.getBatch });
+ console.log('1111', getBatch);
this.batchOptions = getBatch.batches.map((item) => {
return {
value: item.value,
label: item.label,
};
});
+ console.log('2222', this.batchOptions);
+ this.batchOptions.forEach((item) => {
+ const year = item.label.substring(0, 4);
+ if (item.label.includes('12-01')) {
+ item.label = `${year}冬季`;
+ } else if (item.label.includes('06-01')) {
+ item.label = `${year}夏季`;
+ } else if (item.label.includes('09-01')) {
+ item.label = `${year}夏季`;
+ } else if (item.label.includes('03-01')) {
+ item.label = `${year}春季`;
+ }
+ });
// const getCollege = await defHttp.get({ url: this.Url.getCollege });
// this.collegeOptions = getCollege.colleges;
@@ -253,6 +267,7 @@
},
// 查询数据
async query() {
+ this.getBatch();
let resultData = null;
try {
//如果this.batch为null则先赋个值