layout update

This commit is contained in:
2025-05-10 00:04:53 +08:00
parent 52a2fd6625
commit b4c7238c8a
10 changed files with 73 additions and 49 deletions

View File

@@ -69,7 +69,7 @@ watch(query, listAnnouncements, { deep: true })
</script>
<template>
<n-data-table
striped
:bordered="false"
:data="announcements"
:columns="columns"
:row-props="rowProps"

View File

@@ -175,7 +175,7 @@ function rowProps(row: Contest) {
</n-form>
</n-space>
<n-data-table
striped
:bordered="false"
:columns="columns"
:data="data"
:row-props="rowProps"

View File

@@ -268,7 +268,7 @@ function rowProps(row: ProblemFiltered) {
</n-flex>
</n-collapse-transition>
<n-data-table
striped
:bordered="false"
:data="problems"
:columns="columns"
:row-props="rowProps"

View File

@@ -166,7 +166,7 @@ onMounted(async () => {
<n-flex justify="center">
<n-h2>全校前100名</n-h2>
</n-flex>
<n-data-table striped :data="data" :columns="columns" />
<n-data-table :data="data" :columns="columns" />
<Pagination
:total="total"
v-model:page="query.page"

View File

@@ -1,12 +1,7 @@
<script setup lang="ts">
import { NButton, NH2, NText } from "naive-ui"
import { adminRejudge, getSubmissions, getTodaySubmissionCount } from "oj/api"
import {
filterEmptyValue,
parseTime,
submissionMemoryFormat,
submissionTimeFormat,
} from "utils/functions"
import { filterEmptyValue, parseTime } from "utils/functions"
import { Submission } from "utils/types"
import Pagination from "~/shared/components/Pagination.vue"
import SubmissionResultTag from "~/shared/components/SubmissionResultTag.vue"
@@ -203,20 +198,6 @@ const columns = computed(() => {
() => row.problem,
),
},
{
title: renderTableTitle("执行耗时", "streamline-emojis:snail"),
key: "time",
width: 120,
align: "center",
render: (row) => submissionTimeFormat(row.statistic_info.time_cost),
},
{
title: renderTableTitle("占用内存", "streamline-emojis:bell"),
key: "memory",
width: 120,
align: "center",
render: (row) => submissionMemoryFormat(row.statistic_info.memory_cost),
},
{
title: renderTableTitle(
"语言",
@@ -318,7 +299,7 @@ const columns = computed(() => {
</n-form-item>
</n-form>
</n-space>
<n-data-table striped :columns="columns" :data="submissions" />
<n-data-table :bordered="false" :columns="columns" :data="submissions" />
</n-flex>
<Pagination
:total="total"