diff --git a/src/components/site/previewOfSiteStatus.vue b/src/components/site/previewOfSiteStatus.vue index 1b8e3cf..517a2f1 100644 --- a/src/components/site/previewOfSiteStatus.vue +++ b/src/components/site/previewOfSiteStatus.vue @@ -320,8 +320,8 @@ class="GIsRightWaringList" v-for="(item, index) in areaList" :key="index" - @mouseover="mouseOver(index)" - @mouseleave="mouseLeave(index)" + @mouseover="mouseOver2(index)" + @mouseleave="mouseLeave2(index)" > { - console.log(response); + // console.log(response); if (response.data.code === 1) { this.showCluster(response.data.data); } @@ -748,7 +748,7 @@ }, //点击历史数据 historyData(stCode) { - console.log(stCode); + // console.log(stCode); this.currentSiteNo = stCode; this.dialogVisible = true; setTimeout(() => { @@ -897,7 +897,7 @@ }) .then(response => { if (response.data.code === 1) { - console.log(response); + // console.log(response); this.areaList = response.data.data; } else { message(response); @@ -942,7 +942,7 @@ this.ChecksplatformCode = this.ProjectList[index]["groupNo"]; //刷新联动地图上的点位按照项目实际的个数 - console.log(this.ChecksplatformCode); + // console.log(this.ChecksplatformCode); this.initPointToMap(this.ChecksplatformCode); if ( this.ProjectList[index]["areaCode"] && @@ -1057,7 +1057,7 @@ }, // 加载项目设备总览的ecahrts loadRegionEcharts(data) { - console.log(data); + // console.log(data); // 基于准备好的dom,初始化echarts实例 this.myChart = this.$echarts.init( document.getElementById("previewOfSiteStatusCentent4eCharts") @@ -1114,15 +1114,20 @@ if (this.timer) { clearInterval(this.timer); this.$refs.tooltip[index].handleShowPopper(); - } else if (this.timer2) { - this.$refs.tooltip2[index].handleShowPopper(); + } + }, + mouseOver2(index) { + if (this.timer2) { clearInterval(this.timer2); + this.$refs.tooltip2[index].handleShowPopper(); } }, //鼠标移出事件 mouseLeave(index) { this.$refs.tooltip[index].handleClosePopper(); this.timer = setInterval(this.ScrollUp, 100); + }, + mouseLeave2(index) { this.$refs.tooltip2[index].handleClosePopper(); this.timer2 = setInterval(this.ScrollUp2, 100); }, @@ -1193,7 +1198,7 @@ } }) .then(response => { - console.log(response); + // console.log(response); if (response.data.code === 1) { let picBaseUrl = "https://static.arcgis.com/images/Symbols/Shapes/"; @@ -1443,9 +1448,9 @@ this.$http .get(this.nozzle.queueadmin + "/" + areaCode + ".json") .then(response => { - console.log(response); + // console.log(response); let dataJson = response.data.features[0]; - console.log(dataJson); + // console.log(dataJson); let areaFeature = new GeoJSON().readFeatures(dataJson);