统计:Review修改
This commit is contained in:
parent
7b9ea62e6b
commit
cd4b4cd322
@ -58,8 +58,8 @@ export interface MemberTerminalStatisticsRespVO {
|
||||
export interface MemberCountRespVO {
|
||||
/** 用户访问量 */
|
||||
visitUserCount: string
|
||||
/** 新增用户数量 */
|
||||
createUserCount: number
|
||||
/** 注册用户数量 */
|
||||
registerUserCount: number
|
||||
}
|
||||
|
||||
/** 会员注册数量 Response VO */
|
||||
@ -86,21 +86,21 @@ export const getMemberAnalyse = (params: MemberAnalyseReqVO) => {
|
||||
// 按照省份,查询会员统计列表
|
||||
export const getMemberAreaStatisticsList = () => {
|
||||
return request.get<MemberAreaStatisticsRespVO[]>({
|
||||
url: '/statistics/member/get-area-statistics-list'
|
||||
url: '/statistics/member/area-statistics-list'
|
||||
})
|
||||
}
|
||||
|
||||
// 按照性别,查询会员统计列表
|
||||
export const getMemberSexStatisticsList = () => {
|
||||
return request.get<MemberSexStatisticsRespVO[]>({
|
||||
url: '/statistics/member/get-sex-statistics-list'
|
||||
url: '/statistics/member/sex-statistics-list'
|
||||
})
|
||||
}
|
||||
|
||||
// 按照终端,查询会员统计列表
|
||||
export const getMemberTerminalStatisticsList = () => {
|
||||
return request.get<MemberTerminalStatisticsRespVO[]>({
|
||||
url: '/statistics/member/get-terminal-statistics-list'
|
||||
url: '/statistics/member/terminal-statistics-list'
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,12 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
/** 支付统计 */
|
||||
export interface PaySummaryRespVO {
|
||||
/** 充值金额,单位分 */
|
||||
rechargePrice: number
|
||||
}
|
||||
|
||||
/** 获取钱包充值金额 */
|
||||
export const getWalletRechargePrice = async () => {
|
||||
return await request.get<number>({ url: `/statistics/pay/wallet-recharge-price` })
|
||||
return await request.get<PaySummaryRespVO>({ url: `/statistics/pay/summary` })
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ export interface TradeTrendSummaryRespVO {
|
||||
expensePrice: number
|
||||
orderWalletPayPrice: number
|
||||
brokerageSettlementPrice: number
|
||||
orderRefundPrice: number
|
||||
afterSaleRefundPrice: number
|
||||
}
|
||||
|
||||
/** 交易订单数量 Response VO */
|
||||
|
@ -70,7 +70,8 @@ const getProductData = async () => {
|
||||
|
||||
/** 查询钱包充值数据 */
|
||||
const getWalletRechargeData = async () => {
|
||||
data.rechargePrice.value = await PayStatisticsApi.getWalletRechargePrice()
|
||||
const paySummary = await PayStatisticsApi.getWalletRechargePrice();
|
||||
data.rechargePrice.value = paySummary.rechargePrice
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -32,8 +32,8 @@
|
||||
<ComparisonCard
|
||||
tag="今日"
|
||||
title="新增用户"
|
||||
:value="userComparison?.value?.createUserCount || 0"
|
||||
:reference="userComparison?.reference?.createUserCount || 0"
|
||||
:value="userComparison?.value?.registerUserCount || 0"
|
||||
:reference="userComparison?.reference?.registerUserCount || 0"
|
||||
/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
@ -192,11 +192,11 @@
|
||||
icon-bg-color="text-blue-500"
|
||||
prefix="¥"
|
||||
:decimals="2"
|
||||
:value="fenToYuan(trendSummary?.value?.orderRefundPrice || 0)"
|
||||
:value="fenToYuan(trendSummary?.value?.afterSaleRefundPrice || 0)"
|
||||
:percent="
|
||||
calculateRelativeRate(
|
||||
trendSummary?.value?.orderRefundPrice,
|
||||
trendSummary?.reference?.orderRefundPrice
|
||||
trendSummary?.value?.afterSaleRefundPrice,
|
||||
trendSummary?.reference?.afterSaleRefundPrice
|
||||
)
|
||||
"
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user