From 864502db1cf69e2e4ee1721dc6322c6725926e47 Mon Sep 17 00:00:00 2001 From: zhx Date: Thu, 7 May 2026 16:10:10 +0800 Subject: [PATCH] feat(admin): show login device model and short id --- apps/src/views/app-system/login-logger.vue | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/apps/src/views/app-system/login-logger.vue b/apps/src/views/app-system/login-logger.vue index ceda2ae..c611c9e 100644 --- a/apps/src/views/app-system/login-logger.vue +++ b/apps/src/views/app-system/login-logger.vue @@ -45,6 +45,7 @@ const query = reactive({ const columns = [ { dataIndex: 'appPlatform', key: 'appPlatform', title: '平台', width: 120 }, { dataIndex: 'user', key: 'user', title: '用户', width: 240 }, + { dataIndex: 'sysModel', key: 'sysModel', title: '机型', width: 160 }, { dataIndex: 'deviceId', key: 'deviceId', title: '设备ID', width: 220 }, { dataIndex: 'ip', key: 'ip', title: 'IP', width: 160 }, { dataIndex: 'ipLocation', key: 'ipLocation', title: 'IP地区', width: 220 }, @@ -55,10 +56,10 @@ const columns = [ { dataIndex: 'actions', key: 'actions', title: '操作', width: 220 }, ]; -const tableScroll = computed(() => ({ x: 1820 })); +const tableScroll = computed(() => ({ x: 1980 })); function getUserId(record: Record) { - return String(record.userProfile?.id || record.id || record.userId || ''); + return String(record.userProfile?.id || record.userId || record.id || ''); } function getUserName(record: Record) { @@ -73,6 +74,16 @@ function getUserAvatar(record: Record) { return record.userProfile?.userAvatar || record.userAvatar || ''; } +function getUserShortId(record: Record) { + return ( + record.userProfile?.account || + record.userProfile?.actualAccount || + record.userProfile?.ownSpecialId?.account || + record.account || + '' + ); +} + function getVipStatusName(record: Record) { return record.userProfile?.vipStatusName || record.vipStatusName || ''; } @@ -177,9 +188,13 @@ loadData(true);
{{ getUserName(record) }} ID {{ getUserId(record) || '-' }} + 短ID {{ getUserShortId(record) || '-' }}
+