管道基础大数据平台系统开发-【前端】-新系統界面
src/components/Screen/ProjectTree.vue
@@ -18,7 +18,6 @@
        :data="treeData"
        show-checkbox
        node-key="id"
        default-expand-all
        :props="defaultProps"
        ref="tree"
        class="el-tree"
@@ -138,6 +137,7 @@
        std.push(3);
        this.$refs.tree.setCheckedKeys(std)
      }
      this.getWMSLayer();
    },
    async addImageLayer() {
@@ -165,15 +165,9 @@
          return str;
        }
      })
      this.$refs.tree.setCheckedKeys(checkKey)
      var res = this.setTreeData(val);
      this.treeData = res
      this.setShowImageLayer(value)
    },
    setTreeData(source) {
@@ -215,7 +209,6 @@
      // }
      if (data.type == 1) {
        this.childOption = [];
        this.getchilds(data);
@@ -241,13 +234,13 @@
          }
        }
        this.setShowWMSLayer(listWMS);
        this.getWMSLayer();
        this.setShowTilesetLayer(listTileset);
        this.setShowMptLayer(listMpt);
        this.setShowTMSLayer(listTMS);
      } else if (data.type == 2) {
        if (data.serveType == "WMS") {
          this.setShowWMSLayer([data]);
          this.getWMSLayer();
        } else if (data.serveType == "Tileset") {
          this.setShowTilesetLayer([data]);
        } else if (data.serveType == "Mpt") {
@@ -494,6 +487,7 @@
    setShowWMSLayer(res) {
      var url = [];
      this.setClearWmsLayer();
      for (var i in res) {
        if (res[i].url) {
          url.push(res[i].url)
@@ -601,6 +595,12 @@
    margin: 10px;
    height: 85%;
    overflow-y: auto;
    /deep/ .tree-label {
      color: #eee !important;
    }
    /deep/ .el-tree {
      color: #eee !important;
    }
  }
  .changeBaseLayer {
    width: 100%;