文件日志

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