From f19cbc085d0913ad1826b210fa1af42fc14cbd70 Mon Sep 17 00:00:00 2001 From: Timi Date: Mon, 3 Aug 2026 23:45:46 +0800 Subject: [PATCH] add registration event rank --- src/api/RegistrationEventRecordAPI.ts | 6 + src/pages/management/CustomerDataCharts.vue | 418 +++++++++++++++++++- src/pages/tabs/ManagementTab.vue | 2 +- src/router/routes/chartRoutes.ts | 4 +- src/types/RegistrationEventRecord.ts | 16 +- 5 files changed, 437 insertions(+), 9 deletions(-) diff --git a/src/api/RegistrationEventRecordAPI.ts b/src/api/RegistrationEventRecordAPI.ts index d7ee6bc..e5bd3fa 100644 --- a/src/api/RegistrationEventRecordAPI.ts +++ b/src/api/RegistrationEventRecordAPI.ts @@ -1,6 +1,7 @@ import { axios, type Page, type PageResult } from "timi-web"; import type { CustomerRegisterStatView, + CustomerRegistrationRankView, RegistrationEventRecordCalendarView, RegistrationEventRecord, RegistrationEventRecordCreateReq, @@ -64,6 +65,10 @@ async function allCustomerRangeStat(req: RegistrationEventRecordStatReq): Promis return await axios.post(`${BASE_URI}/all-customer/range/stat`, req); } +async function customerRegistrationRank(req?: Partial): Promise { + return await axios.post(`${BASE_URI}/customer/registration-rank`, req); +} + async function customerRegistrationEventDailyStat(req: RegistrationEventRecordTrendStatReq): Promise { return await axios.post(`${BASE_URI}/customer/registration-event/daily/stat`, req); } @@ -84,6 +89,7 @@ export default { remove, customerRangeStat, allCustomerRangeStat, + customerRegistrationRank, customerRegistrationEventDailyStat, allCustomerRegistrationEventDailyStat }; diff --git a/src/pages/management/CustomerDataCharts.vue b/src/pages/management/CustomerDataCharts.vue index 94ac4bf..ebef209 100644 --- a/src/pages/management/CustomerDataCharts.vue +++ b/src/pages/management/CustomerDataCharts.vue @@ -23,6 +23,24 @@ @status-change="handleScanStatusChange" /> +
+ + + + +
@@ -48,34 +66,94 @@

-
请选择客户后查看专属图表
+
+ + + + + + +
+ + + + + +