-
{{ name(s) }}
+
+
{{ s.completedCount }}
@@ -141,7 +141,7 @@ const error = computed(() => tone("error"))
target="_blank"
class="box"
:class="{ ok: c.solvedTime, bad: !c.solvedTime && c.wrongCount }"
- :title="`${name(s)} · ${data.problems[i]!.title}${c.solvedBefore ? ' · 加入前就做对过' : ''}`"
+ :title="`${s.username} · ${data.problems[i]!.title}${c.solvedBefore ? ' · 加入前就做对过' : ''}`"
>
✓ {{ cellTime(c.solvedTime) }}
total: number
@@ -63,7 +63,6 @@ const students = computed(() => {
}
return {
username: row.username,
- name: row.realName || row.username,
byProblem,
total: row.submissions.length,
accepted: row.submissions.filter((item) => isAc(item.result)).length,
@@ -76,7 +75,6 @@ const students = computed(() => {
if (seen.has(row.username)) continue
list.push({
username: row.username,
- name: row.realName || row.username,
byProblem: new Map(),
total: 0,
accepted: 0,
@@ -168,7 +166,7 @@ const problemStudents = computed(() => {
(a, b) =>
rank(a) - rank(b) ||
b.items.length - a.items.length ||
- a.student.name.localeCompare(b.student.name, "zh-CN"),
+ a.student.username.localeCompare(b.student.username, "zh-CN"),
)
})
@@ -188,7 +186,7 @@ const allStudents = computed(() => {
(a, b) =>
rank(a) - rank(b) ||
b.student.total - a.student.total ||
- a.student.name.localeCompare(b.student.name, "zh-CN"),
+ a.student.username.localeCompare(b.student.username, "zh-CN"),
)
})
@@ -326,7 +324,7 @@ function pct(done: number, total: number) {
-
{{ row.student.name }}
+
没交
@@ -369,7 +367,7 @@ function pct(done: number, total: number) {
:width="12"
/>
-
{{ row.student.name }}
+
cloud?.destroy())
const people = computed(() => [
...props.data.dataUnaccepted.map((row) => ({
username: row.username,
- name: row.realName,
grade: null as string | null,
score: null as number | null,
count: 0,
})),
...props.data.people.map((row) => ({
username: row.username,
- name: row.realName,
grade: row.bestGrade,
score: row.bestScore,
count: row.count,
@@ -290,7 +289,7 @@ function gradeStyle(grade: string | null) {
人太多,只列了成绩靠后的 500 位
- {{ row.name }}
+
{{ row.grade ? `${row.grade} 级 ${row.score ?? 0} 分` : "没交" }}
@@ -421,11 +420,8 @@ function gradeStyle(grade: string | null) {
}
.p-name {
- width: 80px;
+ width: 110px;
flex: none;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
}
.grade-pill {
diff --git a/apps/web/src/oj/submission/components/FlowchartPane.vue b/apps/web/src/oj/submission/components/FlowchartPane.vue
index c40d1c1..fc17224 100644
--- a/apps/web/src/oj/submission/components/FlowchartPane.vue
+++ b/apps/web/src/oj/submission/components/FlowchartPane.vue
@@ -9,7 +9,7 @@ import { FlowchartSubmissionStatus } from "utils/types"
import { useTone } from "../composables/tone"
import { submissionTimeText } from "../utils"
import FlowchartState from "./FlowchartState.vue"
-import UserName from "./UserName.vue"
+import UserName from "shared/components/UserName.vue"
/**
* 流程图模式的右栏:左边画出来的图,右边四项评分和建议。原来要点编号再开一个
diff --git a/apps/web/src/oj/submission/components/SubmissionPane.vue b/apps/web/src/oj/submission/components/SubmissionPane.vue
index 582e0fc..73adc56 100644
--- a/apps/web/src/oj/submission/components/SubmissionPane.vue
+++ b/apps/web/src/oj/submission/components/SubmissionPane.vue
@@ -20,7 +20,7 @@ import { useTone } from "../composables/tone"
import { classLabel, submissionTimeText } from "../utils"
import CodeView from "./CodeView.vue"
import StatusPill from "./StatusPill.vue"
-import UserName from "./UserName.vue"
+import UserName from "shared/components/UserName.vue"
/**
* 提交列表的右栏:选中那一条的代码和结果(设计稿「提交列表重设计 · 定稿」)。
diff --git a/apps/web/src/oj/submission/list.vue b/apps/web/src/oj/submission/list.vue
index 9bf5865..5ab6f58 100644
--- a/apps/web/src/oj/submission/list.vue
+++ b/apps/web/src/oj/submission/list.vue
@@ -29,7 +29,7 @@ import type {
import { FlowchartSubmissionStatus } from "utils/types"
import FlowchartState from "./components/FlowchartState.vue"
import StatusPill from "./components/StatusPill.vue"
-import UserName from "./components/UserName.vue"
+import UserName from "shared/components/UserName.vue"
import { useTone } from "./composables/tone"
import { classLabel, classSelectOptions, submissionClockText, submissionDayText } from "./utils"