diff --git a/src/views/modules/shequzhili/tuceng/anquan/anquanxuncha/addForm.vue b/src/views/modules/shequzhili/tuceng/anquan/anquanxuncha/addForm.vue index 5068f4759..1a96bd8b7 100644 --- a/src/views/modules/shequzhili/tuceng/anquan/anquanxuncha/addForm.vue +++ b/src/views/modules/shequzhili/tuceng/anquan/anquanxuncha/addForm.vue @@ -74,6 +74,7 @@ placeholder="请输入关键词" :remote-method="remoteMethod" :loading="loading" + @keyup.enter.native="remoteMethod(formData.address)" > { + // return { value: item.value, label: item.label }; + // }); + // this.formData.location.push(this.list[0].value); + // this.remoteMethod(this.list[0].label);//调用远程搜索函数 + + + // this.remoteMethod("对对对"); this.initMap(); + } else { this.$message.error(msg); } @@ -367,6 +378,7 @@ export default { } }, async remoteMethod(query) { + console.log("query",query) if (query !== '') { this.loading = true; const { msg, data } = await map.searchNearby(query); @@ -379,6 +391,7 @@ export default { this.searchOptions = this.resultList.map(item => { return { value: `${item.id}`, label: `${item.address + item.name}` }; }); + console.log("this.searchOptions",this.searchOptions ) } } else { this.searchOptions = [