mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-23 23:59:19 +08:00
fix(ecom-dmb): 修复公司概览图表组件因shopComparisons结构变更导致的报错
This commit is contained in:
+2
-2
@@ -10,7 +10,7 @@ defineOptions({ name: 'ShopCharts' });
|
||||
|
||||
interface Props {
|
||||
shopSalesRatios?: CompanyOverviewVO.ShopSalesRatio[];
|
||||
shopComparisons?: CompanyOverviewVO.ShopComparison[];
|
||||
shopComparisons?: CompanyOverviewVO.ShopOverview;
|
||||
shopEfficiencyQuadrants?: CompanyOverviewVO.ShopEfficiencyQuadrant[];
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ const renderShopBarChart = () => {
|
||||
const renderShopScatterChart = () => {
|
||||
if (!scatterChartRef.value || !props.shopComparisons) return;
|
||||
|
||||
const source = props.shopComparisons;
|
||||
const source = props.shopComparisons?.shops || [];
|
||||
|
||||
const data: Array<[number, number, string, number, number, number, number]> =
|
||||
source.map((shop) => [
|
||||
|
||||
Reference in New Issue
Block a user