From 4881cbad72de8ab3242b4c54c28f0b31cbb43a88 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?=
<819653817@qq.com>
Date: Tue, 2 Jul 2024 14:57:48 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E6=90=9C=E7=B4=A2=E6=A1=86?=
=?UTF-8?q?=E9=94=99=E8=AF=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../communityParty/activity/initiateActivity.vue | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/views/modules/communityParty/activity/initiateActivity.vue b/src/views/modules/communityParty/activity/initiateActivity.vue
index 57d6f3785..a801ebd0b 100644
--- a/src/views/modules/communityParty/activity/initiateActivity.vue
+++ b/src/views/modules/communityParty/activity/initiateActivity.vue
@@ -64,7 +64,7 @@
:reserve-keyword="true" placeholder="请输入关键词" :remote-method="remoteMethod"
:loading="loading">
+ :key="item.value||index" :label="item.label" :value="item.value">
@@ -415,18 +415,16 @@ export default {
async initForm(type, activityId) {
this.startLoading()
console.log("啊实打实的", type, activityId)
-
this.$nextTick(() => {
if (!map) {
this.initMap(this.formData.latitude, this.formData.longitude);
- // console.log("map", map)
+ console.log("map", map)
} else {
map.setCenter(this.formData.latitude, this.formData.longitude);
map.setMarker(this.formData.latitude, this.formData.longitude);
- // console.log("mapmapmap", map)
+ console.log("mapmapmap", map)
}
})
-
this.formType = type
if (type === 'edit' ) {
if(activityId.activityImgs || activityId.sumUp){
@@ -655,10 +653,9 @@ export default {
},
async remoteMethod(query) {
-
+ console.log(query,"sfsvsdv");
if (query !== '') {
this.loading = true;
-
const { msg, data } = await map.searchNearby(query);
this.loading = false;
this.resultList = []
@@ -667,10 +664,12 @@ export default {
if (data.resultList && data.resultList.length > 0) {
this.resultList = data.resultList
+ console.log(this.resultList,"this.resultList");
this.searchOptions = this.resultList.map(item => {
- return { value: `${item.hotPointID}`, label: `${item.address + item.name}` };
+ return { value: `${item.id}`, label: `${item.address + item.name}` };
});
+ console.log(this.searchOptions,"this.searchOptions");
}
} else {
this.searchOptions = [