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