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 () => {