From f73abf24adac5812130a8cdae454d9d5e49638be Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Wed, 24 Jan 2024 11:05:01 +0800 Subject: [PATCH] fix:疾控中心初始定制化 --- src/components/Wind/Map.vue | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/components/Wind/Map.vue b/src/components/Wind/Map.vue index 68813ac..d69e54c 100644 --- a/src/components/Wind/Map.vue +++ b/src/components/Wind/Map.vue @@ -554,6 +554,9 @@ window.deviceDetail = this.deviceDetail }, created () { + if (this.$store.state.orgId === 72) { + this.changeColor = 1 + } const newLL = this.bd09togcj02(this.jingduNew, this.weiduNew) // ��������������������������������� this.jingduNew = newLL[1] this.weiduNew = newLL[0] @@ -1491,13 +1494,16 @@ this.indexsLaber = 0 this.clickmac = marker.inforData.mac this.childerItem = marker.inforData + console.log('this.defaultData', this.defaultData) this.defaultData.forEach(item => { - item.devices.forEach((dev, index) => { - if (dev.mac === marker.inforData.mac) { - this.farterItem = item - this.indexsLaber = index - } - }) + if (item.devices) { + item.devices.forEach((dev, index) => { + if (dev.mac === marker.inforData.mac) { + this.farterItem = item + this.indexsLaber = index + } + }) + } }) this.$request({ url: '/historyFiveMinutely/queryFiveDataByMac', -- Gitblit v1.8.0