diff --git a/src/pages/view/homeSchool/ChengJiFenXi.vue b/src/pages/view/homeSchool/ChengJiFenXi.vue
index a7125d5..0ea67f3 100644
--- a/src/pages/view/homeSchool/ChengJiFenXi.vue
+++ b/src/pages/view/homeSchool/ChengJiFenXi.vue
@@ -37,26 +37,13 @@
-
+
-
+
-
+
@@ -116,22 +103,15 @@ interface BjPjInfo {
njmc: string;
fs: number;
}
+interface DjRsInfo {
+ dj: string;
+ rs: number;
+ zgf: string;
+ zdf: string;
+}
// --- Static Mock Data ---
-const staticFsDuanLb: FsDuan[] = [
- { name: "240-269", value: 5, color: "#1890ff" },
- { name: "210-239", value: 12, color: "#2fc25b" },
- { name: "180-210", value: 18, color: "#facc14" },
- { name: "180以下", value: 10, color: "#f04864" },
-];
-
-const staticDjDuanLb: DjDuan[] = [
- { name: "A", value: 5, color: "#1890ff" },
- { name: "B", value: 15, color: "#2fc25b" },
- { name: "C", value: 18, color: "#facc14" },
- { name: "D", value: 10, color: "#f04864" },
- { name: "E", value: 2, color: "#999999" },
-];
+// 这些静态数据现在不再需要,因为组件直接使用 djRsList
// --- State ---
const xzbjId = ref(null);
@@ -150,9 +130,8 @@ const tjglData = ref({
jgl: 0,
jgrs: 0,
});
-const fsDuanLb = ref([...staticFsDuanLb]);
-const djDuanLb = ref([...staticDjDuanLb]);
const bjPjList = ref([]);
+const djRsList = ref([]);
// --- API Functions ---
const getKsccKmLb = async (ksccId: string | number) => {
@@ -197,6 +176,7 @@ const getBjKscjKmData = async (
score: cj.ksfs || 0,
bjpm: cj.bjpm || 0, // 使用后端返回的班级排名
}));
+ console.log("学生成绩列表:", xsCjLb.value);
// 处理统计数据
tjglData.value.bjrs = res.result.bjRs || 0;
@@ -211,7 +191,12 @@ const getBjKscjKmData = async (
// 处理班级平均分列表数据,传递给CjBjNjPjf组件
bjPjList.value = res.result.bjPjList || [];
+
+ // 处理等级段数据列表,传递给CjZfFs和CjZfDj组件
+ djRsList.value = res.result.djRsList || [];
+
console.log("获取班级科目成绩数据成功:", res.result);
+ console.log("等级人数列表:", djRsList.value);
}
} catch (error) {
console.error("获取班级科目成绩数据失败:", error);
@@ -316,4 +301,24 @@ onMounted(async () => {
}
}
}
+
+.debug-info {
+ background-color: #f0f0f0;
+ padding: 20rpx;
+ margin-top: 20rpx;
+ border-radius: 10rpx;
+
+ .debug-title {
+ font-size: 32rpx;
+ font-weight: bold;
+ margin-bottom: 10rpx;
+ text-align: center;
+ }
+
+ .debug-item {
+ font-size: 28rpx;
+ color: #333;
+ margin-bottom: 5rpx;
+ }
+}
diff --git a/src/pages/view/homeSchool/components/CjBjXsList.vue b/src/pages/view/homeSchool/components/CjBjXsList.vue
index b4c2121..94858bd 100644
--- a/src/pages/view/homeSchool/components/CjBjXsList.vue
+++ b/src/pages/view/homeSchool/components/CjBjXsList.vue
@@ -13,18 +13,26 @@
班级排名
-
+
{{ xs.name }}
{{ xs.score }}
{{ xs.bjpm }}
暂无数据
+
+ {{ expanded ? "收拢" : "展开全部" }}
+
diff --git a/src/pages/view/homeSchool/components/CjZfDj.vue b/src/pages/view/homeSchool/components/CjZfDj.vue
index b101e2c..ed2088d 100644
--- a/src/pages/view/homeSchool/components/CjZfDj.vue
+++ b/src/pages/view/homeSchool/components/CjZfDj.vue
@@ -12,8 +12,9 @@
id="GradeAnalysisAreaChart"
class="charts"
/>
-
- 图表加载中或无数据...
+ 图表加载中...
+
+ 暂无等级段数据
@@ -21,7 +22,7 @@
diff --git a/src/pages/view/homeSchool/components/CjZfFs.vue b/src/pages/view/homeSchool/components/CjZfFs.vue
index c9eed7d..ecd3cea 100644
--- a/src/pages/view/homeSchool/components/CjZfFs.vue
+++ b/src/pages/view/homeSchool/components/CjZfFs.vue
@@ -12,8 +12,9 @@
id="GradeAnalysisDonutChart"
class="charts"
/>
-
- 图表加载中或无数据...
+ 图表加载中...
+
+ 暂无分数段数据
@@ -21,7 +22,7 @@