fix
This commit is contained in:
@@ -231,7 +231,7 @@ const classColumns: DataTableColumn<ClassRank>[] = [
|
|||||||
{
|
{
|
||||||
title: "排名",
|
title: "排名",
|
||||||
key: "rank",
|
key: "rank",
|
||||||
width: 60,
|
width: 70,
|
||||||
titleAlign: "center",
|
titleAlign: "center",
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
@@ -240,42 +240,42 @@ const classColumns: DataTableColumn<ClassRank>[] = [
|
|||||||
key: "class_name",
|
key: "class_name",
|
||||||
render: (row) =>
|
render: (row) =>
|
||||||
`${row.class_name.slice(0, 2)}计算机${row.class_name.slice(2)}班`,
|
`${row.class_name.slice(0, 2)}计算机${row.class_name.slice(2)}班`,
|
||||||
minWidth: 120,
|
minWidth: 160,
|
||||||
titleAlign: "center",
|
titleAlign: "center",
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "人数",
|
title: "人数",
|
||||||
key: "user_count",
|
key: "user_count",
|
||||||
width: 60,
|
width: 80,
|
||||||
titleAlign: "center",
|
titleAlign: "center",
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "总 AC 数",
|
title: "总AC数",
|
||||||
key: "total_ac",
|
key: "total_ac",
|
||||||
width: 70,
|
width: 90,
|
||||||
titleAlign: "center",
|
titleAlign: "center",
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "提交数",
|
title: "提交数",
|
||||||
key: "total_submission",
|
key: "total_submission",
|
||||||
width: 70,
|
width: 90,
|
||||||
titleAlign: "center",
|
titleAlign: "center",
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "平均 AC 数",
|
title: "平均AC数",
|
||||||
key: "avg_ac",
|
key: "avg_ac",
|
||||||
width: 70,
|
width: 100,
|
||||||
titleAlign: "center",
|
titleAlign: "center",
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "正确率",
|
title: "正确率",
|
||||||
key: "ac_rate",
|
key: "ac_rate",
|
||||||
width: 70,
|
width: 90,
|
||||||
titleAlign: "center",
|
titleAlign: "center",
|
||||||
align: "center",
|
align: "center",
|
||||||
render: (row) => `${row.ac_rate}%`,
|
render: (row) => `${row.ac_rate}%`,
|
||||||
@@ -283,7 +283,7 @@ const classColumns: DataTableColumn<ClassRank>[] = [
|
|||||||
{
|
{
|
||||||
title: "详情",
|
title: "详情",
|
||||||
key: "action",
|
key: "action",
|
||||||
width: 60,
|
width: 70,
|
||||||
titleAlign: "center",
|
titleAlign: "center",
|
||||||
align: "center",
|
align: "center",
|
||||||
render: (row) =>
|
render: (row) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user