From 77bcdfdfecb41b9c1838d1352fcf48f9e2afc78d Mon Sep 17 00:00:00 2001 From: tianq Date: Wed, 26 Apr 2023 17:04:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9D=80=E6=A0=8F=EF=BC=8C=E6=8C=89?= =?UTF-8?q?=E4=B8=8B=E5=9B=9E=E8=BD=A6=EF=BC=8C=E5=8D=B3=E5=BC=80=E5=A7=8B?= =?UTF-8?q?=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tuceng/anquan/anquanxuncha/addForm.vue | 1 + .../shequzhili/tuceng/anquan/shebei/addForm.vue | 1 + .../shequzhili/tuceng/anquan/yinhuan/addForm.vue | 1 + .../shequzhili/tuceng/chengshiguanli/addForm.vue | 1 + .../shequzhili/tuceng/gonggongfuwu/addForm.vue | 1 + .../shequzhili/tuceng/yingji/changsuo/addForm.vue | 1 + .../shequzhili/tuceng/yingji/wuzi/addForm.vue | 1 + .../shequzhili/tuceng/yingji/zizuzhi/addForm.vue | 1 + .../shequzhili/tuceng/zhonghe/shebei/addForm.vue | 13 +++++++++++++ 9 files changed, 21 insertions(+) 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 = [