管道基础大数据平台系统开发-【前端】-新系統界面
TreeWish
2023-02-27 27c5590aab433687c58dbf41e9271f71008834f0
src/views/Thematic/index.vue
@@ -2,9 +2,17 @@
  <div class="themaic">
    <mapsdk></mapsdk>
    <top class="title" ref="title"></top>
    <left class="mapleft" :style="{ width: leftWidth }"></left>
    <right class="mapright" :style="{ width: rightWidth }"></right>
    <bottom class="mapbottom"></bottom>
    <left
      class="mapleft"
      :style="{ width: leftWidth, left: leftTree && leftWidth == '20%' ? '-14px' : '0' }"
      ref="mapleft"
    ></left>
    <right
      class="mapright"
      :style="{ width: rightWidth }"
      ref="mapright"
    ></right>
    <bottom class="mapbottom" ref="mapbottom"></bottom>
  </div>
</template>
@@ -21,7 +29,9 @@
  data() {
    return {
      leftWidth: "20%",
      rightWidth: "20%",
      rightWidth: "22%",
      leftTree: false,
      currTree: false
    }
  },
  mounted() {},
@@ -31,16 +41,28 @@
    ChangeWidth(parm) {
      if (parm == "left") {
        if (this.leftWidth == "20%") {
          this.leftWidth = "36px"
          this.leftWidth = "8px"
        } else {
          this.leftWidth = "20%"
        }
      }
      // if (parm == "leftView" || parm == "leftTree") {
      //   this.leftWidth = "20%"
      //   this.rightWidth = "22%"
      // }
      // if (parm == "leftView") {
      //   this.leftTree = false
      // }
      // if (parm == "leftTree") {
      //   this.leftTree = true
      // }
      if (parm == "right") {
        if (this.rightWidth == "20%") {
          this.rightWidth = "36px"
        if (this.rightWidth == "22%") {
          this.rightWidth = "45px"
        } else {
          this.rightWidth = "20%"
          this.rightWidth = "22%"
        }
      }
    },
@@ -55,6 +77,7 @@
  position: absolute;
  display: flex;
}
.title {
  position: absolute;
  top: 0;
@@ -63,6 +86,7 @@
  width: 100%;
  z-index: 999;
}
.mapleft {
  position: absolute;
  top: 90px;
@@ -71,14 +95,16 @@
  height: calc(100% - 180px);
  z-index: 999;
}
.mapright {
  position: absolute;
  top: 90px;
  right: 0px;
  right: -20px;
  // width: 20%;
  height: calc(100% - 180px);
  z-index: 999;
}
.mapbottom {
  position: absolute;
  left: 0;
@@ -88,3 +114,26 @@
  z-index: 999;
}
</style>
<style lang="less">
.themaic {
  .aside-title {
    box-sizing: border-box;
    padding-left: 30px;
    // height: 27px;
    // line-height: 27px;
    // background: linear-gradient(0deg, #9cd2ff 0%, #ffffff 100%);
    font-size: 15px;
    font-family: YouSheBiaoTiHei, YouSheBiaoTiHei-Regular;
    // -webkit-background-clip: text;
    color: #fff;
    width: 100%;
    height: 30px;
    line-height: 30px;
    background: url(~@/assets/img/Screen/asideTitleBg.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
}
</style>