fix(company-overview): 修复店铺经营健康度分层散点图不显示的问题

- 散点图改用 shopComparisons 数据,x轴=达成率,y轴=税后盈亏,气泡大小=销售额,颜色=费比
- 添加 watch + onMounted 确保图表正确渲染
- echarts 插件补充 ScatterChart 支持
This commit is contained in:
小蟑螂
2026-04-22 15:34:56 +08:00
parent cc5058db3b
commit 41302dfa05
3 changed files with 120 additions and 44 deletions
@@ -19,7 +19,7 @@ import { Page } from '@vben/common-ui';
import { Button, DatePicker, InputNumber, Spin } from 'ant-design-vue';
import dayjs from 'dayjs';
import { getCompanyOverviewApi, exportCompanyOverviewApi, exportCategoryOverviewApi } from '#/api/ecommerce/company-overview/apis';
import { getCompanyOverviewApi } from '#/api/ecommerce/company-overview/apis';
import { getShopPageApi } from '#/api/ecommerce/shop';
import { exportByPost } from '#/utils/export';
@@ -536,6 +536,7 @@ const navigateToShopOverview = (shopId: number) => {
ref="shopChartsRef"
:shop-sales-ratios="overviewData?.shopSalesRatios"
:shop-comparisons="overviewData?.shopComparisons"
:shop-efficiency-quadrants="overviewData?.shopEfficiencyQuadrants"
/>
<!-- 第三层:横向对比大表 -->