|
|
@ -5,6 +5,7 @@ |
|
|
|
<el-form ref="ref_form" |
|
|
|
:inline="true" |
|
|
|
:model="formData" |
|
|
|
:disabled="formType==='detail'" |
|
|
|
class="form"> |
|
|
|
|
|
|
|
<el-form-item label="场所名称:" |
|
|
@ -89,9 +90,7 @@ export default { |
|
|
|
}, |
|
|
|
components: {}, |
|
|
|
async mounted () { |
|
|
|
if (!map) { |
|
|
|
this.initMap() |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
@ -106,6 +105,9 @@ export default { |
|
|
|
this.startLoading() |
|
|
|
this.formData = { ...row } |
|
|
|
console.log(map) |
|
|
|
if (!map) { |
|
|
|
this.initMap() |
|
|
|
} |
|
|
|
map.setCenter(new TMap.LatLng(this.formData.latitude, this.formData.longitude)) |
|
|
|
this.setMarker(this.formData.latitude, this.formData.longitude) |
|
|
|
|
|
|
|