From 2107ea8a71e5d8f2bd1632f20d78d14c65dbb5bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=BA=A2=E4=B8=BD?= <1181930680@qq.com> Date: Fri, 6 Dec 2024 13:21:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E7=AE=A1=E7=90=86=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/logger/loginLog/columns.ts | 30 ++++++++++++++++++--- src/views/system/logger/operLog/columns.ts | 21 ++++++++++++--- 2 files changed, 44 insertions(+), 7 deletions(-) diff --git a/src/views/system/logger/loginLog/columns.ts b/src/views/system/logger/loginLog/columns.ts index ff61f43..232243e 100644 --- a/src/views/system/logger/loginLog/columns.ts +++ b/src/views/system/logger/loginLog/columns.ts @@ -19,7 +19,15 @@ export const columns = [ h('div',{ style: { marginBottom:'5px'} }, record.ip), - h('div', record.location), + h( + Tag, + { + color: 'processing', + }, + { + default: () => record.location, + }, + ), ]) } }, @@ -30,13 +38,20 @@ export const columns = [ return h('div', [ h(Tag, { - type: 'info', + color: 'default', style: {marginBottom:'5px'} }, { 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 ? '正常' : '异常'), }), - h('div', '请求耗时:'+record.consumeTime+'ms'), + h( + 'div', + { + style: { marginBottom: '5px' }, + }, + '请求耗时:' + record.consumeTime + 'ms', + ), + h('div', '响应时间:' + record.updateTime), ]) } }, diff --git a/src/views/system/logger/operLog/columns.ts b/src/views/system/logger/operLog/columns.ts index dbbad0c..8262cc4 100644 --- a/src/views/system/logger/operLog/columns.ts +++ b/src/views/system/logger/operLog/columns.ts @@ -19,7 +19,15 @@ export const columns = [ h('div',{ style: { marginBottom:'5px'} }, record.ip), - h('div', record.location), + h( + Tag, + { + color: 'processing', + }, + { + default: () => record.location, + }, + ), ]) } }, @@ -30,7 +38,7 @@ export const columns = [ return h('div', [ h(Tag, { - type: 'info', + color: 'default', style: {marginBottom:'5px'} }, { @@ -55,7 +63,14 @@ export const columns = [ { default: () => (record.status == 0 ? '正常' : '异常'), }), - h('div', '请求耗时:'+record.consumeTime+'ms'), + h( + 'div', + { + style: { marginBottom: '5px' }, + }, + '请求耗时:' + record.consumeTime + 'ms', + ), + h('div', '响应时间:' + record.updateTime), ]) } },