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,缩放等级