From 2ccccf668996aa406fe4f95f3a675ad0eb8463d9 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 22 May 2026 16:35:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Dashboard.vue | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index eb98679..a5485eb 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -27,6 +27,8 @@ type ScheduleCountBlock = { } type ActivityScheduleCountsBlock = ScheduleCountBlock & { + /** 账号可见场馆范围内,全部活动名下的 activity_days 条数之和 */ + total_sessions: number /** 至少有一场已发布(上架且审核通过)活动的去重场馆数 */ published_venues_count: number } @@ -38,7 +40,13 @@ type TicketGrabScheduleCountBlock = ScheduleCountBlock & { } type LivePeopleRankRow = { venue_id: number; venue_name: string; live_count: number } -type ActivityPublishRankRow = { venue_id: number; venue_name: string; published_count: number } +type ActivityPublishRankRow = { + venue_id: number + venue_name: string + published_count: number + /** 「已发布」活动下的 activity_days 总条数 */ + published_sessions_count: number +} const stats = ref({ scope: { @@ -55,6 +63,7 @@ const stats = ref({ }, activity_schedule_counts: { total: 0, + total_sessions: 0, not_started: 0, ongoing: 0, ended: 0, @@ -592,7 +601,11 @@ onMounted(async () => {
{{ stats.activity_schedule_counts.total }}
-
总场数
+
活动数
+
+
+
{{ stats.activity_schedule_counts.total_sessions }}
+
总场次
{{ stats.activity_schedule_counts.not_started }}
@@ -676,7 +689,8 @@ onMounted(async () => { - + +
@@ -1140,7 +1154,7 @@ onMounted(async () => { @media (min-width: 1000px) { .dash-stat-grid.dash-stat-grid--schedule-act { - grid-template-columns: repeat(5, minmax(0, 1fr)); + grid-template-columns: repeat(6, minmax(0, 1fr)); } }