diff --git a/src/main/webapp/WEB-INF/oss/iot/monitor.jsp b/src/main/webapp/WEB-INF/oss/iot/monitor.jsp index 16c9f70..73ff9bf 100644 --- a/src/main/webapp/WEB-INF/oss/iot/monitor.jsp +++ b/src/main/webapp/WEB-INF/oss/iot/monitor.jsp @@ -728,7 +728,7 @@ setInterval(function () { client.publish('/sys/update/scene', $(".dashboard-menu li.active").attr("sid")); - }, 1500); + }, 1000 * 10); }) diff --git a/src/main/webapp/WEB-INF/oss/iot/sensors_manger.jsp b/src/main/webapp/WEB-INF/oss/iot/sensors_manger.jsp index 13fbae1..0669db5 100644 --- a/src/main/webapp/WEB-INF/oss/iot/sensors_manger.jsp +++ b/src/main/webapp/WEB-INF/oss/iot/sensors_manger.jsp @@ -130,7 +130,7 @@
+ config-option=" submit:'#searchbtns',table:'#init-table', param:{ node_id:'$.node_id$',data_type:-1 ,sensor_device_id: '$.sensor_device_id$' , name: '$#eqName$' }">
diff --git a/src/main/webapp/WEB-INF/wechat/iot/device.jsp b/src/main/webapp/WEB-INF/wechat/iot/device.jsp index 90763c6..86710bf 100644 --- a/src/main/webapp/WEB-INF/wechat/iot/device.jsp +++ b/src/main/webapp/WEB-INF/wechat/iot/device.jsp @@ -388,10 +388,15 @@ }); } + setInterval(function () { + client.publish('/sys/update/scene', scene_id); + }, 10 * 1000); + setInterval(function () { for (var i = 1; i < paged; i++) { reflesh(i); } + }, 60 * 1000); // 点击激活 diff --git a/src/main/webapp/page/visual/show.html b/src/main/webapp/page/visual/show.html index ad36d25..9dd96a4 100644 --- a/src/main/webapp/page/visual/show.html +++ b/src/main/webapp/page/visual/show.html @@ -279,7 +279,7 @@ setInterval(function () { client.subscribe("/scene/update/" + that.scene_id); client.publish('/sys/update/scene', that.scene_id + ''); - }, 3000) + }, 1000 * 10) } }, created() {