From fb2bd8981b76f978358ac3398fe654391674fe24 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Mon, 25 May 2026 22:28:00 -0600 Subject: [PATCH] fix --- src/oj/problem/components/SubmissionResult.vue | 2 +- src/oj/submission/detail.vue | 2 +- src/utils/constants.ts | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/oj/problem/components/SubmissionResult.vue b/src/oj/problem/components/SubmissionResult.vue index 197fa54..b65b61e 100644 --- a/src/oj/problem/components/SubmissionResult.vue +++ b/src/oj/problem/components/SubmissionResult.vue @@ -150,7 +150,7 @@ const columns: DataTableColumn[] = [
diff --git a/src/oj/submission/detail.vue b/src/oj/submission/detail.vue index 0831f41..ef36152 100644 --- a/src/oj/submission/detail.vue +++ b/src/oj/submission/detail.vue @@ -120,7 +120,7 @@ onMounted(init) 提交时间:{{ parseTime(submission.create_time) }} diff --git a/src/utils/constants.ts b/src/utils/constants.ts index b808591..841836d 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -30,59 +30,73 @@ export enum ContestType { export const JUDGE_STATUS: { [key in SUBMISSION_RESULT]: { name: string + title: string type: "error" | "success" | "warning" | "info" } } = { "-2": { name: "编译失败", + title: "编译失败", type: "warning", }, "-1": { name: "答案错误", + title: "答案错误", type: "error", }, "0": { name: "答案正确", + title: "答案正确", type: "success", }, "1": { name: "运行超时", + title: "运行超时", type: "error", }, "2": { name: "运行超时", + title: "运行超时", type: "error", }, "3": { name: "内存超限", + title: "内存超限", type: "error", }, "4": { name: "运行时错误", + title: "运行时错误", type: "warning", }, "5": { name: "系统错误", + title: "系统错误", type: "error", }, "6": { name: "等待评分", + title: "等待评分", type: "warning", }, "7": { name: "正在评分", + title: "正在评分", type: "warning", }, "8": { name: "部分正确", + title: "部分正确", type: "warning", }, "9": { name: "正在提交", + title: "正在提交", type: "info", }, "10": { name: "语法未通过", + title: "答案正确,但语法未通过", type: "success", }, }