Merge branch 'feature-Station-dev-renpy' of http://git.hivekion.com:3000/xiaoguangbin/AnalysisSystemForRadionuclide_vue into master-dev
This commit is contained in:
commit
7291800046
|
@ -136,7 +136,7 @@ export default {
|
||||||
img.draggable = false
|
img.draggable = false
|
||||||
img.src = MarkerIcon[stationInfo.stationType]
|
img.src = MarkerIcon[stationInfo.stationType]
|
||||||
img.addEventListener('click', () => {
|
img.addEventListener('click', () => {
|
||||||
this.$emit('markerClick')
|
this.$emit('markerClick', stationInfo)
|
||||||
})
|
})
|
||||||
|
|
||||||
img.addEventListener('mouseover', () => {
|
img.addEventListener('mouseover', () => {
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<div class="map-pane-operators-main-operator">
|
<div class="map-pane-operators-main-operator">
|
||||||
<div>
|
<div>
|
||||||
<img v-if="dataStatusModalVisible" src="@/assets/images/station-operation/analyze-active.png" />
|
<img v-if="dataStatusModalVisible" src="@/assets/images/station-operation/analyze-active.png" />
|
||||||
<img v-else src="@/assets/images/station-operation/analyze.png" @click="handleOpenAnalyzeModal" />
|
<img v-else src="@/assets/images/station-operation/analyze.png" @click="handleOpenAnalyzeModal()" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<img
|
<img
|
||||||
|
@ -423,7 +423,9 @@ export default {
|
||||||
|
|
||||||
showPane: true,
|
showPane: true,
|
||||||
spinLoading: false,
|
spinLoading: false,
|
||||||
maskVisi: false
|
maskVisi: false,
|
||||||
|
|
||||||
|
stationInfo: undefined
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -616,7 +618,8 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
// 打开分析弹窗
|
// 打开分析弹窗
|
||||||
handleOpenAnalyzeModal() {
|
handleOpenAnalyzeModal(stationInfo) {
|
||||||
|
this.stationInfo = stationInfo
|
||||||
this.dataStatusModalVisible = true
|
this.dataStatusModalVisible = true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -743,6 +746,10 @@ export default {
|
||||||
this.maskVisi = false
|
this.maskVisi = false
|
||||||
this.spinLoading = false
|
this.spinLoading = false
|
||||||
if (success) {
|
if (success) {
|
||||||
|
// 如果从地图的Marker上点开,且点开的为已关注的台站,则把这个台站放到前面
|
||||||
|
if(this.stationInfo) {
|
||||||
|
result.sort(({ stationId }) => stationId == this.stationInfo.stationId? -1: 1) // chrome 和 firefox下表现不同,但都能将目标值排到第一个
|
||||||
|
}
|
||||||
const statusList = []
|
const statusList = []
|
||||||
result.forEach(item => {
|
result.forEach(item => {
|
||||||
const detectorArr = item.detectors[item.stationId]
|
const detectorArr = item.detectors[item.stationId]
|
||||||
|
|
|
@ -525,8 +525,8 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
// 地图图标点击
|
// 地图图标点击
|
||||||
onMarkerClick() {
|
onMarkerClick(stationInfo) {
|
||||||
this.$refs.mapPane.handleOpenAnalyzeModal()
|
this.$refs.mapPane.handleOpenAnalyzeModal(stationInfo)
|
||||||
},
|
},
|
||||||
|
|
||||||
getScrollContainer() {
|
getScrollContainer() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user