From e640a3cedd76a4b3c14a98c616b611c8706c2ebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Tue, 15 Oct 2024 03:26:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/backup/ListView.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/web/src/views/backup/ListView.vue b/web/src/views/backup/ListView.vue index 7fb6eb03..c51a8041 100644 --- a/web/src/views/backup/ListView.vue +++ b/web/src/views/backup/ListView.vue @@ -4,6 +4,7 @@ import { renderIcon } from '@/utils' import type { MessageReactive } from 'naive-ui' import { NButton, NInput, NPopconfirm } from 'naive-ui' +import { formatDateTime } from '@/utils' import type { Backup } from './types' const type = defineModel('type', { type: String, required: true }) @@ -18,7 +19,16 @@ const restoreModel = ref({ const columns: any = [ { title: '文件名', key: 'name', fixed: 'left', resizable: true, ellipsis: { tooltip: true } }, - { title: '大小', key: 'size', width: 200, ellipsis: { tooltip: true } }, + { title: '大小', key: 'size', width: 160, ellipsis: { tooltip: true } }, + { + title: '更新日期', + key: 'time', + width: 200, + ellipsis: { tooltip: true }, + render(row: any) { + return formatDateTime(row.time) + } + }, { title: '操作', key: 'actions',