update
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-05-07 07:52:55 -06:00
parent fa1d166a48
commit 4d78bf990f
2 changed files with 22 additions and 2 deletions

View File

@@ -29,7 +29,7 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { NButton } from "naive-ui" import { NButton, NTooltip } from "naive-ui"
import TagTitle from "./TagTitle.vue" import TagTitle from "./TagTitle.vue"
import { FlowchartSummary, SolvedProblem } from "utils/types" import { FlowchartSummary, SolvedProblem } from "utils/types"
import { useAIStore } from "oj/store/ai" import { useAIStore } from "oj/store/ai"
@@ -82,7 +82,25 @@ const columns: DataTableColumn<SolvedProblem>[] = [
render: (row) => row.rank + " / " + row.ac_count, render: (row) => row.rank + " / " + row.ac_count,
}, },
{ {
title: "等级", title: "同期排名",
key: "period_rank",
width: 100,
align: "center",
render: (row) => row.period_rank + " / " + row.period_ac_count,
},
{
title: () =>
h(NTooltip, null, {
trigger: () => h("span", { style: "cursor:help; border-bottom: 1px dashed" }, "等级"),
default: () =>
h("div", null, [
h("div", null, "基于全时段排名的百分位:"),
h("div", null, "S — 前 10%"),
h("div", null, "A — 前 35%"),
h("div", null, "B — 前 75%"),
h("div", null, "C — 其余"),
]),
}),
key: "grade", key: "grade",
width: 100, width: 100,
align: "center", align: "center",

View File

@@ -623,6 +623,8 @@ export interface SolvedProblem {
rank: number rank: number
ac_count: number ac_count: number
grade: Grade grade: Grade
period_rank: number
period_ac_count: number
difficulty: string difficulty: string
} }