This commit is contained in:
80937518651731347 2026-04-03 14:14:46 +08:00
commit 104766dbe9
5 changed files with 50 additions and 14 deletions

View File

@ -139,7 +139,16 @@ export default {
}); });
}, },
beforeDestroy() { beforeDestroy() {
const unitMap = Vue.config.maps && Vue.config.maps['workUnitMap_auv']
if (unitMap) {
unitMap.remove()
delete Vue.config.maps['workUnitMap_auv']
}
const voyageMap = Vue.config.maps && Vue.config.maps['voyageMap_auv']
if (voyageMap) {
voyageMap.remove()
delete Vue.config.maps['voyageMap_auv']
}
}, },
methods: { methods: {
// //

View File

@ -137,7 +137,16 @@ export default {
}); });
}, },
beforeDestroy() { beforeDestroy() {
const unitMap = Vue.config.maps && Vue.config.maps['workUnitMap_hov']
if (unitMap) {
unitMap.remove()
delete Vue.config.maps['workUnitMap_hov']
}
const voyageMap = Vue.config.maps && Vue.config.maps['voyageMap_hov']
if (voyageMap) {
voyageMap.remove()
delete Vue.config.maps['voyageMap_hov']
}
}, },
methods: { methods: {
// //

View File

@ -139,7 +139,16 @@ export default {
}); });
}, },
beforeDestroy() { beforeDestroy() {
const unitMap = Vue.config.maps && Vue.config.maps['workUnitMap_rov']
if (unitMap) {
unitMap.remove()
delete Vue.config.maps['workUnitMap_rov']
}
const voyageMap = Vue.config.maps && Vue.config.maps['voyageMap_rov']
if (voyageMap) {
voyageMap.remove()
delete Vue.config.maps['voyageMap_rov']
}
}, },
methods: { methods: {
// //

View File

@ -149,7 +149,16 @@ export default {
}) })
}, },
beforeDestroy() { beforeDestroy() {
const unitMap = Vue.config.maps && Vue.config.maps['workUnitMap_ship']
if (unitMap) {
unitMap.remove()
delete Vue.config.maps['workUnitMap_ship']
}
const voyageMap = Vue.config.maps && Vue.config.maps['voyageMap_ship']
if (voyageMap) {
voyageMap.remove()
delete Vue.config.maps['voyageMap_ship']
}
}, },
methods: { methods: {
// //

View File

@ -27,7 +27,7 @@
<div class="map-title">参航单位</div> <div class="map-title">参航单位</div>
<div id="workUnitMap_uuv" ref="workUnitMap_uuv" style="height: 100%;width:100%;" /> <div id="workUnitMap_uuv" ref="workUnitMap_uuv" style="height: 100%;width:100%;" />
</div> </div>
<div class="bezel"> <!-- <div class="bezel">
<div class="map-title">航次地图</div> <div class="map-title">航次地图</div>
<div class="map-year-panel"> <div class="map-year-panel">
<span class="map-year-label">年份</span> <span class="map-year-label">年份</span>
@ -35,7 +35,7 @@
format="yyyy" @change="selectVoyageYear" /> format="yyyy" @change="selectVoyageYear" />
</div> </div>
<div id="voyageMap_uuv" ref="voyageMap_uuv" style="height: 100%;width:100%;" /> <div id="voyageMap_uuv" ref="voyageMap_uuv" style="height: 100%;width:100%;" />
</div> </div> -->
</div> </div>
<!-- echarts板块--> <!-- echarts板块-->
<div class="echarts-module"> <div class="echarts-module">
@ -155,17 +155,17 @@ export default {
initMapbox('workUnitMap_uuv', { initMapbox('workUnitMap_uuv', {
tileKey: 'gaode', tileKey: 'gaode',
zoom: 3, zoom: 3,
center: [110, 31], center: [110, 33],
minZoom: 2,
maxZoom: 29
})
initMapbox('voyageMap_uuv', {
tileKey: 'GEBCO_basemap_NCEI',
zoom: 3,
center: [113, 15],
minZoom: 2, minZoom: 2,
maxZoom: 29 maxZoom: 29
}) })
// initMapbox('voyageMap_uuv', {
// tileKey: 'GEBCO_basemap_NCEI',
// zoom: 3,
// center: [113, 15],
// minZoom: 2,
// maxZoom: 29
// })
}, },
beforeDestroy() { beforeDestroy() {
const unitMap = Vue.config.maps && Vue.config.maps['workUnitMap_uuv'] const unitMap = Vue.config.maps && Vue.config.maps['workUnitMap_uuv']