Commit d26a34b6 by guibin

任原设备利用率设备添加排序

parent b31afb4c
...@@ -2081,6 +2081,7 @@ ...@@ -2081,6 +2081,7 @@
equipment.utilization_rate = oeeRank ? oeeRank.utilization_rate : 0; equipment.utilization_rate = oeeRank ? oeeRank.utilization_rate : 0;
}); });
this.devices.sort((a, b) => b.utilization_rate - a.utilization_rate); this.devices.sort((a, b) => b.utilization_rate - a.utilization_rate);
this.selectedDevice = this.devices[0].id;
console.log("排序后的设备数据:", JSON.stringify(this.devices)); console.log("排序后的设备数据:", JSON.stringify(this.devices));
this.updateOEETrendChart(); this.updateOEETrendChart();
} }
......
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