派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-03-31 afd4342bccb0e111fe4134fa7693f50b0b91fdbd
工具条调整
1个文件已修改
8 ■■■■■ 已修改文件
src/components/panel/ToolBoxPanel.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/panel/ToolBoxPanel.vue
@@ -290,7 +290,6 @@
      if (this.drawLayer == null) {
        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) {
@@ -307,9 +306,12 @@
      // 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
      this.isShow[index] = !this.isShow[index]
      this.isShow[index] ? (this.active = index) : (this.active = '')
    },
    choiceItem (itemT, indexT) {
      this.Selecd = indexT