From 9b37c6a582e55795a662135d688025ef2f8993c0 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Mon, 21 Nov 2022 16:47:54 +0800 Subject: [PATCH] 11 --- src/views/modules/communityService/sqzzz/cpts/edit.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 },