src/components/panel/topicSearch/SewersSearch.vue
@@ -173,6 +173,7 @@ wfsHelper.addLike(this.form.query.key, this.form.keyword) // const _this = this AjaxUtils.GetDataAsynByUrl(wfsHelper.getUrl(), {}, (res) => { console.log(res) this.list = res.features }) }, @@ -180,6 +181,9 @@ console.log(val) const bound = this.L.geoJSON([val], {}).getBounds() console.log(bound) var layer = window.serviceLayerHelper.getByLayerId(val.id) console.log(layer) layer && layer.openPopup() this.$store.state.map.map.flyToBounds(bound) } }