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