diff --git a/src/views/stationOperation/components/MapMarker.vue b/src/views/stationOperation/components/MapMarker.vue index 662ce29..83b15e6 100644 --- a/src/views/stationOperation/components/MapMarker.vue +++ b/src/views/stationOperation/components/MapMarker.vue @@ -136,7 +136,7 @@ export default { img.draggable = false img.src = MarkerIcon[stationInfo.stationType] img.addEventListener('click', () => { - this.$emit('markerClick') + this.$emit('markerClick', stationInfo) }) img.addEventListener('mouseover', () => { diff --git a/src/views/stationOperation/components/MapPane.vue b/src/views/stationOperation/components/MapPane.vue index 5dcf50f..adc5605 100644 --- a/src/views/stationOperation/components/MapPane.vue +++ b/src/views/stationOperation/components/MapPane.vue @@ -14,7 +14,7 @@
- +
stationId == this.stationInfo.stationId? -1: 1) // chrome 和 firefox下表现不同,但都能将目标值排到第一个 + } const statusList = [] result.forEach(item => { const detectorArr = item.detectors[item.stationId] diff --git a/src/views/stationOperation/index.vue b/src/views/stationOperation/index.vue index e70c785..b4ef162 100644 --- a/src/views/stationOperation/index.vue +++ b/src/views/stationOperation/index.vue @@ -525,8 +525,8 @@ export default { }, // 地图图标点击 - onMarkerClick() { - this.$refs.mapPane.handleOpenAnalyzeModal() + onMarkerClick(stationInfo) { + this.$refs.mapPane.handleOpenAnalyzeModal(stationInfo) }, getScrollContainer() {