From 613606716c35eda0f2cb7a7d99dbd7cc23d9586e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=9F=9A?= <1955103769@qq.com> Date: Tue, 19 Aug 2025 20:46:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=98=85=E5=8D=B7=E8=B4=A8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/marking/QuestionTabs.vue | 64 +--- src/pages.json | 5 +- src/pages/marking/marking-progress.vue | 60 ++-- src/pages/marking/marking-quality.vue | 390 +++++++++++------------- src/service/yuejuanzhiliang.ts | 8 +- 5 files changed, 233 insertions(+), 294 deletions(-) diff --git a/src/components/marking/QuestionTabs.vue b/src/components/marking/QuestionTabs.vue index 6bcdbaa..0652e8e 100644 --- a/src/components/marking/QuestionTabs.vue +++ b/src/components/marking/QuestionTabs.vue @@ -1,12 +1,19 @@ @@ -199,15 +184,15 @@ function formatAverageTime(seconds?: number): string { - + @@ -225,110 +210,107 @@ function formatAverageTime(seconds?: number): string { - - - - + + 题目详情 + + + - 初评老师 - - + - 终评老师 - + 平均分{{ questionQualityResponse?.average_score || 0 }} + + + 最高分{{ questionQualityResponse?.max_score || 0 }} + + + 最低分{{ questionQualityResponse?.min_score || 0 }} + - - - - + + + + + 初评老师 + + + 终评老师 + + + + + + + - {{ shouldShowFinalTeacher && activeTeacherType === 'final' ? '终评老师' : '初评老师' }} + {{ hasDoubleEvaluation ? (activeEvaluateType === 'initial' ? '初评老师' : '终评老师') : '阅卷老师' }} - - - 姓名 - 阅卷量 - 问题卷 - 平均分 - 平均用时 - 标准差 - - - - - - - - - {{ school.school_name }} - - - - - - - - - {{ teacher.teacher_name }} - - - - - {{ teacher.marking_count || 0 }} - - - - - {{ teacher.problem_num || 0 }} - - - - - {{ teacher.average_score?.toFixed(1) || '-' }} - - - - - {{ formatAverageTime(teacher.average_time) }} - - - - - {{ teacher.standard_dev?.toFixed(2) || '-' }} - + + + + + + + {{ teacher.teacher_name || '未知老师' }} + {{ teacher.phone }} + + + {{ formatScore(teacher.average_score || 0) }}分 + + 平均分 + + - - - 暂无老师数据 + + + + {{ teacher.marking_count || 0 }} + 阅卷数 + + + {{ formatTime(teacher.average_time || 0) }} + 平均用时 + + + {{ teacher.problem_num || 0 }} + 问题卷 + - - - 暂无阅卷质量数据 - + + + + {{ hasDoubleEvaluation ? `暂无${activeEvaluateType === 'initial' ? '初评' : '终评'}老师数据` : '暂无老师数据' }} + diff --git a/src/service/yuejuanzhiliang.ts b/src/service/yuejuanzhiliang.ts index 7c1fdcd..c43a9ee 100644 --- a/src/service/yuejuanzhiliang.ts +++ b/src/service/yuejuanzhiliang.ts @@ -115,20 +115,20 @@ export async function markingQualityExportTeacherDetailUsingGet({ }); } -/** 获取题目阅卷质量 根据question_id获取指定题目的阅卷质量统计,包含大题、小题、评价方法、总分数、平均分数等详细信息 GET /marking-quality/question-quality */ -export async function markingQualityQuestionQualityUsingGet({ +/** 获取题目阅卷质量 根据question_id获取指定题目的阅卷质量统计,包含大题、小题、评价方法、总分数、平均分数等详细信息 GET /marking-quality/question */ +export async function markingQualityQuestionUsingGet({ params, options, }: { // 叠加生成的Param类型 (非body参数openapi默认没有生成对象) - params: API.markingQualityQuestionQualityUsingGetParams; + params: API.markingQualityQuestionUsingGetParams; options?: CustomRequestOptions; }) { return request< API.Response & { data?: API.GetQuestionMarkingQualityResponse; } - >('/marking-quality/question-quality', { + >('/marking-quality/question', { method: 'GET', params: { ...params,