diff --git a/ruoyi-admin/src/main/resources/static/js/Iot-ui/deviceMonitor.js b/ruoyi-admin/src/main/resources/static/js/Iot-ui/deviceMonitor.js index 5d560d4..43468ed 100644 --- a/ruoyi-admin/src/main/resources/static/js/Iot-ui/deviceMonitor.js +++ b/ruoyi-admin/src/main/resources/static/js/Iot-ui/deviceMonitor.js @@ -49,14 +49,15 @@ const createDeviceModule = function (sensor,params) { case "temperature": html += `
${sensor.sensorName}
`; - html += '
'; + html += '
'; for (let i=0; i${params[i].paramText+":"+(sensor[params[i].paramTitle] == null ? "-" : sensor[params[i].paramTitle])}
`; } html += '
'; - html += '
'; + html += '
'; //html+=`

${sensor['sensorStatus'] == null ? "-" : sensorStatus(sensor['sensorStatus'])}

`; - html+=`

${sensor['collectTime'] == null ? "-" : collectTime(sensor['collectTime'])}

`; + html+=`

${sensor['collectTime'] == null ? "-" : collectTime(sensor['collectTime'])}

`; + html += '' html += '
'; $("#sensor-card-group").append(html);