update
This commit is contained in:
@@ -79,6 +79,27 @@ const columns: DataTableColumn<AdminProblemFiltered>[] = [
|
|||||||
row.tags.map((t) => h(NTag, { key: t, size: "small" }, () => t)),
|
row.tags.map((t) => h(NTag, { key: t, size: "small" }, () => t)),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "AST",
|
||||||
|
key: "has_ast_rules",
|
||||||
|
width: 60,
|
||||||
|
render: (row) =>
|
||||||
|
row.has_ast_rules ? h(NTag, { type: "info", size: "small" }, () => "AST") : null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "绘图",
|
||||||
|
key: "allow_flowchart",
|
||||||
|
width: 60,
|
||||||
|
render: (row) =>
|
||||||
|
row.allow_flowchart ? h(NTag, { type: "success", size: "small" }, () => "绘图") : null,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "流程",
|
||||||
|
key: "show_flowchart",
|
||||||
|
width: 60,
|
||||||
|
render: (row) =>
|
||||||
|
row.show_flowchart ? h(NTag, { type: "warning", size: "small" }, () => "流程图") : null,
|
||||||
|
},
|
||||||
{ title: "出题人", key: "username", width: 120 },
|
{ title: "出题人", key: "username", width: 120 },
|
||||||
{
|
{
|
||||||
title: "创建时间",
|
title: "创建时间",
|
||||||
|
|||||||
@@ -186,6 +186,9 @@ export interface AdminProblemFiltered {
|
|||||||
create_time: string
|
create_time: string
|
||||||
difficulty: "Low" | "Mid" | "High"
|
difficulty: "Low" | "Mid" | "High"
|
||||||
tags: string[]
|
tags: string[]
|
||||||
|
has_ast_rules: boolean
|
||||||
|
allow_flowchart: boolean
|
||||||
|
show_flowchart: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
// 题单相关类型
|
// 题单相关类型
|
||||||
|
|||||||
Reference in New Issue
Block a user