diff --git a/src/views/modules/communityService/sqzzz/cpts/edit.vue b/src/views/modules/communityService/sqzzz/cpts/edit.vue index 9fdd02067..e9b1edd14 100644 --- a/src/views/modules/communityService/sqzzz/cpts/edit.vue +++ b/src/views/modules/communityService/sqzzz/cpts/edit.vue @@ -296,10 +296,12 @@ export default { if (data.resultList && data.resultList.length > 0) { this.resultList = data.resultList + this.searchOptions = this.resultList.map(item => { return { value: `${item.hotPointID}`, label: `${item.address + item.name}` }; }); + } } else { this.searchOptions = [ @@ -319,8 +321,8 @@ export default { let lonlat = selPosition.lonlat.split(" ") map.setCenter(lonlat[1], lonlat[0]); map.setMarker(lonlat[1], lonlat[0]); - this.formData.latitude = lonlat[1]; - this.formData.longitude = lonlat[0]; + this.dataForm.latitude = lonlat[1]; + this.dataForm.longitude = lonlat[0]; this.dataForm.address = selPosition.address + selPosition.name },