Commit 77a2b753 by guibin

Merge branch 'master' of https://git.rokedata.com/dws/dwsproject

parents 2effd657 00cc86c9
......@@ -2098,7 +2098,18 @@
// 存储OEE排名数据
this.apiData.oeeRankData = oeeRankData;
if (this.devices && this.devices.length > 0) {
this.devices.forEach(equipment => {
oeeRank = this.apiData.oeeRankData.find(
(device) => device.code === equipment.id
);
equipment.utilization_rate = oeeRank ? oeeRank.utilization_rate : 0;
});
this.devices.sort((a, b) => b.utilization_rate - a.utilization_rate);
this.selectedDevice = this.devices[0].id;
console.log("排序后的设备数据:", JSON.stringify(this.devices));
this.updateOEETrendChart();
}
// 更新OEE排名图表
this.updateOEERankChart();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment