优化我的消息

This commit is contained in:
zjl 2024-12-13 13:20:28 +08:00
parent 7b7fb5f67a
commit b18534b98e

View File

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