From 2a99e1fa805bd78c7e10ab937e136ff627c3b271 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 08 Dec 2023 15:23:20 +0800
Subject: [PATCH] PC路网处理
---
src/components/leftNav/index.vue | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/components/leftNav/index.vue b/src/components/leftNav/index.vue
index 3ae6e6e..50e5c03 100644
--- a/src/components/leftNav/index.vue
+++ b/src/components/leftNav/index.vue
@@ -129,17 +129,19 @@
}
},
created () {
+ this.map2D.addLayer(this.leftNavBQ)
+ this.map2D.addLayer(this.leftNavDL)
+ this.map2D.addLayer(this.leftNavSJ)
+ this.map2D.addLayer(this.leftNavHD)
+ this.map2D.addLayer(this.leftNavTC)
+ this.map2D.addLayer(this.leftNavCR)
},
mounted () {
const that = this
+
// 初始化新增标签图层
that.$EventBus.$on('closeTagLayer', () => {
- this.map2D.addLayer(this.leftNavBQ)
- this.map2D.addLayer(this.leftNavDL)
- this.map2D.addLayer(this.leftNavSJ)
- this.map2D.addLayer(this.leftNavHD)
- this.map2D.addLayer(this.leftNavTC)
- this.map2D.addLayer(this.leftNavCR)
+
that.leftNavData.forEach(item => {
if (item.layer && item.flag == true) {
@@ -274,8 +276,8 @@
this.leftNavData[0].flag = true
this.leftNavData[0].img = this.leftNavData[0].checked
- this.leftNavData[5].flag = true
- this.leftNavData[5].img = this.leftNavData[5].checked
+ this.leftNavData[4].flag = true
+ this.leftNavData[4].img = this.leftNavData[4].checked
this.leftNavBQ.setVisible(true)
this.leftNavCR.setVisible(true)
--
Gitblit v1.9.3