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, }, ];