From f3fbc57c148eef27a3396c1b6a5a5d1aa4a4dcc9 Mon Sep 17 00:00:00 2001 From: Vicky <10212746+haifeng-jiang@user.noreply.gitee.com> Date: Tue, 27 Oct 2026 13:53:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(admin):=20=E7=BB=9F=E4=B8=80=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=8D=95=E5=85=83=E6=A0=BC=EF=BC=8C=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E6=B8=B8=E5=AE=A2=E8=AE=BE=E5=A4=87=E5=8F=B7=E4=B8=8E=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E7=AB=AF=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 AppUserCell,游客显示标签+deviceId,第二行统一展示系统与机型 - 收藏、点赞、观看记录三页复用,观看记录去掉重复的系统列 --- src/api/admin/engagement.ts | 6 +- src/views/components/AppUserCell.vue | 63 +++++++++++++++++++ src/views/userManagement/FavoritesView.vue | 23 +------ src/views/userManagement/LikesView.vue | 23 +------ src/views/userManagement/WatchHistoryView.vue | 13 ++-- 5 files changed, 78 insertions(+), 50 deletions(-) create mode 100644 src/views/components/AppUserCell.vue diff --git a/src/api/admin/engagement.ts b/src/api/admin/engagement.ts index c79b63f..e0f511e 100644 --- a/src/api/admin/engagement.ts +++ b/src/api/admin/engagement.ts @@ -26,12 +26,16 @@ export interface EngagementItem { uid: string | null nickname: string | null deviceId: string | null + /** 客户端系统,来自设备画像;老客户端未上报时为空。 */ + platform: string | null + osVersion: string | null + deviceModel: string | null anonymous: boolean dramaId: string | null dramaTitle: string | null dramaCover: string | null dramaStatus: string | null - dramaPublished: boolean + dramaPublished: boolean | null targetType: string targetId: string episodeId: string | null diff --git a/src/views/components/AppUserCell.vue b/src/views/components/AppUserCell.vue new file mode 100644 index 0000000..d9664ea --- /dev/null +++ b/src/views/components/AppUserCell.vue @@ -0,0 +1,63 @@ + + + + + + + diff --git a/src/views/userManagement/FavoritesView.vue b/src/views/userManagement/FavoritesView.vue index 2c63e7a..51f677e 100644 --- a/src/views/userManagement/FavoritesView.vue +++ b/src/views/userManagement/FavoritesView.vue @@ -4,6 +4,7 @@ import { onMounted, reactive, ref } from 'vue' import dayjs from 'dayjs' import PageHeading from '@/views/components/PageHeading.vue' +import AppUserCell from '@/views/components/AppUserCell.vue' import { pageFavoritesApi } from '@/api/admin/engagement' const PAGE_SIZES = [10, 20, 50] @@ -104,20 +105,9 @@ onMounted(load) class="drama-el-table" empty-text="暂无收藏" > - + @@ -156,13 +146,6 @@ onMounted(load)