文件日志

This commit is contained in:
陈红丽 2024-08-01 18:29:24 +08:00
parent 4c549ed70b
commit df8079f9cc

View File

@ -6,46 +6,22 @@ export const columns = [
type: 'selection', type: 'selection',
}, },
{ {
label: '日志标题', label: '文件名称',
prop: 'title', prop: 'originalName',
},
{
label: '日志类型',
prop: 'type',
render(record) { render(record) {
let typeText = '' return h('a', {
switch (record.row.type) { href:record.row.filePath,
case 1: target:"_blank"
typeText='登录' },record.row.originalName);
break;
case 2:
typeText='注册'
break;
case 3:
typeText='找回密码'
break;
case 4:
typeText='业务'
break;
case 5:
typeText='其他'
break;
default:
break;
}
return h('span', typeText || '-');
}, },
}, },
{ {
label: '请求耗时', label: '文件大小',
prop: 'consumeTime', prop: 'fileSize',
}, },
{ {
label: '日志状态', label: '文件后缀',
prop: 'status', prop:'fileExtension'
render(record) {
return h('span', record.row.status === 1 ? '已读' : '未读')
},
}, },
{ {
label: '创建人', label: '创建人',