This commit is contained in:
2024-06-03 23:39:15 +08:00
parent 218ed1c185
commit a8fcd8e9b9
2 changed files with 24 additions and 17 deletions

View File

@@ -42,15 +42,6 @@ const query = reactive<Query>({
})
const [show, toggleStatisticPanel] = useToggle(false)
const panelTitle = computed(() => {
let p = ""
if (query.username) p = `用户 ${query.username}`
if (query.problem) p = `题号 ${query.problem}`
if (query.username && query.problem)
p = `用户 ${query.username} 关于题号 ${query.problem}`
return `${p}提交记录统计`
})
const options: SelectOption[] = [
{ label: "全部", value: "" },
{ label: "答案正确", value: "0" },
@@ -311,7 +302,7 @@ const columns = computed(() => {
preset="card"
:style="{ maxWidth: isDesktop && '70vw', maxHeight: '80vh' }"
:content-style="{ overflow: 'auto' }"
:title="panelTitle"
title="提交记录的统计"
>
<StatisticsPanel :problem="query.problem" :username="query.username" />
</n-modal>