feat:【mall 商城】交易统计【antd】30%:优化 trend-card.vue 的实现

This commit is contained in:
YunaiV
2025-10-20 13:58:34 +08:00
parent 7ed34921bc
commit b28209afe7
4 changed files with 9 additions and 19 deletions

View File

@@ -92,6 +92,8 @@ async function getTradeStatisticsList() {
});
// 处理数据
// TODO @芋艿:搞到 getTradeTrendChartOptions 里;
// TODO @芋艿:貌似和 vue3 + element-plus 数据不一致;
const processedList = list.map((item) => ({
...item,
turnoverPrice: Number(fenToYuan(item.turnoverPrice)),

View File

@@ -1,11 +1,9 @@
import type { EChartsOption } from 'echarts';
import type { MallTradeStatisticsApi } from '#/api/mall/statistics/trade';
/** 交易趋势折线图配置 */
export function getTradeTrendChartOptions(
data: MallTradeStatisticsApi.TradeTrendSummary[],
): EChartsOption {
): any {
return {
dataset: {
dimensions: [