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 @@

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