diff --git a/src/views/file/fileTemplate/columns.ts b/src/views/file/fileTemplate/columns.ts index 69d4e8a..2a23af7 100644 --- a/src/views/file/fileTemplate/columns.ts +++ b/src/views/file/fileTemplate/columns.ts @@ -7,7 +7,8 @@ export const columns = [ }, { label: 'ID', - prop: 'id' + prop: 'id', + width: 100, }, { label: '模板名称', @@ -17,6 +18,20 @@ export const columns = [ label: '模板编码', prop: 'code', }, + { + label: '文件名称', + prop: 'fileName', + }, + { + label: '文件路径', + prop: 'filePath', + render(record) { + return h('a', { + href: record.row.filePath, + target:"_blank" + }, "点击查看文件"); + }, + }, { label: '创建人', prop: 'createUser', @@ -24,5 +39,6 @@ export const columns = [ { label: '创建时间', prop: 'createTime', + width: 180, }, ]; diff --git a/src/views/file/fileTemplate/index.vue b/src/views/file/fileTemplate/index.vue index 3b0feaa..eb95c0a 100644 --- a/src/views/file/fileTemplate/index.vue +++ b/src/views/file/fileTemplate/index.vue @@ -67,7 +67,7 @@ const editVisible=ref(false) name:'', }); const actionColumn = reactive({ - width: 250, + width: 200, label: '操作', prop: 'action', fixed: 'right',