From e656881e2d99331eeccfdcbdb85e72525d01e0fa Mon Sep 17 00:00:00 2001 From: wenjy Date: Wed, 13 Apr 2022 10:41:51 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E8=AE=BE=E5=A4=87=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E6=B7=BB=E5=8A=A0=E5=BC=B9=E5=87=BA=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E6=9B=B2=E7=BA=BF=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/js/Iot-ui/deviceMonitor.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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);