This commit is contained in:
2023-04-07 12:32:55 +08:00
parent 285459e129
commit efc9413ce6
6 changed files with 105 additions and 97 deletions

View File

@@ -70,6 +70,7 @@ async function listRanks() {
const res = await getContestRank(props.contestID, {
limit: query.limit,
offset: query.limit * (query.page - 1),
force_refresh: "0",
})
total.value = res.data.total
data.value = res.data.results
@@ -81,7 +82,7 @@ async function listRanks() {
async function addColumns() {
try {
problems.value = await getContestProblems(props.contestID)
problems.value.map((problem, index) => {
problems.value.map((problem) => {
columns.value.push({
align: "center",
title: () =>
@@ -99,7 +100,7 @@ async function addColumns() {
},
}),
},
() => `${index + 1}`
() => problem.title
),
render: (row) => {
if (row.submission_info[problem.id]) {
@@ -138,6 +139,7 @@ async function addColumns() {
},
key: problem.id,
width: 150,
ellipsis: true,
})
})
} catch (err) {