diff --git a/src/views/file/emailTemplate/columns.ts b/src/views/file/emailTemplate/columns.ts index e5b8b04..b5918d8 100644 --- a/src/views/file/emailTemplate/columns.ts +++ b/src/views/file/emailTemplate/columns.ts @@ -7,7 +7,8 @@ export const columns = [ }, { label: 'ID', - prop: 'id' + prop: 'id', + width: 100, }, { label: '模板名称', @@ -38,6 +39,20 @@ export const columns = [ return h('span', typeText || '-'); }, }, + { + label: '文件名称', + prop: 'fileName', + }, + { + label: '文件路径', + prop: 'filePath', + render(record) { + return h('a', { + href: record.row.filePath, + target:"_blank" + }, "点击查看文件"); + }, + }, { label: '创建人', prop: 'createUser', @@ -45,5 +60,6 @@ export const columns = [ { label: '创建时间', prop: 'createTime', + width: 180, }, ]; diff --git a/src/views/file/emailTemplate/index.vue b/src/views/file/emailTemplate/index.vue index fb8a9a5..110ba7f 100644 --- a/src/views/file/emailTemplate/index.vue +++ b/src/views/file/emailTemplate/index.vue @@ -68,7 +68,7 @@ const editVisible=ref(false) type:'' }); const actionColumn = reactive({ - width: 250, + width: 200, label: '操作', prop: 'action', fixed: 'right',