Browse Source

去掉默认位置

shibei_master
zxc 3 years ago
parent
commit
65854cc8e5
  1. 4
      src/views/modules/shequzhili/csgltc/csglForm.vue
  2. 4
      src/views/modules/shequzhili/ggfwtc/ggfwForm.vue

4
src/views/modules/shequzhili/csgltc/csglForm.vue

@ -242,8 +242,8 @@ export default {
data : this.cityManagement
}
this.formData = { ...data }
const lat = this.formData.latitude === null || this.formData.latitude === '' ? '36.06203' : this.formData.latitude;
const lon = this.formData.longitude === null || this.formData.longitude === '' ? '120.38494' : this.formData.longitude;
const lat = this.formData.latitude === null || this.formData.latitude === '' ? '' : this.formData.latitude;
const lon = this.formData.longitude === null || this.formData.longitude === '' ? '' : this.formData.longitude;
map.setCenter(new TMap.LatLng(lat,lon))
this.setMarker(lat,lon)
} else {

4
src/views/modules/shequzhili/ggfwtc/ggfwForm.vue

@ -220,8 +220,8 @@
}
this.formData = { ...data }
const lat = this.formData.latitude === null || this.formData.latitude === '' ? '36.06203' : this.formData.latitude;
const lon = this.formData.longitude === null || this.formData.longitude === '' ? '120.38494' : this.formData.longitude;
const lat = this.formData.latitude === null || this.formData.latitude === '' ? '' : this.formData.latitude;
const lon = this.formData.longitude === null || this.formData.longitude === '' ? '' : this.formData.longitude;
map.setCenter(new TMap.LatLng(lat, lon))
this.setMarker(lat, lon)
} else {

Loading…
Cancel
Save