From 55e6c16ceea8b2f2f6d7eb797e05928fb3f92f3b Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期三, 31 三月 2021 18:57:04 +0800
Subject: [PATCH] 工具栏问题修改

---
 src/components/panel/ToolBoxPanel.vue |   22 +++++-----------------
 1 files changed, 5 insertions(+), 17 deletions(-)

diff --git a/src/components/panel/ToolBoxPanel.vue b/src/components/panel/ToolBoxPanel.vue
index 1e47999..2a9bf26 100644
--- a/src/components/panel/ToolBoxPanel.vue
+++ b/src/components/panel/ToolBoxPanel.vue
@@ -297,25 +297,13 @@
         this.drawLayer = this.L.layerGroup().addTo(this.map)
       }
       this.active = index
-      // this.isShow[index] = !this.isShow[index]
-      // this.isShow[index - 1] = !this.isShow[index - 1]
-      // if (this.checkbutton === index) {
-      //   this.checked = !this.checked
-      //   this.Selecd = -1
-      // } else {
-      //   if (this.checkbutton === -1) {
-      //     this.checked = !this.checked
-      //   } else {
-      //     this.checked = true
-      //   }
-      // }
-      // this.checkbutton = index
-      // console.log(this.isShow[index - 1])
-      console.log(this.basemapList)
       for (let i = 0; i < this.isShow.length; i++) {
-        this.isShow[i] = false
+        if (i !== index) {
+          this.isShow[i] = false
+        }
       }
-      this.isShow[index] = true
+      // debugger
+      this.isShow[index] = !this.isShow[index]
     },
     choiceItem (itemT, indexT) {
       this.Selecd = indexT

--
Gitblit v1.8.0