diff --git a/apps/web/src/oj/submission/list.vue b/apps/web/src/oj/submission/list.vue
index b141ce6..069bd5d 100644
--- a/apps/web/src/oj/submission/list.vue
+++ b/apps/web/src/oj/submission/list.vue
@@ -17,7 +17,7 @@ import { useBreakpoints } from "shared/composables/breakpoints"
import { usePagination } from "shared/composables/pagination"
import { useConfigStore } from "shared/store/config"
import { useUserStore } from "shared/store/user"
-import { SubmissionStatus } from "utils/constants"
+import { LANGUAGE_SHOW_VALUE, SubmissionStatus } from "utils/constants"
import { parseTime } from "utils/functions"
import type {
ClassLesson,
@@ -625,10 +625,12 @@ async function retryFlowchart(id: string) {
lastPoll = 0
}
-function caseText(row: SubmissionListItem) {
- const summary = row.caseSummary
- if (!summary) return null
- return { text: `${summary.passed}/${summary.total}`, full: summary.passed >= summary.total }
+/**
+ * 列表上写语言,不写「通过 1/1」:学生把那个数当成了交了几次。
+ * 差几个测试点在右栏状态下面有整句「通过 x/y 个测试点」
+ */
+function languageText(row: SubmissionListItem) {
+ return LANGUAGE_SHOW_VALUE[row.language] ?? row.language
}
/** 学生看别人的那几行:名字淡一档、带一把锁(自己的看不了是题单那道闸,另说) */
@@ -915,16 +917,7 @@ function dayBreak(index: number) {
题单
-
-
- {{ caseText(row)!.text }}
-
-
+ {{ languageText(row) }}
@@ -947,7 +940,7 @@ function dayBreak(index: number) {
{{ submissionClockText(row.createTime) }}
{{ row.problemDisplayId }} {{ row.problemTitle }}
- {{ caseText(row)!.text }}
+ {{ languageText(row) }}
@@ -1407,12 +1400,13 @@ function dayBreak(index: number) {
background: v-bind("tone('info').background");
}
-.c-case {
- width: 34px;
+.c-lang {
+ width: 48px;
flex: none;
text-align: right;
font-size: 12px;
- font-variant-numeric: tabular-nums;
+ white-space: nowrap;
+ color: v-bind("theme.textColor3");
}
.c-state {