Sfoglia il codice sorgente

修改弹框控制

Version1.0
YF-yuan 3 anni fa
parent
commit
4c4b892a43
1 ha cambiato i file con 24 aggiunte e 12 eliminazioni
  1. +24
    -12
      src/views/Home.vue

+ 24
- 12
src/views/Home.vue Vedi File

@@ -449,11 +449,7 @@ export default {
});
},
mounted() {

// 点击

// 排口

// 排口数据
let adrainage = new VectorSource({});
axios
.get(
@@ -772,9 +768,26 @@ export default {
}
});

// this.map("blur",()=>{
// 点击非地图区域控制弹框消失
let meunTab = document.getElementsId('rightSide')
let mapTab = document.getElementById('changeMap')
meunTab.addEventListener('click',() => {
this.select.getFeatures().clear();
this.map.removeOverlay(this.overlay)
this.select.getFeatures().clear();
this.map.removeOverlay(this.overlayPlace)
this.select.getFeatures().clear();
this.map.removeOverlay(this.overlayOutlet)
})
mapTab.addEventListener('click',()=>{
this.select.getFeatures().clear();
this.map.removeOverlay(this.overlay)
this.select.getFeatures().clear();
this.map.removeOverlay(this.overlayPlace)
this.select.getFeatures().clear();
this.map.removeOverlay(this.overlayOutlet)
})

// })

},
methods: {
@@ -791,9 +804,6 @@ export default {
this.isOutlet = false
this.adrainageLayer.setVisible(false);
}
// this.isPoint = false;
// this.isPlace = false;

}
// 1-2 采样点显示
if ($index == 1) {
@@ -979,7 +989,7 @@ export default {
},
// 自定义事件关闭弹出框
closePointPopup() { // 关闭采样点弹出框
this.select.getFeatures().clear();
this.select.getFeatures().clear();
this.map.removeOverlay(this.overlay)
},
closePlacePopup() {
@@ -1153,8 +1163,10 @@ body {
text-align: start;
}
.refcheck {
width: 100%;
display: block;
height: 100%;
margin-left: 8px;
line-height: 50px;
}
/* 数据统计弹框 */
.chart {

Loading…
Annulla
Salva