This commit is contained in:
2025-03-21 14:32:11 +08:00
parent 696f1adf3f
commit cce7920dcc

View File

@@ -1,5 +1,5 @@
<template> <template>
<n-grid class="container" x-gap="10" :cols="3"> <n-grid class="container" x-gap="10" :cols="2">
<n-gi :span="1"> <n-gi :span="1">
<n-flex vertical> <n-flex vertical>
<n-flex justify="space-between"> <n-flex justify="space-between">
@@ -26,7 +26,7 @@
<n-data-table striped :columns="columns" :data="data"></n-data-table> <n-data-table striped :columns="columns" :data="data"></n-data-table>
</n-flex> </n-flex>
</n-gi> </n-gi>
<n-gi :span="2"> <n-gi :span="1">
<Preview <Preview
v-if="submission.id" v-if="submission.id"
:html="html" :html="html"
@@ -92,11 +92,13 @@ const columns: DataTableColumn<SubmissionOut>[] = [
{ {
title: "时间", title: "时间",
key: "created", key: "created",
width: 110,
render: (row) => parseTime(row.created, "YYYY-MM-DD HH:mm:ss"), render: (row) => parseTime(row.created, "YYYY-MM-DD HH:mm:ss"),
}, },
{ {
title: "提交者", title: "提交者",
key: "user", key: "user",
width: 80,
render: (row) => row.username, render: (row) => row.username,
}, },
{ {