From bc1bacba044c4dd3d3e0cd5470c6188cd5e2bc12 Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期三, 07 四月 2021 11:31:10 +0800
Subject: [PATCH] 附属设施、环保设施 独立显示

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

diff --git a/src/components/panel/ToolBoxPanel.vue b/src/components/panel/ToolBoxPanel.vue
index 62a5442..3808d49 100644
--- a/src/components/panel/ToolBoxPanel.vue
+++ b/src/components/panel/ToolBoxPanel.vue
@@ -1,10 +1,9 @@
 <template>
-  <div class="left-top-toolbox-panel" v-if="toolBoxPanelVisible">
+  <div class="left-top-toolbox-panel">
     <div class="specific-tools">
-      <el-button :class="selectGroup === true ?'active-button':''" class="el-button-choice"
-                 @mouseover.enter.native="changeSelectMouse">
-        <img src="@assets/images/map-pages/icon/toolbox/Selecd/tool.png" alt=""/>
-        <span class="span-default">宸ュ叿</span>
+      <el-button :class="selectGroup === true ?'active-button':''" class="el-button-choice"   @mouseover.enter.native="changeSelectMouse">
+          <img src="@assets/images/map-pages/icon/toolbox/Selecd/tool.png" alt="" class="icon" />
+          <span class="span-default">宸ュ叿</span>
       </el-button>
       <transition name="animationChange">
         <el-row v-show="selectGroup" class="specific-tools-group">
@@ -101,7 +100,6 @@
       currentBaseMapCode: 'tianditu_img',
       basemapList: [],
       selectGroup: false,
-      toolBoxPanelVisible: false,
       drawLayer: null,
       drawLayerArray: [],
       map: null,
@@ -291,25 +289,15 @@
         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]
+      this.isShow[index] ? (this.active = index) : (this.active = '')
     },
     choiceItem (itemT, indexT) {
       this.Selecd = indexT
@@ -433,8 +421,8 @@
 
 .left-top-toolbox-panel {
   position: absolute;
-  left: 0;
-  top: 15px;
+  left: 0.14583rem;
+  top: 0.11979rem;
   z-index: 999;
 
   .specific-tools {
@@ -456,22 +444,18 @@
       .base-map-img:hover {
         cursor: pointer;
       }
-
       img {
         width: 22px;
         height: 22px;
       }
-
       .span-default {
         display: block;
-        color: @color-shadow;
-        font-size: 11px;
+        font-size: 10px;
       }
-
       span {
         display: block;
-        color: @color-over;
-        font-size: 11px;
+        font-size: 10px;
+        color: #0B89B5;
       }
     }
 
@@ -479,7 +463,8 @@
       left: 500px;
       z-index: 999;
       padding: 0;
-      margin: 0 0.015rem;
+      margin: 0;
+      margin-right:0.015rem;
       width: 45px;
       height: 45px;
       background: @background-color;

--
Gitblit v1.8.0