diff --git a/ruoyi-admin/src/main/resources/static/js/Iot-ui/sensorTableList.js b/ruoyi-admin/src/main/resources/static/js/Iot-ui/sensorTableList.js index 575ec60..84ffcda 100644 --- a/ruoyi-admin/src/main/resources/static/js/Iot-ui/sensorTableList.js +++ b/ruoyi-admin/src/main/resources/static/js/Iot-ui/sensorTableList.js @@ -158,11 +158,12 @@ const onSearchByCollectTime = function (obj) { setTimeout(function () { var storeId = document.getElementById('table'); var rowsLength = storeId.rows.length; - var key = obj.value; + var [startTime,endTime] = obj.value.split(' - '); var searchCol = storeId.rows.item(0).cells.length-3; for (var i = 1; i < rowsLength; i++) { var searchText = storeId.rows[i].cells[searchCol].innerHTML; - if (searchText.match(key)) { + console.log(searchText) + if ((new Date(searchText).getTime() >= new Date(startTime).getTime()) && (new Date(searchText).getTime() <= new Date(endTime).getTime())) { storeId.rows[i].style.display = ''; } else { storeId.rows[i].style.display = 'none'; @@ -173,4 +174,4 @@ const onSearchByCollectTime = function (obj) { const historyButton = function(id) { location.href = '/record/recordSensorData/getPage?id='+id; -} \ No newline at end of file +} diff --git a/ruoyi-admin/src/main/resources/templates/iot-ui/sensorSummary.html b/ruoyi-admin/src/main/resources/templates/iot-ui/sensorSummary.html index 6a34098..5f340b2 100644 --- a/ruoyi-admin/src/main/resources/templates/iot-ui/sensorSummary.html +++ b/ruoyi-admin/src/main/resources/templates/iot-ui/sensorSummary.html @@ -1,49 +1,52 @@ - + - - 传感器汇总 - - - - - - + + 传感器汇总 + + + + + + -
-
+
@@ -56,19 +59,20 @@ diff --git a/ruoyi-admin/src/main/resources/templates/record/recordAlarm/add.html b/ruoyi-admin/src/main/resources/templates/record/recordAlarm/add.html index 76ec615..cc02607 100644 --- a/ruoyi-admin/src/main/resources/templates/record/recordAlarm/add.html +++ b/ruoyi-admin/src/main/resources/templates/record/recordAlarm/add.html @@ -6,37 +6,37 @@
-
+
-
+
-
+
-
+
-
+
-
+
@@ -58,4 +58,4 @@ } - \ No newline at end of file + diff --git a/ruoyi-admin/src/main/resources/templates/record/recordAlarm/recordAlarm.html b/ruoyi-admin/src/main/resources/templates/record/recordAlarm/recordAlarm.html index c2e7b71..8e295d7 100644 --- a/ruoyi-admin/src/main/resources/templates/record/recordAlarm/recordAlarm.html +++ b/ruoyi-admin/src/main/resources/templates/record/recordAlarm/recordAlarm.html @@ -276,4 +276,4 @@ } - \ No newline at end of file + diff --git a/ruoyi-admin/src/main/resources/templates/record/recordSensorData/recordSensorData.html b/ruoyi-admin/src/main/resources/templates/record/recordSensorData/recordSensorData.html index 659ed31..52034bb 100644 --- a/ruoyi-admin/src/main/resources/templates/record/recordSensorData/recordSensorData.html +++ b/ruoyi-admin/src/main/resources/templates/record/recordSensorData/recordSensorData.html @@ -1,217 +1,220 @@ - + - +
-
-
- -
- -
- +
+
+
+
+
+ 返回 +
+
+
+
-
-
-
+
+
+
- - + + - \ No newline at end of file + diff --git a/ruoyi-admin/src/main/resources/templates/record/recordSensorData/temperatureTrend.html b/ruoyi-admin/src/main/resources/templates/record/recordSensorData/temperatureTrend.html index 4af8e7f..7342c3e 100644 --- a/ruoyi-admin/src/main/resources/templates/record/recordSensorData/temperatureTrend.html +++ b/ruoyi-admin/src/main/resources/templates/record/recordSensorData/temperatureTrend.html @@ -405,4 +405,4 @@ }); - \ No newline at end of file +