fix: 修正商品统计数据赋值逻辑
- 更新商品统计组件中的数据赋值方式,确保正确映射到统计卡片 - 修复了浏览量、访客数、支付件数等多个统计项的数据来源,提升数据准确性pull/175/head
parent
4620ede9b9
commit
2cccbc949f
|
@ -223,7 +223,7 @@ const loadOverview = () => {
|
||||||
title: '商品浏览量',
|
title: '商品浏览量',
|
||||||
totalTitle: '昨日数据',
|
totalTitle: '昨日数据',
|
||||||
totalValue: trendSummary.value?.reference?.browseCount,
|
totalValue: trendSummary.value?.reference?.browseCount,
|
||||||
value: trendSummary?.value?.browseUserCount || 0,
|
value: trendSummary.value?.value?.browseCount || 0,
|
||||||
tooltip:
|
tooltip:
|
||||||
'在选定条件下,所有商品详情页被访问的次数,一个人在统计时间内访问多次记为多次',
|
'在选定条件下,所有商品详情页被访问的次数,一个人在统计时间内访问多次记为多次',
|
||||||
},
|
},
|
||||||
|
@ -232,7 +232,7 @@ const loadOverview = () => {
|
||||||
title: '商品访客数',
|
title: '商品访客数',
|
||||||
totalTitle: '昨日数据',
|
totalTitle: '昨日数据',
|
||||||
totalValue: trendSummary.value?.reference?.browseUserCount || 0,
|
totalValue: trendSummary.value?.reference?.browseUserCount || 0,
|
||||||
value: trendSummary?.value?.browseUserCount || 0,
|
value: trendSummary.value?.value?.browseUserCount || 0,
|
||||||
tooltip:
|
tooltip:
|
||||||
'在选定条件下,访问任何商品详情页的人数,一个人在统计时间范围内访问多次只记为一个',
|
'在选定条件下,访问任何商品详情页的人数,一个人在统计时间范围内访问多次只记为一个',
|
||||||
},
|
},
|
||||||
|
@ -241,28 +241,28 @@ const loadOverview = () => {
|
||||||
title: '支付件数',
|
title: '支付件数',
|
||||||
totalTitle: '昨日数据',
|
totalTitle: '昨日数据',
|
||||||
totalValue: trendSummary.value?.reference?.orderPayCount || 0,
|
totalValue: trendSummary.value?.reference?.orderPayCount || 0,
|
||||||
value: trendSummary?.value?.orderPayCount || 0,
|
value: trendSummary.value?.value?.orderPayCount || 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: SvgBellIcon,
|
icon: SvgBellIcon,
|
||||||
title: '支付金额',
|
title: '支付金额',
|
||||||
totalTitle: '昨日数据',
|
totalTitle: '昨日数据',
|
||||||
totalValue: trendSummary.value?.reference?.afterSaleCount || 0,
|
totalValue: trendSummary.value?.reference?.afterSaleCount || 0,
|
||||||
value: trendSummary?.value?.orderPayPrice || 0,
|
value: trendSummary.value?.value?.orderPayPrice || 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: SvgBellIcon,
|
icon: SvgBellIcon,
|
||||||
title: '退款件数',
|
title: '退款件数',
|
||||||
totalTitle: '昨日数据',
|
totalTitle: '昨日数据',
|
||||||
totalValue: trendSummary.value?.reference?.afterSaleCount || 0,
|
totalValue: trendSummary.value?.reference?.afterSaleCount || 0,
|
||||||
value: trendSummary?.value?.afterSaleCount || 0,
|
value: trendSummary.value?.value?.afterSaleCount || 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: SvgBellIcon,
|
icon: SvgBellIcon,
|
||||||
title: '退款金额',
|
title: '退款金额',
|
||||||
totalTitle: '昨日数据',
|
totalTitle: '昨日数据',
|
||||||
totalValue: trendSummary.value?.reference?.afterSaleRefundPrice || 0,
|
totalValue: trendSummary.value?.reference?.afterSaleRefundPrice || 0,
|
||||||
value: trendSummary?.value?.afterSaleRefundPrice || 0,
|
value: trendSummary.value?.value?.afterSaleRefundPrice || 0,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue