From b18534b98edecf5a5a01dd2e67f1ad3b6a2ff269 Mon Sep 17 00:00:00 2001 From: zjl Date: Fri, 13 Dec 2024 13:20:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=88=91=E7=9A=84=E6=B6=88?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dashboard/message/columns.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/message/columns.ts b/src/views/dashboard/message/columns.ts index 9c0d462..1a85987 100644 --- a/src/views/dashboard/message/columns.ts +++ b/src/views/dashboard/message/columns.ts @@ -4,7 +4,7 @@ export const columns = [ { type: 'selection', width: 50, - fixed:"left" + fixed: 'left', }, { title: 'ID', @@ -15,20 +15,24 @@ export const columns = [ { title: '消息标题', key: 'title', + width: 250, }, { title: '消息状态', key: 'status', + width: 100, customRender({ record }) { - return h('span', record.status === 1 ? '已读' : '未读') + return h('span', record.status === 1 ? '已读' : '未读'); }, }, { title: '创建人', key: 'createUser', + width: 100, }, { title: '创建时间', key: 'createTime', + width: 180, }, ];