This commit is contained in:
‘937886381’
2025-11-14 17:04:22 +08:00
parent 3d167e8d71
commit dfa4ff3f54
28 changed files with 684 additions and 141 deletions

View File

@@ -8,7 +8,7 @@
<div class="bottom"
style="height: 227px; margin-left: 16px; display: flex; width: 100%;background-color: rgba(249, 252, 255, 1);">
<KFAPMiddleBar :chartData="{
allPlaceNames, incomeValueData, profitProportionData, costValueData, costCompletedData
allPlaceNames, incomeValueData, profitListData, costValueData, costCompletedData
}" />
</div>
</div>
@@ -51,11 +51,13 @@ export default {
if (!Array.isArray(this.middleChartData)) return [];
return this.middleChartData.map(item => item.name).filter(Boolean);
},
profitProportionData() {
profitListData() {
if (!Array.isArray(this.middleChartData)) return [];
return this.PlaceNames.map(place => {
const target = this.middleChartData.find(item => item.name === place);
return target?.profitProportion || 0;
console.log('target?.profit', target?.profit);
return target?.profit || 0;
});
},
incomeValueData() {