| | |
| | | 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'" |
| | |
| | | return { |
| | | // 弹窗数据 |
| | | PopupData: ['maplayer'], |
| | | left: 'calc(100% - 330px)', |
| | | left: 'calc(100% - 370px)', |
| | | top: 10, |
| | | }; |
| | | }, |
| | |
| | | }, |
| | | // 关闭弹窗 |
| | | 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; |
| | | |
| | | |
| | | }, |
| | | // 打开弹窗 |
| | | open(title, value, style = {}) { |