lxl
2022-10-27 9ce29c536ba2a636416c618761985e2b9a711ee6
src/views/Synthesis/coverage.vue
@@ -2,7 +2,7 @@
  <div id="coverage" class="coverage">
    <ul>
      <li
style="margin-left: 10px; width: 130px"
        style="margin-left: 10px; width: 130px"
        @click="checkCourvage(item)"
        v-for="item in itemsOne"
      >
@@ -43,14 +43,28 @@
      ],
    };
  },
  created() {
    var cover_Id = this.$store.state.syntiesis.menu;
    var cover_perms = this.$store.state.permsEntity;
    for (var i = 0; i < cover_perms.length; i++) {
      if (cover_perms[i].pid == cover_Id) {
        this.showCoverMenu(cover_perms[i]);
      }
    }
  },
  methods: {
    showCoverMenu(res) {
      if (res.cnName != '图层') return;
      console.log('图层', res.tag);
    },
    checkCourvage(res) {
      var res_val = {
        url: '',
        name: res.name,
      };
      this.$bus.$emit('changetool', res_val);
      switch (res.id) {
        case '1': //图层管理
          // 打开工程树弹窗
          break;
      }
    },
  },
};
@@ -88,7 +102,7 @@
  background: url('../../assets/img/synthesis/图层 35.png') no-repeat center;
}
.backimge {
    width: 30px;
  width: 30px;
  height: 30px;
  position: absolute;
  background-size: 100% 100%;