优化我的消息
This commit is contained in:
parent
7b7fb5f67a
commit
b18534b98e
@ -4,7 +4,7 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
type: 'selection',
|
type: 'selection',
|
||||||
width: 50,
|
width: 50,
|
||||||
fixed:"left"
|
fixed: 'left',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'ID',
|
title: 'ID',
|
||||||
@ -15,20 +15,24 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
title: '消息标题',
|
title: '消息标题',
|
||||||
key: 'title',
|
key: 'title',
|
||||||
|
width: 250,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '消息状态',
|
title: '消息状态',
|
||||||
key: 'status',
|
key: 'status',
|
||||||
|
width: 100,
|
||||||
customRender({ record }) {
|
customRender({ record }) {
|
||||||
return h('span', record.status === 1 ? '已读' : '未读')
|
return h('span', record.status === 1 ? '已读' : '未读');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建人',
|
title: '创建人',
|
||||||
key: 'createUser',
|
key: 'createUser',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '创建时间',
|
title: '创建时间',
|
||||||
key: 'createTime',
|
key: 'createTime',
|
||||||
|
width: 180,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user