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

69 lines
1.1 KiB
Plaintext

import { h } from 'vue';
export const columns = [
{
title: 'ID',
dataIndex: 'id',
fixed: 'left',
width: 50,
},
{
title: '模板编号',
dataIndex: 'number',
width: 100,
},
{
title: '模板名称',
dataIndex: 'title',
width: 150,
},
{
title: '模板编码',
dataIndex: 'code',
width: 150,
},
{
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',
width: 100,
},
{
title: '创建时间',
dataIndex: 'createTime',
width: 180,
},
{
title: '操作',
fixed: 'right',
dataIndex: 'action',
key: 'action',
width: 200,
},
];