From f119f943f9947ffcc8ef10932c872caccb49909e Mon Sep 17 00:00:00 2001 From: Bunny <1319900154@qq.com> Date: Sat, 19 Oct 2024 01:18:38 +0800 Subject: [PATCH] =?UTF-8?q?page:=20=F0=9F=93=84=20=E9=87=8D=E5=81=9A?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=99=BB=E5=BD=95=E6=97=A5=E5=BF=97=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/monitor/userLoginLog.ts | 36 ++++- src/views/monitor/userLoginLog/index.vue | 107 ++++++++++++-- .../userLoginLog/user-login-log-dialog.vue | 133 +++++++++++++++++- .../monitor/userLoginLog/utils/columns.ts | 114 +++++++++++++-- src/views/monitor/userLoginLog/utils/hooks.ts | 18 ++- src/views/monitor/userLoginLog/utils/types.ts | 36 ++++- 6 files changed, 412 insertions(+), 32 deletions(-) diff --git a/src/store/monitor/userLoginLog.ts b/src/store/monitor/userLoginLog.ts index 6084a78..c86f0e0 100644 --- a/src/store/monitor/userLoginLog.ts +++ b/src/store/monitor/userLoginLog.ts @@ -21,13 +21,45 @@ export const useUserLoginLogStore = defineStore('userLoginLogStore', { // 登录token token: undefined, // 登录Ip - ipRegion: undefined, - // 登录Ip地点 ipAddress: undefined, + // 登录Ip归属地 + ipRegion: undefined, // 登录时代理 userAgent: undefined, // 操作类型 type: undefined, + // 标识客户端是否是通过Ajax发送请求的 + xRequestedWith: undefined, + // 用户代理的品牌和版本 + secChUa: undefined, + // 用户代理的底层平台架构 + secChUaArch: undefined, + // 用户代理的底层CPU架构位数 + secChUaBitness: undefined, + // 用户代理是否在手机设备上运行 + secChUaMobile: undefined, + // 用户代理的设备模型 + secChUaModel: undefined, + // 用户代理的底层操作系统/平台 + secChUaPlatform: undefined, + // 用户代理的底层操作系统版本 + secChUaPlatformVersion: undefined, + // 客户端设备像素比 + contentDpr: undefined, + // 客户端RAM内存的近似值 + deviceMemory: undefined, + // 客户端设备像素比 + dpr: undefined, + // 布局视口宽度 + viewportWidth: undefined, + // 所需资源宽度 + width: undefined, + // 客户端连接到服务器的近似带宽 + downlink: undefined, + // 有效连接类型 + ect: undefined, + // 应用层往返时间 + rtt: undefined, }, // 分页查询结果 pagination: { diff --git a/src/views/monitor/userLoginLog/index.vue b/src/views/monitor/userLoginLog/index.vue index 69483a7..94ebad3 100644 --- a/src/views/monitor/userLoginLog/index.vue +++ b/src/views/monitor/userLoginLog/index.vue @@ -60,27 +60,120 @@ onMounted(() => {