Merge branch 'feature-Station-dev-renpy' of http://git.hivekion.com:3000/xiaoguangbin/AnalysisSystemForRadionuclide_vue into master-dev

This commit is contained in:
orgin 2023-10-28 10:13:37 +08:00
commit 7291800046
3 changed files with 13 additions and 6 deletions

View File

@ -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', () => {

View File

@ -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]

View File

@ -525,8 +525,8 @@ export default {
}, },
// //
onMarkerClick() { onMarkerClick(stationInfo) {
this.$refs.mapPane.handleOpenAnalyzeModal() this.$refs.mapPane.handleOpenAnalyzeModal(stationInfo)
}, },
getScrollContainer() { getScrollContainer() {