From a82b831b8b2b96dfa5791808f1207500e16697cf Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期三, 04 一月 2023 10:39:40 +0800 Subject: [PATCH] 优化设备状态保持,自动记录心跳间隔,三次心跳失败则设备离线,不在使用设备有效期字段作为唯一判断标准,提高容错能力和稳定性。 --- web_src/src/components/dialog/chooseChannelForCatalog.vue | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/web_src/src/components/dialog/chooseChannelForCatalog.vue b/web_src/src/components/dialog/chooseChannelForCatalog.vue index 4303a2f..c634b77 100644 --- a/web_src/src/components/dialog/chooseChannelForCatalog.vue +++ b/web_src/src/components/dialog/chooseChannelForCatalog.vue @@ -38,7 +38,7 @@ import catalogEdit from './catalogEdit.vue' export default { name: 'chooseChannelForCatalog', - props: ['platformId', 'platformName', 'defaultCatalogId', 'catalogIdChange', 'treeType'], + props: ['platformId', 'platformDeviceId', 'platformName', 'defaultCatalogId', 'catalogIdChange', 'treeType'], created() { this.chooseId = this.defaultCatalogId; this.defaultCatalogIdSign = this.defaultCatalogId; @@ -171,6 +171,7 @@ }); }, loadNode: function(node, resolve){ + console.log("this.platformDeviceId锛� " + this.platformDeviceId) if (node.level === 0) { resolve([ { @@ -179,7 +180,7 @@ type: -1 },{ name: this.platformName, - id: this.platformId, + id: this.platformDeviceId, type: 0 } ]); @@ -298,6 +299,8 @@ return false; }, nodeClickHandler: function (data, node, tree){ + console.log(data) + console.log(node) this.chooseId = data.id; this.chooseName = data.name; if (this.catalogIdChange)this.catalogIdChange(this.chooseId, this.chooseName); -- Gitblit v1.8.0