日志管理修改

This commit is contained in:
陈红丽 2024-12-06 13:23:23 +08:00
parent f6f8cd5abe
commit e412f30c04
2 changed files with 35 additions and 5 deletions

View File

@ -21,7 +21,15 @@ export const columns = [
h('div',{ h('div',{
style: { marginBottom:'5px'} style: { marginBottom:'5px'}
}, record.row.ip), }, record.row.ip),
h('div', record.row.location), h(
ElTag,
{
type: 'primary',
},
{
default: () => record.row.location,
},
),
]) ])
} }
}, },
@ -39,7 +47,7 @@ export const columns = [
default: () => (record.row.requestMethod), default: () => (record.row.requestMethod),
}), }),
h('div', '接口:'+record.row.url), h('div', '接口:'+record.row.url),
h('div', '名称:' + record.title),
]) ])
} }
}, },
@ -57,7 +65,14 @@ export const columns = [
{ {
default: () => (record.row.status == 0 ? '正常' : '异常'), default: () => (record.row.status == 0 ? '正常' : '异常'),
}), }),
h('div', '请求耗时:'+record.row.consumeTime+'ms'), h(
'div',
{
style: { marginBottom: '5px' },
},
'请求耗时:' + record.row.consumeTime + 'ms',
),
h('div', '响应时间:' + record.row.updateTime),
]) ])
} }
}, },

View File

@ -21,7 +21,15 @@ export const columns = [
h('div',{ h('div',{
style: { marginBottom:'5px'} style: { marginBottom:'5px'}
}, record.row.ip), }, record.row.ip),
h('div', record.row.location), h(
ElTag,
{
type: 'primary',
},
{
default: () => record.row.location,
},
),
]) ])
} }
}, },
@ -57,7 +65,14 @@ export const columns = [
{ {
default: () => (record.row.status == 0 ? '正常' : '异常'), default: () => (record.row.status == 0 ? '正常' : '异常'),
}), }),
h('div', '请求耗时:'+record.row.consumeTime+'ms'), h(
'div',
{
style: { marginBottom: '5px' },
},
'请求耗时:' + record.row.consumeTime + 'ms',
),
h('div', '响应时间:' + record.row.updateTime),
]) ])
} }
}, },