|
|
@@ -62,7 +62,7 @@ import changeMap from './changeMap.vue';
|
|
|
import legendImg from './legend.vue';
|
|
|
// 基础测站点
|
|
|
import { useBasicStore } from '/@/store/modules/basicData';
|
|
|
-import { rainMap, rainMapfq, wdMap, gcSite, getStDetailInfo, changeHeight } from '/@/api/swHome/index';
|
|
|
+import { rainMap, rainMapfq, wdMap, gcSite, getStDetailInfo, changeHeight,getImportPoint } from '/@/api/swHome/index';
|
|
|
import fenquData from './fenqu.json';
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
|
import './range.js'
|
|
|
@@ -121,6 +121,7 @@ export default defineComponent({
|
|
|
qixiangData.value = [...basicStore.getStDetailInfo.st_wea_general, ...basicStore.getStDetailInfo.st_wea_standard];
|
|
|
// 关闭基础图层
|
|
|
if (val.flag) {
|
|
|
+ window.clearImpoint()
|
|
|
map.showOverlay('shuiwenzhan*', false);
|
|
|
map.showOverlay('shuiweizhan*', false);
|
|
|
map.showOverlay('yuliangzhan*', false);
|
|
|
@@ -226,6 +227,9 @@ export default defineComponent({
|
|
|
});
|
|
|
}
|
|
|
} else {
|
|
|
+ // 获取重要测站点
|
|
|
+ window.impointFlag=true
|
|
|
+ window.getImportSites()
|
|
|
map.showOverlay('shuiwenzhan*', true);
|
|
|
map.showOverlay('shuiweizhan*', true);
|
|
|
map.showOverlay('yuliangzhan*', true);
|
|
|
@@ -236,6 +240,7 @@ export default defineComponent({
|
|
|
map.showOverlay('fqPolygon', true);
|
|
|
map.showLayer2D('sx', true);
|
|
|
// map.showLayer2D('yuliangfenqu', true);
|
|
|
+
|
|
|
}
|
|
|
};
|
|
|
const detailInfo = ref([]);
|
|
|
@@ -543,11 +548,14 @@ export default defineComponent({
|
|
|
},
|
|
|
|
|
|
mounted() {
|
|
|
+ window.impointFlag=true
|
|
|
const geologicalStore = useGeologicalStore();
|
|
|
const monitorDevicesStore = useMonitorDevicesStore();
|
|
|
this.init(() => { });
|
|
|
|
|
|
setTimeout(() => {
|
|
|
+
|
|
|
+
|
|
|
this.initWinWay();
|
|
|
const basicStore = useBasicStore();
|
|
|
// 测站信息
|
|
|
@@ -605,6 +613,30 @@ export default defineComponent({
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ // 获取重要测站点
|
|
|
+ getImportSites(){
|
|
|
+ getImportPoint().then(res=>{
|
|
|
+ console.log(this.stDetailArrStore,366)
|
|
|
+ if(res.code==200&&res.data){
|
|
|
+ window.impoint=[]
|
|
|
+ res.data.forEach(i=>{
|
|
|
+ this.stDetailArrStore.forEach(j=>{
|
|
|
+ if(i.stcd==j.stcd){
|
|
|
+ let markerWindow= new TFMap.HTMLElementOverLay(
|
|
|
+ { x:Number(i.dlon) , y: Number(i.dlat),z:Number(j.high) },
|
|
|
+ TFMapUitl.impotPointDom(i)
|
|
|
+ ).init().setOff(-230, -130)
|
|
|
+ markerWindow.setId('imp&' + i.stcd);
|
|
|
+ markerWindow.setClassify('impoint_marker*')
|
|
|
+ window.impoint.push(markerWindow)
|
|
|
+ map.addOverlay(markerWindow)
|
|
|
+ console.log(markerWindow,7737)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
getMapConfig(geologicalStore) {
|
|
|
geologicalStore
|
|
|
.MapConfig({
|
|
|
@@ -728,6 +760,8 @@ export default defineComponent({
|
|
|
});
|
|
|
// 加载测站
|
|
|
this.setSTMarker(this.stDetailArrStore);
|
|
|
+ // 获取重要测站点
|
|
|
+ window.getImportSites()
|
|
|
});
|
|
|
},
|
|
|
|
|
|
@@ -1625,6 +1659,7 @@ export default defineComponent({
|
|
|
var i = e.graphic.overlay.info
|
|
|
map.openInfoWindowHtml(TFMapUitl.gcdMarkerDom(i), { position: [i.lng, i.lat, i.high] }, () => TFMapUitl.clearPointLocation_list(map));
|
|
|
map.popup.setOffset(-185, 60);
|
|
|
+ window.clearImpoint()
|
|
|
});
|
|
|
map.addOverlay(marker);
|
|
|
}
|
|
|
@@ -1648,6 +1683,7 @@ export default defineComponent({
|
|
|
var i = e.graphic.overlay.info
|
|
|
map.openInfoWindowHtml(TFMapUitl.gcdMarkerDom(i), { position: [i.lng, i.lat, i.high] }, () => TFMapUitl.clearPointLocation_list(map));
|
|
|
map.popup.setOffset(-185, 60);
|
|
|
+ window.clearImpoint()
|
|
|
});
|
|
|
map.addOverlay(marker);
|
|
|
}
|
|
|
@@ -1696,6 +1732,7 @@ export default defineComponent({
|
|
|
var i = e.graphic.overlay.info
|
|
|
map.openInfoWindowHtml(TFMapUitl.gcdMarkerDom(i), { position: [i.lng, i.lat, i.high] }, () => TFMapUitl.clearPointLocation_list(map));
|
|
|
map.popup.setOffset(-182, 64);
|
|
|
+ window.clearImpoint()
|
|
|
});
|
|
|
map.addOverlay(marker);
|
|
|
}
|
|
|
@@ -1736,6 +1773,7 @@ export default defineComponent({
|
|
|
var i = e.graphic.overlay.info
|
|
|
map.openInfoWindowHtml(TFMapUitl.gcdMarkerDom(i), { position: [i.lng, i.lat, i.high] }, () => TFMapUitl.clearPointLocation_list(map));
|
|
|
map.popup.setOffset(-185, 60);
|
|
|
+ window.clearImpoint()
|
|
|
});
|
|
|
map.addOverlay(marker);
|
|
|
}
|
|
|
@@ -1758,6 +1796,7 @@ export default defineComponent({
|
|
|
var i = e.graphic.overlay.info
|
|
|
map.openInfoWindowHtml(TFMapUitl.gcdMarkerDom(i), { position: [i.lng, i.lat, i.high] }, () => TFMapUitl.clearPointLocation_list(map));
|
|
|
map.popup.setOffset(-185, 58);
|
|
|
+ window.clearImpoint()
|
|
|
});
|
|
|
map.addOverlay(marker);
|
|
|
}
|
|
|
@@ -1905,6 +1944,90 @@ export default defineComponent({
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
+ // 获取重要测站点
|
|
|
+ window.getImportSites=function (){
|
|
|
+ window.impointInterval&&clearInterval(window.impointInterval)
|
|
|
+ if(window.impointFlag){
|
|
|
+
|
|
|
+ getImportPoint().then(res=>{
|
|
|
+ if(res.code==200&&res.data){
|
|
|
+ if(window.impoint&&window.impoint.length){
|
|
|
+ window.impoint.forEach(j=>{
|
|
|
+ map.removeOverlay(j);
|
|
|
+ })
|
|
|
+ window.impoint=[]
|
|
|
+ }
|
|
|
+ window.impoint=[]
|
|
|
+ res.data.forEach(i=>{
|
|
|
+ _this.stDetailArrStore.forEach(j=>{
|
|
|
+ if(i.stcd==j.stcd){
|
|
|
+ let markerWindow= new TFMap.HTMLElementOverLay(
|
|
|
+ { x:Number(i.dlon) , y: Number(i.dlat),z:Number(j.high) },
|
|
|
+ TFMapUitl.impotPointDom(i)
|
|
|
+ ).init().setOff(-230, -130)
|
|
|
+ markerWindow.setId('imp&' + i.stcd);
|
|
|
+ markerWindow.setClassify('impoint_marker*')
|
|
|
+ window.impoint.push(markerWindow)
|
|
|
+ map.addOverlay(markerWindow)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ window.impointInterval=
|
|
|
+ setInterval(
|
|
|
+ ()=>{
|
|
|
+ if(window.impoint&&window.impoint.length){
|
|
|
+ window.impoint.forEach(j=>{
|
|
|
+ map.removeOverlay(j);
|
|
|
+ })
|
|
|
+ window.impoint=[]
|
|
|
+ }
|
|
|
+ if(window.impointFlag){
|
|
|
+ getImportPoint().then(res=>{
|
|
|
+ if(res.code==200&&res.data){
|
|
|
+
|
|
|
+ window.impoint=[]
|
|
|
+ res.data.forEach(i=>{
|
|
|
+ _this.stDetailArrStore.forEach(j=>{
|
|
|
+ if(i.stcd==j.stcd){
|
|
|
+ let markerWindow= new TFMap.HTMLElementOverLay(
|
|
|
+ { x:Number(i.dlon) , y: Number(i.dlat),z:Number(j.high) },
|
|
|
+ TFMapUitl.impotPointDom(i)
|
|
|
+ ).init().setOff(-230, -130)
|
|
|
+ markerWindow.setId('imp&' + i.stcd);
|
|
|
+ markerWindow.setClassify('impoint_marker*')
|
|
|
+ window.impoint.push(markerWindow)
|
|
|
+ map.addOverlay(markerWindow)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ },5*60*1000
|
|
|
+ )
|
|
|
+ }else{
|
|
|
+ if(window.impoint&&window.impoint.length){
|
|
|
+ window.impoint.forEach(j=>{
|
|
|
+ map.removeOverlay(j);
|
|
|
+ })
|
|
|
+ window.impoint=[]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ window.clearImpoint=function(){
|
|
|
+ window.impointFlag=false
|
|
|
+ if(window.impoint&&window.impoint.length){
|
|
|
+ window.impoint.forEach(j=>{
|
|
|
+ map.removeOverlay(j);
|
|
|
+ })
|
|
|
+ window.impoint=[]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //
|
|
|
// 获取测站并更新测站高程
|
|
|
window.updateStHeightInfo = async function () {
|
|
|
const key = 'updatable';
|