From e5bf15f4a20a7b3251f5b096a4c33dfc71f8b77d Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Fri, 12 Jan 2024 09:12:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8008=E5=81=87=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../realTimeMonitor/components/siderBar.vue | 40 ++++++++++++++++++- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/src/views/realTimeMonitor/components/siderBar.vue b/src/views/realTimeMonitor/components/siderBar.vue index 11c56c1..af74cf9 100644 --- a/src/views/realTimeMonitor/components/siderBar.vue +++ b/src/views/realTimeMonitor/components/siderBar.vue @@ -372,8 +372,44 @@ export default { } else { this.collectFlag = true; } - this.currentData = data; - // this.scrollView(); + if (data.id == "13009") { + // { + // "id": 13009, + // "towerid": 3980, + // "cmdid": "XYIGQ10C231000008", + // "equipname": "", + // "name": "XYIGQ10C231000008", + // "address": null, + // "protocol": 65285, + // "displayname": null, + // "model": null, + // "onlinestatus": 1, + // "hasPan": 0, + // "phase": "", + // "equipmentType": "", + // "isfavor": 0 + // } + this.currentData = { + id: 13276, + towerid: 3981, + cmdid: "XYIGQ10C231000008", + equipname: "", + name: "XYIGQ10C231000008", + address: null, + protocol: 65285, + displayname: null, + model: null, + onlinestatus: 1, + hasPan: 0, + phase: "", + equipmentType: "", + isfavor: 0, + }; + } else { + this.currentData = data; + } + + //this.scrollView(); this.$store.commit("currentData", this.currentData); //将currentData保存在vuex中 this.$store.commit("termId", this.currentData.id); //将currentData保存在vuex中 this.$store.commit("protocol", this.currentData.protocol); //将currentData保存在vuex中