管道基础大数据平台系统开发-【前端】-新系統界面
TreeWish
2023-02-27 fb212223fdc2f692896da5483ba2b1a8aec22d5f
src/views/Thematic/index.vue
@@ -4,7 +4,7 @@
    <top class="title" ref="title"></top>
    <left
      class="mapleft"
      :style="{ width: leftWidth, left: leftTree && leftWidth == '20%' ? '-14px' : '0' }"
      :style="{ width: leftWidth, left: leftWidth == '22%' ? '-19px' : '0' }"
      ref="mapleft"
    ></left>
    <right
@@ -28,7 +28,7 @@
  components: { mapsdk, top, left, right, bottom },
  data() {
    return {
      leftWidth: "20%",
      leftWidth: "22%",
      rightWidth: "22%",
      leftTree: false,
      currTree: false
@@ -40,17 +40,17 @@
    //修改左侧宽度
    ChangeWidth(parm) {
      if (parm == "left") {
        if (this.leftWidth == "20%") {
        if (this.leftWidth == "22%") {
          this.leftWidth = "8px"
        } else {
          this.leftWidth = "20%"
          this.leftWidth = "22%"
        }
      }
      // if (parm == "leftView" || parm == "leftTree") {
      //   this.leftWidth = "20%"
      //   this.rightWidth = "22%"
      // }
      if (parm == "leftView" || parm == "leftTree") {
        this.leftWidth = "22%"
        this.rightWidth = "22%"
      }
      // if (parm == "leftView") {
      //   this.leftTree = false
      // }