diff --git a/src/components/site/previewOfSiteStatus.vue b/src/components/site/previewOfSiteStatus.vue index 522f944..1e2e9b4 100644 --- a/src/components/site/previewOfSiteStatus.vue +++ b/src/components/site/previewOfSiteStatus.vue @@ -501,6 +501,21 @@ }; }, methods: { + //项目图层切换 + initPointToMap(projectNo){ + this.$http + .post(this.nozzle.listStationBase, { + data: { + platformCode:projectNo + } + }) + .then(response => { + console.log(response) + if (response.data.code === 1) { + this.showCluster(response.data.data); + } + }) + }, //点击历史数据 historyData(stCode) { console.log(stCode) @@ -991,7 +1006,7 @@ this.timer = setInterval(this.ScrollUp, 100); }, //按照项目选择去联动地图 - initPointToMap(projectNo) + initPointToMap1(projectNo) { let _this = this; @@ -1495,7 +1510,7 @@ // this.map.addLayer(this.vector); - this.$http + this.$http .post(this.nozzle.listStationBase, { data: { /* platformCode:projectNo */