|
|
|
@ -5,29 +5,7 @@ $(() => {
|
|
|
|
|
OEEStatistics(result, document.getElementById("OEEStatistics"));
|
|
|
|
|
});
|
|
|
|
|
setInterval(() => {
|
|
|
|
|
let result = [
|
|
|
|
|
{
|
|
|
|
|
"createTime": 1654729200000,
|
|
|
|
|
"yValue": "07",
|
|
|
|
|
"xValue": Math.random() * 3
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"createTime": 1654732800000,
|
|
|
|
|
"yValue": "08",
|
|
|
|
|
"xValue": Math.random() * 3
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"createTime": 1654736400000,
|
|
|
|
|
"yValue": "09",
|
|
|
|
|
"xValue": Math.random() * 3
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"createTime": 1654740000000,
|
|
|
|
|
"yValue": "10",
|
|
|
|
|
"xValue": Math.random() * 3
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
OEEStatistics(result, document.getElementById("OEEStatistics"));
|
|
|
|
|
// OEEStatistics(result, document.getElementById("OEEStatistics"));
|
|
|
|
|
}, 1000);
|
|
|
|
|
|
|
|
|
|
//设备故障排名
|
|
|
|
@ -107,13 +85,13 @@ const dataInformationFunction = (statusArray) => {
|
|
|
|
|
console.log(res);
|
|
|
|
|
let info = `<table style="position: absolute;top: 8%;width: 100%;height:100%;">
|
|
|
|
|
<tr style="width: 100%; height: 50%;">
|
|
|
|
|
<td style="border:0px solid red;text-align:center;width: 50%;"><i ${res.deviceStatus == 1 ? 'style="color:rgb(107, 253, 110);"' : 'style="color: rgb(255, 105, 106);"'} class="fa-regular ${res.deviceStatus == 1 ? "fa-circle-check" : "fa-circle-xmark"}"></i>${res.deviceStatus == 1 ? `<span style="color:rgb(107, 253, 110);margin-left: 10px">运行正常</span>` : `<span style="color:rgb(255, 105, 106);margin-left: 10px">运行异常</span>`}</td>
|
|
|
|
|
<td style="border:0px solid red;text-align:center;width: 50%;"><i ${res.deviceStatus == 1 ? 'style="color:rgb(107, 253, 110);"' : 'style="color: rgb(255, 105, 106);"'} class="fa-regular ${res.deviceStatus == 1 ? "fa-circle-check" : "fa-circle-xmark"}"></i>${res.deviceStatus == 1 ? `<span style="color:rgb(107, 253, 110);margin-left: 10px">正常</span>` : `<span style="color:rgb(255, 105, 106);margin-left: 10px">异常</span>`}</td>
|
|
|
|
|
<td style="border:0px solid red;text-align:center;width: 50%;color: #FFEF76;"> ${res.devicePower}kW</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr style="width: 100%; height: 50%;">
|
|
|
|
|
|
|
|
|
|
<td style="border:0px solid red;text-align:center;width: 50%;color: #CEEFFE;"> ${res.deviceEnergy}kW·h</td>
|
|
|
|
|
<td style="border:0px solid red;text-align:center;width: 50%;color: #red;">2</td>
|
|
|
|
|
<td style="border:0px solid red;text-align:center;width: 50%;color: red;">2</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>`;
|
|
|
|
|
|
|
|
|
|