@@ -19,7 +19,9 @@ const statistics = ref<{
|
|||||||
avg_progress: number
|
avg_progress: number
|
||||||
} | null>(null)
|
} | null>(null)
|
||||||
const classFilter = ref<string>("")
|
const classFilter = ref<string>("")
|
||||||
const completionFilter = ref<"" | "completed" | "in_progress" | "not_started">("")
|
const completionFilter = ref<"" | "completed" | "in_progress" | "not_started">(
|
||||||
|
"",
|
||||||
|
)
|
||||||
const allProblems = ref<Array<{ id: number; _id: string; title: string }>>([])
|
const allProblems = ref<Array<{ id: number; _id: string; title: string }>>([])
|
||||||
|
|
||||||
// 完成度筛选选项
|
// 完成度筛选选项
|
||||||
@@ -149,10 +151,8 @@ const progressColumns = [
|
|||||||
(p) => !completedProblemIds.has(p.id),
|
(p) => !completedProblemIds.has(p.id),
|
||||||
)
|
)
|
||||||
return h("div", { style: "max-height: 120px; overflow-y: auto" }, [
|
return h("div", { style: "max-height: 120px; overflow-y: auto" }, [
|
||||||
h(
|
h(NFlex, {}, () =>
|
||||||
NFlex,
|
incompleteProblems.map((problem) =>
|
||||||
{},
|
|
||||||
() => incompleteProblems.map((problem) =>
|
|
||||||
h(
|
h(
|
||||||
NTag,
|
NTag,
|
||||||
{ type: "warning", size: "small", style: "margin: 2px" },
|
{ type: "warning", size: "small", style: "margin: 2px" },
|
||||||
@@ -163,10 +163,8 @@ const progressColumns = [
|
|||||||
])
|
])
|
||||||
}
|
}
|
||||||
return h("div", { style: "max-height: 120px; overflow-y: auto" }, [
|
return h("div", { style: "max-height: 120px; overflow-y: auto" }, [
|
||||||
h(
|
h(NFlex, {}, () =>
|
||||||
NFlex,
|
row.completed_problems.map((problem: any) =>
|
||||||
{},
|
|
||||||
() => row.completed_problems.map((problem: any) =>
|
|
||||||
h(
|
h(
|
||||||
NTag,
|
NTag,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -368,7 +368,11 @@ const flowchartColumns: DataTableColumn<FlowchartSubmissionListItem>[] = [
|
|||||||
<n-form-item
|
<n-form-item
|
||||||
v-if="userStore.isSuperAdmin && route.name === 'submissions'"
|
v-if="userStore.isSuperAdmin && route.name === 'submissions'"
|
||||||
>
|
>
|
||||||
<n-button quaternary type="primary" @click="toggleStatisticPanel(true)">
|
<n-button
|
||||||
|
quaternary
|
||||||
|
type="primary"
|
||||||
|
@click="toggleStatisticPanel(true)"
|
||||||
|
>
|
||||||
数据统计
|
数据统计
|
||||||
</n-button>
|
</n-button>
|
||||||
</n-form-item>
|
</n-form-item>
|
||||||
|
|||||||
Reference in New Issue
Block a user