From 8403c26edf326851e4c9b50854a474dbdd35d3cb Mon Sep 17 00:00:00 2001 From: hym Date: Sat, 4 Apr 2026 17:03:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E4=BD=8D=E7=BB=9F=E8=AE=A1=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=8E=BB=E6=8E=89=E8=88=AA=E6=AC=A1=E5=9C=B0=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/UuvUnitStatistics.vue | 54 +--------------------- 1 file changed, 1 insertion(+), 53 deletions(-) diff --git a/src/views/statistics/UuvUnitStatistics.vue b/src/views/statistics/UuvUnitStatistics.vue index 96b2987..fd5858f 100644 --- a/src/views/statistics/UuvUnitStatistics.vue +++ b/src/views/statistics/UuvUnitStatistics.vue @@ -9,21 +9,12 @@ - +
参航单位
-
@@ -149,7 +140,6 @@ export default { this.loadUnitTotalFromApi() this.getHovUnit() this.getShipUnit() - this.gitShipVoyage() }, mounted() { initMapbox('workUnitMap_uuv', { @@ -159,13 +149,6 @@ export default { minZoom: 2, maxZoom: 29 }) - // initMapbox('voyageMap_uuv', { - // tileKey: 'GEBCO_basemap_NCEI', - // zoom: 3, - // center: [113, 15], - // minZoom: 2, - // maxZoom: 29 - // }) }, beforeDestroy() { const unitMap = Vue.config.maps && Vue.config.maps['workUnitMap_uuv'] @@ -173,11 +156,6 @@ export default { unitMap.remove() delete Vue.config.maps['workUnitMap_uuv'] } - const voyageMap = Vue.config.maps && Vue.config.maps['voyageMap_uuv'] - if (voyageMap) { - voyageMap.remove() - delete Vue.config.maps['voyageMap_uuv'] - } }, methods: { /** @@ -356,36 +334,6 @@ export default { loadJsonPointFeature('workUnit', 'blue', geojson, 'unit_name', 'workUnitMap_uuv') }) }, - - /** - * 科考船航次轨迹(与 ships 页地图同源接口),通过 Mapbox 矢量图层渲染。 - * @param {Object} [params] 查询参数 - * @returns {void} - */ - gitShipVoyage(params = {}) { - shipVoyage(params).then(res => { - let i = 0 - const colors = ColorGenerator.generateDivergingColors((res.array || []).length) - ; (res.array || []).forEach(item => { - loadVectorLayer(item.voyage_name, ['line', 'symbol'], [colors[i], '#FFFFFF'], 'visible', 'voyageMap_uuv', 'dsds') - i++ - }) - }) - }, - - /** - * 选择航次地图年份。 - * @param {*} val 年份值 - * @returns {void} - */ - selectVoyageYear(val) { - if (val) { - const params = getYearRange(val) - this.gitShipVoyage({ ...params }) - } else { - this.gitShipVoyage({}) - } - } } }