日志管理修改

This commit is contained in:
陈红丽 2024-12-06 13:21:55 +08:00
parent 0eb2648d8a
commit 2107ea8a71
2 changed files with 44 additions and 7 deletions

View File

@ -19,7 +19,15 @@ export const columns = [
h('div',{ h('div',{
style: { marginBottom:'5px'} style: { marginBottom:'5px'}
}, record.ip), }, record.ip),
h('div', record.location), h(
Tag,
{
color: 'processing',
},
{
default: () => record.location,
},
),
]) ])
} }
}, },
@ -30,13 +38,20 @@ export const columns = [
return h('div', [ return h('div', [
h(Tag, h(Tag,
{ {
type: 'info', color: 'default',
style: {marginBottom:'5px'} style: {marginBottom:'5px'}
}, },
{ {
default: () => (record.requestMethod), default: () => (record.requestMethod),
}), }),
h('div', '接口:'+record.url), h(
'div',
{
style: { marginBottom: '5px' },
},
'接口:' + record.url,
),
h('div', '名称:' + record.title),
]) ])
} }
@ -55,7 +70,14 @@ export const columns = [
{ {
default: () => (record.status == 0 ? '正常' : '异常'), default: () => (record.status == 0 ? '正常' : '异常'),
}), }),
h('div', '请求耗时:'+record.consumeTime+'ms'), h(
'div',
{
style: { marginBottom: '5px' },
},
'请求耗时:' + record.consumeTime + 'ms',
),
h('div', '响应时间:' + record.updateTime),
]) ])
} }
}, },

View File

@ -19,7 +19,15 @@ export const columns = [
h('div',{ h('div',{
style: { marginBottom:'5px'} style: { marginBottom:'5px'}
}, record.ip), }, record.ip),
h('div', record.location), h(
Tag,
{
color: 'processing',
},
{
default: () => record.location,
},
),
]) ])
} }
}, },
@ -30,7 +38,7 @@ export const columns = [
return h('div', [ return h('div', [
h(Tag, h(Tag,
{ {
type: 'info', color: 'default',
style: {marginBottom:'5px'} style: {marginBottom:'5px'}
}, },
{ {
@ -55,7 +63,14 @@ export const columns = [
{ {
default: () => (record.status == 0 ? '正常' : '异常'), default: () => (record.status == 0 ? '正常' : '异常'),
}), }),
h('div', '请求耗时:'+record.consumeTime+'ms'), h(
'div',
{
style: { marginBottom: '5px' },
},
'请求耗时:' + record.consumeTime + 'ms',
),
h('div', '响应时间:' + record.updateTime),
]) ])
} }
}, },