From e2be69f7913b15f5b885f97df3034a276c29aec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Fri, 15 Mar 2024 10:51:50 +0800 Subject: [PATCH] =?UTF-8?q?CN-1577=20fix:=20=E8=B0=83=E6=95=B4=E5=AE=9E?= =?UTF-8?q?=E4=BD=93=E8=AF=A6=E6=83=85=E5=9C=B0=E5=9B=BEloading=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../charts/entityDetail/EntityDetailMap.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/views/charts2/charts/entityDetail/EntityDetailMap.vue b/src/views/charts2/charts/entityDetail/EntityDetailMap.vue index 72b3fe33..a05414ab 100644 --- a/src/views/charts2/charts/entityDetail/EntityDetailMap.vue +++ b/src/views/charts2/charts/entityDetail/EntityDetailMap.vue @@ -13,8 +13,10 @@
-
+
+ +
@@ -189,7 +191,7 @@ import unitConvert from '@/utils/unit-convert' import { defaultMapConfig, storageKey, unitTypes } from '@/utils/constants' import { h3ToGeo, h3ToGeoBoundary } from 'h3-js' import { overwriteUrl, urlParamsHandler } from '@/utils/tools' -import SimpleLoading from '@/components/common/SimpleLoading' +import Loading from '@/components/common/Loading' const humanSvg = '' const baseStationSvg = '' @@ -199,7 +201,7 @@ export default { components: { ChartError, ChartNoData, - SimpleLoading + Loading }, data () { return { @@ -526,6 +528,7 @@ export default { level: this.mapLevel } this.trackingSubscriber.subscriberId = this.entity.entityName + this.trackingMapLoading = true try { const response = await axios.get(api.location.tracking, { params }) this.trackingMapLoading = false @@ -882,6 +885,12 @@ export default { this.trackingSubscriber.scrollEndIndex = 11 this.trackingSubscriber.startOffset = 0 this.trackingSubscriber.listHeight = 0 + }, + developmentClick () { + const dev = process.env.NODE_ENV + if (dev) { + this.trackingMapLoading = false + } } }, setup () {