This commit is contained in:
Teo
2025-09-12 23:32:56 +08:00
parent 8530460757
commit fd56b48ebe

View File

@ -122,22 +122,12 @@ const getData = async () => {
// };
// });
<<<<<<< HEAD
// 计算每个项目的百分比
processedData.forEach((item) => {
item.percentage = totalCapacity > 0 ? ((item.value / totalCapacity) * 100).toFixed(2) : '0%';
});
processedDataList.value = processedData;
console.log('🚀 ~ getData ~ processedDataList.value :', processedDataList.value);
initPieChart();
=======
// // 计算每个项目的百分比
// processedData.forEach((item) => {
// item.percentage = totalCapacity > 0 ? ((item.value / totalCapacity) * 100).toFixed(2) : '0%';
// });
// processedDataList.value = processedData;
// initPieChart();
>>>>>>> l-origin/ljx
}
};
// 初始化饼图