From d0303aff8019857b9a5f4b785110fb7634403c20 Mon Sep 17 00:00:00 2001 From: chenzeping <ChenZeping02609@163.com> Date: 星期四, 01 四月 2021 16:28:51 +0800 Subject: [PATCH] 固废面板查询 --- src/components/panel/ToolBoxPanel.vue | 25 +++++++------------------ 1 files changed, 7 insertions(+), 18 deletions(-) diff --git a/src/components/panel/ToolBoxPanel.vue b/src/components/panel/ToolBoxPanel.vue index 62a5442..79b4693 100644 --- a/src/components/panel/ToolBoxPanel.vue +++ b/src/components/panel/ToolBoxPanel.vue @@ -1,5 +1,5 @@ <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"> @@ -101,7 +101,6 @@ currentBaseMapCode: 'tianditu_img', basemapList: [], selectGroup: false, - toolBoxPanelVisible: false, drawLayer: null, drawLayerArray: [], map: null, @@ -291,25 +290,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 -- Gitblit v1.8.0