diff --git a/src/components/student/AverageComparisonChart.vue b/src/components/student/AverageComparisonChart.vue
index 45df985..40d32b5 100644
--- a/src/components/student/AverageComparisonChart.vue
+++ b/src/components/student/AverageComparisonChart.vue
@@ -214,7 +214,7 @@ function cancelTopN() {
-
+
取消
diff --git a/src/components/student/ScoreDistributionChart.vue b/src/components/student/ScoreDistributionChart.vue
index d92ba0d..c77211b 100644
--- a/src/components/student/ScoreDistributionChart.vue
+++ b/src/components/student/ScoreDistributionChart.vue
@@ -134,7 +134,7 @@ const scoreRangeInfo = computed(() => {
const allScore = props.data.all_score
const item = props.data.data.find((d) => {
- const [min, max] = (d.score_scope || '').split('~').map(Number)
+ const [min, max] = (d.score_scope || '').split('-').map(Number)
return allScore >= min && allScore <= max
})
@@ -142,7 +142,7 @@ const scoreRangeInfo = computed(() => {
return null
return {
- range: item.score_scope,
+ range: item.score_scope.split('-').join('~'),
gradeCount: item.student_num || 0,
classCount: 0, // TODO: 接口暂无此数据
}
@@ -170,13 +170,13 @@ const scoreRangeInfo = computed(() => {
- 本人所在分数段:{{ scoreRangeInfo.range }}
+ 本人所在分数段: {{ scoreRangeInfo.range }}
- 本分数段年级学生数:{{ scoreRangeInfo.gradeCount }}人,其中本班占{{ scoreRangeInfo.classCount }}人
+ 本分数段年级学生数: {{ scoreRangeInfo.gradeCount }}人,其中本班占{{ scoreRangeInfo.classCount }}人
diff --git a/src/pages/index/score-list.vue b/src/pages/index/score-list.vue
index b2f08c1..4d5409b 100644
--- a/src/pages/index/score-list.vue
+++ b/src/pages/index/score-list.vue
@@ -8,11 +8,8 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ row.student_name }}
-
-
-
+
+
+
+
+
+
+ {{ row.student_name }}
+
+
+
-
-
-
-
- {{ row.all_score || '--' }}
-
-
-
+
+
+
+
+ {{ row.all_score || '--' }}
+
+
+
-
-
-
-
- {{ row.class_rank || '--' }}
- /
-
- {{ row.grade_rank || '--' }}
+
+
+
+
+ {{ row.class_rank || '--' }}
+ /
+
+ {{ row.grade_rank || '--' }}
+
-
-
-
+
+
-
-
-
-
- {{ row.subjectScores[subject.value] || '--' }}
-
-
-
-
-
-
-
-
+
+
+
+
+ {{ getSubjectScore(row, subject.subjectId) }}
+
+
+
+
-
-
-
- 暂无成绩数据
-
-
+
diff --git a/src/pages/index/score.vue b/src/pages/index/score.vue
index 60f7605..b076ef7 100644
--- a/src/pages/index/score.vue
+++ b/src/pages/index/score.vue
@@ -377,7 +377,7 @@ whenever(() => [selectedSubjectId.value, homeStore.selectedExamId, keyStudentTyp
{
+
+
+
+
+
@@ -151,36 +166,18 @@ onMounted(async () => {
-
-
-
-
-
-
+
+
+ {{ studentName }}
+
-
-
- 总分
-
- {{ studentInfo.totalScore }}
- /{{ studentInfo.fullScore }}
-
-
-
- 学号: {{ studentNumber }}
+
+
+ {{ studentInfo.totalScore }}
+ /{{ studentInfo.fullScore }}
diff --git a/src/service/types.ts b/src/service/types.ts
index 5d871b0..dd5c7bb 100644
--- a/src/service/types.ts
+++ b/src/service/types.ts
@@ -2610,6 +2610,8 @@ export type ScoreSheetInfo = {
student_name?: string;
/** 学生学号 */
student_number?: string;
+ /** 单科成绩 */
+ single_subject_score_list?: SingleSubjectScore[];
};
export type ScoreTrendItem = {
@@ -2655,6 +2657,15 @@ export type SetProblemRecordResponse = {
record_id?: number;
};
+export type SingleSubjectScore = {
+ /** 科目ID */
+ subject_id?: number;
+ /** 科目名称 */
+ subject_name?: string;
+ /** 单科成绩 */
+ subject_score?: number;
+};
+
export enum Statistics_modeEnum {
'segmented' = 'segmented',
'cumulative' = 'cumulative',