管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-02-23 1496203eb8194c26ff9350e4673927565df41705
src/views/Tools/maplayer.vue
@@ -5,7 +5,7 @@
      v-for="(data, index) in PopupData"
      :key="data.id"
      title="图层管理"
      :maxHeight="data.maxHeight || '500px'"
      :maxHeight="data.maxHeight || '400px'"
      @close="close(data.id)"
      :left="data.left || left"
      :top="data.top || top + index * 42 + 'px'"
@@ -32,7 +32,7 @@
    return {
      // 弹窗数据
      PopupData: ['maplayer'],
      left: 'calc(100% - 330px)',
      left: 'calc(100% - 370px)',
      top: 10,
    };
  },
@@ -48,12 +48,15 @@
    },
    // 关闭弹窗
    close(id) {
      this.$bus.$emit("treeDataCopy","true");
      let index = this.PopupData.findIndex((item) => {
        return item.id === id;
      });
      let data = this.PopupData.splice(index, 1)[0];
      data.close && data.close();
    this.$store.state.layerMnage = false;
      this.$store.state.layerMnage = false;
    },
    // 打开弹窗
    open(title, value, style = {}) {