46 lines
727 B
Plaintext
46 lines
727 B
Plaintext
import { h } from 'vue';
|
|
|
|
export const columns = [
|
|
{
|
|
title:'ID',
|
|
dataIndex: 'id',
|
|
},
|
|
{
|
|
title: '模板名称',
|
|
dataIndex: 'name',
|
|
},
|
|
{
|
|
title: '模板编码',
|
|
dataIndex: 'code',
|
|
},
|
|
{
|
|
title: '文件名称',
|
|
dataIndex: 'fileName',
|
|
},
|
|
{
|
|
title: '文件路径',
|
|
dataIndex: 'filePath',
|
|
customRender({ record }) {
|
|
return h('a', {
|
|
href: record.filePath,
|
|
target:"_blank"
|
|
}, "点击查看文件");
|
|
},
|
|
},
|
|
{
|
|
title: '创建人',
|
|
dataIndex: 'createUser',
|
|
},
|
|
{
|
|
title: '创建时间',
|
|
dataIndex: 'createTime',
|
|
},
|
|
{
|
|
title: '操作',
|
|
fixed:'right',
|
|
dataIndex: 'action',
|
|
key: 'action',
|
|
width: 200,
|
|
},
|
|
];
|