From c89c5668e124a4be79fc18b21fe902a99a596741 Mon Sep 17 00:00:00 2001 From: Vicky <10212746+haifeng-jiang@user.noreply.gitee.com> Date: Tue, 27 Oct 2026 14:00:07 +0800 Subject: [PATCH] =?UTF-8?q?refactor(admin):=20=E7=94=A8=E6=88=B7=E5=8D=95?= =?UTF-8?q?=E5=85=83=E6=A0=BC=E5=8F=AA=E4=BF=9D=E7=95=99=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 机型与系统版本号属于多余信息,Android/iOS 加游客标签已足够区分。 --- src/api/admin/engagement.ts | 4 +--- src/views/components/AppUserCell.vue | 19 ++++++------------- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/src/api/admin/engagement.ts b/src/api/admin/engagement.ts index e0f511e..b856ecb 100644 --- a/src/api/admin/engagement.ts +++ b/src/api/admin/engagement.ts @@ -26,10 +26,8 @@ export interface EngagementItem { uid: string | null nickname: string | null deviceId: string | null - /** 客户端系统,来自设备画像;老客户端未上报时为空。 */ + /** 客户端平台 ANDROID / IOS / WEB;老客户端未上报时为空。 */ platform: string | null - osVersion: string | null - deviceModel: string | null anonymous: boolean dramaId: string | null dramaTitle: string | null diff --git a/src/views/components/AppUserCell.vue b/src/views/components/AppUserCell.vue index d9664ea..5215b94 100644 --- a/src/views/components/AppUserCell.vue +++ b/src/views/components/AppUserCell.vue @@ -7,7 +7,7 @@ import { computed } from 'vue' * 后台各列表共用的「用户」单元格。 * * 口径:已登录显示昵称 + uid;未登录显示「游客」标签 + deviceId(单行省略,悬浮看全值)。 - * 第二行统一展示客户端系统,系统缺失(老客户端没上报)时显示横线。 + * 第二行只展示客户端平台(Android / iOS),老客户端没上报时显示横线。 */ const props = defineProps({ row: { type: Object, required: true } @@ -17,13 +17,9 @@ const PLATFORM_TEXT = { ANDROID: 'Android', IOS: 'iOS', WEB: 'Web' } const isGuest = computed(() => props.row?.userId == null) -const systemText = computed(() => { - const row = props.row || {} - const name = PLATFORM_TEXT[row.platform] || row.platform || '' - const version = row.osVersion || '' - const text = `${name} ${version}`.trim() - if (!text) return '—' - return row.deviceModel ? `${text} · ${row.deviceModel}` : text +const platformText = computed(() => { + const platform = props.row?.platform || '' + return PLATFORM_TEXT[platform] || platform || '—' }) @@ -41,7 +37,7 @@ const systemText = computed(() => { }} {{ row.uid || `用户 #${row.userId}` }} - {{ systemText }} + {{ platformText }} @@ -53,11 +49,8 @@ const systemText = computed(() => { white-space: nowrap; } -.app-user-system { +.app-user-platform { color: #b0adbd; font-size: 12px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; }