From 485b045b09d693eae6d5b510e1e18164688cc1bd Mon Sep 17 00:00:00 2001 From: limingyu Date: Sat, 11 May 2024 14:08:21 +0800 Subject: [PATCH] =?UTF-8?q?15526=20=E5=B7=B2=E7=BB=8F=E6=A0=87=E8=BF=87?= =?UTF-8?q?=E7=82=B9=E7=9A=84=20=E7=BC=96=E8=BE=91=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E5=80=99=20=E5=86=8D=E6=AC=A1=E8=BF=9B=E5=85=A5=20=E7=94=BB?= =?UTF-8?q?=E9=9D=A2=E4=B8=8D=E6=98=AF=E6=A0=87=E7=82=B9=E7=9A=84=E5=9C=B0?= =?UTF-8?q?=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/firefighting/points/components/edit.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/firefighting/points/components/edit.vue b/src/views/firefighting/points/components/edit.vue index 9f47cb4..785ac67 100644 --- a/src/views/firefighting/points/components/edit.vue +++ b/src/views/firefighting/points/components/edit.vue @@ -544,8 +544,13 @@ export default { }, toCenter(center = this.center) { console.log('toCenter', center) - this.center.longitude = center.longitude - this.center.latitude = center.latitude + if (this.FIRE_POINT_ID && this.LONGTITUDE && this.LATITUDE && this.LONGTITUDE.trim() != '' && this.LATITUDE.trim() != '') { + this.center.longitude = this.LONGTITUDE + this.center.latitude = this.LATITUDE + } else { + this.center.longitude = center.longitude + this.center.latitude = center.latitude + } this.center.height = center.height viewer.camera.flyTo({ // 设置中心点,x,y,缩放等级