fix
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-25 22:28:00 -06:00
parent 3a33c8ff3a
commit fb2bd8981b
3 changed files with 16 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ const columns: DataTableColumn<Submission["info"]["data"][number]>[] = [
<div v-if="submission"> <div v-if="submission">
<n-alert <n-alert
:type="JUDGE_STATUS[submission.result]['type']" :type="JUDGE_STATUS[submission.result]['type']"
:title="JUDGE_STATUS[submission.result]['name']" :title="JUDGE_STATUS[submission.result]['title']"
class="mb-3" class="mb-3"
/> />
<n-flex vertical v-if="msg || infoTable.length || submission.statistic_info?.ast_results?.length"> <n-flex vertical v-if="msg || infoTable.length || submission.statistic_info?.ast_results?.length">

View File

@@ -120,7 +120,7 @@ onMounted(init)
<n-alert <n-alert
style="flex: 1" style="flex: 1"
:type="JUDGE_STATUS[submission.result]['type']" :type="JUDGE_STATUS[submission.result]['type']"
:title="JUDGE_STATUS[submission.result]['name']" :title="JUDGE_STATUS[submission.result]['title']"
> >
<n-flex> <n-flex>
<span>提交时间{{ parseTime(submission.create_time) }}</span> <span>提交时间{{ parseTime(submission.create_time) }}</span>

View File

@@ -30,59 +30,73 @@ export enum ContestType {
export const JUDGE_STATUS: { export const JUDGE_STATUS: {
[key in SUBMISSION_RESULT]: { [key in SUBMISSION_RESULT]: {
name: string name: string
title: string
type: "error" | "success" | "warning" | "info" type: "error" | "success" | "warning" | "info"
} }
} = { } = {
"-2": { "-2": {
name: "编译失败", name: "编译失败",
title: "编译失败",
type: "warning", type: "warning",
}, },
"-1": { "-1": {
name: "答案错误", name: "答案错误",
title: "答案错误",
type: "error", type: "error",
}, },
"0": { "0": {
name: "答案正确", name: "答案正确",
title: "答案正确",
type: "success", type: "success",
}, },
"1": { "1": {
name: "运行超时", name: "运行超时",
title: "运行超时",
type: "error", type: "error",
}, },
"2": { "2": {
name: "运行超时", name: "运行超时",
title: "运行超时",
type: "error", type: "error",
}, },
"3": { "3": {
name: "内存超限", name: "内存超限",
title: "内存超限",
type: "error", type: "error",
}, },
"4": { "4": {
name: "运行时错误", name: "运行时错误",
title: "运行时错误",
type: "warning", type: "warning",
}, },
"5": { "5": {
name: "系统错误", name: "系统错误",
title: "系统错误",
type: "error", type: "error",
}, },
"6": { "6": {
name: "等待评分", name: "等待评分",
title: "等待评分",
type: "warning", type: "warning",
}, },
"7": { "7": {
name: "正在评分", name: "正在评分",
title: "正在评分",
type: "warning", type: "warning",
}, },
"8": { "8": {
name: "部分正确", name: "部分正确",
title: "部分正确",
type: "warning", type: "warning",
}, },
"9": { "9": {
name: "正在提交", name: "正在提交",
title: "正在提交",
type: "info", type: "info",
}, },
"10": { "10": {
name: "语法未通过", name: "语法未通过",
title: "答案正确,但语法未通过",
type: "success", type: "success",
}, },
} }