From 21bee633404b877a3b556eed010d02d7e097130d 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:24:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/dept/columns.ts | 3 ++- src/views/system/logger/loginLog/columns.ts | 28 ++++++++++++++++++--- src/views/system/logger/operLog/columns.ts | 27 +++++++++++++++++--- src/views/system/menu/columns.ts | 3 ++- src/views/system/role/auth.vue | 3 ++- 5 files changed, 55 insertions(+), 9 deletions(-) diff --git a/src/views/system/dept/columns.ts b/src/views/system/dept/columns.ts index bf9afc4..6c2288e 100644 --- a/src/views/system/dept/columns.ts +++ b/src/views/system/dept/columns.ts @@ -5,7 +5,8 @@ export const columns = [ { title: '部门名称', key: 'name', - width: 200, + width: 150, + align: 'left', }, { title: '部门类型', diff --git a/src/views/system/logger/loginLog/columns.ts b/src/views/system/logger/loginLog/columns.ts index 018a201..e2ecd44 100644 --- a/src/views/system/logger/loginLog/columns.ts +++ b/src/views/system/logger/loginLog/columns.ts @@ -32,7 +32,15 @@ export const columns = [ }, record.ip, ), - h('div', record.location), + h( + NTag, + { + type: 'info', + }, + { + default: () => record.location, + }, + ), ]); }, }, @@ -50,7 +58,14 @@ export const columns = [ default: () => record.requestMethod, }, ), - h('div', '接口:' + record.url), + h( + 'div', + { + style: { marginBottom: '5px' }, + }, + '接口:' + record.url, + ), + h('div', '名称:' + record.title), ]); }, }, @@ -70,7 +85,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 740f011..5cf0db8 100644 --- a/src/views/system/logger/operLog/columns.ts +++ b/src/views/system/logger/operLog/columns.ts @@ -32,7 +32,15 @@ export const columns = [ }, record.ip, ), - h('div', record.location), + h( + NTag, + { + type: 'info', + }, + { + default: () => record.location, + }, + ), ]); }, }, @@ -50,7 +58,13 @@ export const columns = [ default: () => record.requestMethod, }, ), - h('div', '接口:' + record.url), + h( + 'div', + { + style: { marginBottom: '5px' }, + }, + '接口:' + record.url, + ), h('div', '名称:' + record.title), ]); }, @@ -71,7 +85,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/menu/columns.ts b/src/views/system/menu/columns.ts index 34f0249..372a8e4 100644 --- a/src/views/system/menu/columns.ts +++ b/src/views/system/menu/columns.ts @@ -11,7 +11,8 @@ export const columns: BasicColumn[] = [ { title: '菜单名称', key: 'name', - width: 250, + width: 150, + align: 'left', }, { title: '类型', diff --git a/src/views/system/role/auth.vue b/src/views/system/role/auth.vue index 49a9488..15762fd 100644 --- a/src/views/system/role/auth.vue +++ b/src/views/system/role/auth.vue @@ -21,7 +21,8 @@ label-field="name" children-field="children" cascade - :height="600" + virtual-scroll + style="height: 350px" :checked-keys="checkedKeys" :expanded-keys="expandedKeys" :indeterminate-keys="halfCheckedIds"