|
|
@ -84,11 +84,11 @@ const dataInformationFunction = (statusArray) => {
|
|
|
|
let info = `<table style="position: absolute;top: 8%;width: 100%;height:100%;">
|
|
|
|
let info = `<table style="position: absolute;top: 8%;width: 100%;height:100%;">
|
|
|
|
<tr style="width: 100%; height: 50%;">
|
|
|
|
<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;"> ${test(res.devicePower,1000)} kW</td>
|
|
|
|
<td style="border:0px solid red;text-align:center;width: 50%;color: #FFEF76;"> ${res.devicePower} kW</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr style="width: 100%; height: 50%;">
|
|
|
|
<tr style="width: 100%; height: 50%;">
|
|
|
|
|
|
|
|
|
|
|
|
<td style="border:0px solid red;text-align:center;width: 50%;color: #59B2F6;"> ${test(res.deviceEnergy,100)}kW·h</td>
|
|
|
|
<td style="border:0px solid red;text-align:center;width: 50%;color: #59B2F6;"> ${res.deviceEnergy}kW·h</td>
|
|
|
|
<td style="border:0px solid red;text-align:center;width: 50%;color: red;">${res.count}</td>
|
|
|
|
<td style="border:0px solid red;text-align:center;width: 50%;color: red;">${res.count}</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</table>`;
|
|
|
|
</table>`;
|
|
|
|