wms-antdvue/.svn/pristine/e8/e80329f251a619d4c46c6a2f8bf32201085a8ec1.svn-base
2024-11-07 16:33:03 +08:00

64 lines
1.0 KiB
Plaintext

import { h } from 'vue';
export const columns = [
{
title:'ID',
dataIndex: 'id',
fixed:'left'
},
{
title: '模板编号',
dataIndex: 'number',
},
{
title: '模板名称',
dataIndex: 'title',
},
{
title: '模板编码',
dataIndex: 'code',
},
{
title: '消息类型',
dataIndex: 'type',
customRender({ record }) {
let typeText = ''
switch (record.type) {
case 1:
typeText='系统通知'
break;
case 2:
typeText='用户私信'
break;
case 3:
typeText='代办事项'
break;
default:
break;
}
return h('span', typeText || '-');
},
},
{
title: '模板内容',
dataIndex: 'content',
width: 350,
},
{
title: '创建人',
dataIndex: 'createUser',
},
{
title: '创建时间',
dataIndex: 'createTime',
width:200,
},
{
title: '操作',
fixed:'right',
dataIndex: 'action',
key: 'action',
width: 200,
},
];