feat(提交结果): 没通过时显示「通过 x/y 个测试点」;编译失败不等三次就能用 AI 分析
Some checks failed
Deploy / deploy (push) Has been cancelled

学生拿不到 info(每个点带 output_md5,只给管理员),测试点表格从来只有管理员看得见,
学生这边只有一句「答案错误」—— 从 2/8 交到 6/8 的人,感受是连输五次。

- 提交详情新增 caseSummary,后端从 info 数出通过数下发,不放开原文。
  比赛提交、SQL 题(被杀的测试点会 break,total 偏小)、无逐点结果时为 null
- 结果面板标题缀上通过数并加进度条,提交详情页标题同步;一个都没过时不缀
- POST /ai/hint 对编译失败跳过失败次数门槛,throttleAi 照旧;前端显示条件同口径

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013TecwAowmYcoNZRheSyTgH
This commit is contained in:
2026-09-13 07:25:00 -06:00
parent a833819679
commit 9132901cc7
7 changed files with 85 additions and 9 deletions

View File

@@ -10,6 +10,7 @@ import {
parseTime,
submissionCaseResults,
submissionMemoryFormat,
submissionResultTitle,
submissionTimeFormat,
utoa,
} from "utils/functions"
@@ -129,7 +130,7 @@ onMounted(init)
<n-alert
style="flex: 1"
:type="JUDGE_STATUS[submission.result]['type']"
:title="JUDGE_STATUS[submission.result]['title']"
:title="submissionResultTitle(submission)"
>
<n-flex>
<span>提交时间{{ parseTime(submission.createTime) }}</span>