fix: 增加定时发送sceneId,避免被缓存过期 【设备监控和公众号】

dev
chuguofei 2023-07-17 19:05:33 +08:00
parent fd2aa588df
commit bf9e3f1957
4 changed files with 8 additions and 3 deletions

View File

@ -728,7 +728,7 @@
setInterval(function () { setInterval(function () {
client.publish('/sys/update/scene', $(".dashboard-menu li.active").attr("sid")); client.publish('/sys/update/scene', $(".dashboard-menu li.active").attr("sid"));
}, 1500); }, 1000 * 10);
}) })

View File

@ -130,7 +130,7 @@
<div> <div>
<div> <div>
<div style="padding-top: 15px;" type-option="search_table" <div style="padding-top: 15px;" type-option="search_table"
config-option=" submit:'#searchbtns',table:'#init-table'"> config-option=" submit:'#searchbtns',table:'#init-table', param:{ node_id:'$.node_id$',data_type:-1 ,sensor_device_id: '$.sensor_device_id$' , name: '$#eqName$' }">
<div class="flex items-center justify-between flex-row-reverse"> <div class="flex items-center justify-between flex-row-reverse">

View File

@ -388,10 +388,15 @@
}); });
} }
setInterval(function () {
client.publish('/sys/update/scene', scene_id);
}, 10 * 1000);
setInterval(function () { setInterval(function () {
for (var i = 1; i < paged; i++) { for (var i = 1; i < paged; i++) {
reflesh(i); reflesh(i);
} }
}, 60 * 1000); }, 60 * 1000);
// 点击激活 // 点击激活

View File

@ -279,7 +279,7 @@
setInterval(function () { setInterval(function () {
client.subscribe("/scene/update/" + that.scene_id); client.subscribe("/scene/update/" + that.scene_id);
client.publish('/sys/update/scene', that.scene_id + ''); client.publish('/sys/update/scene', that.scene_id + '');
}, 3000) }, 1000 * 10)
} }
}, created() { }, created() {