From b8f5f6cdf5c26db929b7cda0188c587eb8d66c1d Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期六, 18 三月 2023 17:42:51 +0800 Subject: [PATCH] Merge branch 'dev1.0' of http://42.193.1.25:9521/r/sccg_ui into dev1.0 --- src/components/map/index.vue | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/map/index.vue b/src/components/map/index.vue index a39ac2e..f16b949 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -12,7 +12,7 @@ }; }, created() { - debugger + // if (this.point) { // this._point = this.point; // } @@ -23,11 +23,11 @@ methods: { locationMap() { const that = this; - debugger - setTimeout(() => { + + // console.log("_zoom---", that.zoom); // console.log("_point---", JSON.stringify(that.point)); - that.map.setZoomAndCenter(that._zoom, [that.point.x, that.point.y]); + that.map.setZoomAndCenter(that.zoom, [that.point.x, that.point.y]); if (that.mark) { // 鍒涘缓涓�涓� Marker 瀹炰緥锛� var marker = new AMap.Marker({ @@ -37,8 +37,14 @@ // 灏嗗垱寤虹殑鐐规爣璁版坊鍔犲埌宸叉湁鐨勫湴鍥惧疄渚嬶細 that.map.add(marker); + marker.on('click',function(e){ + console.log('666') + that.$emit('fatherMethod') + // that.$parent.fatherMethod(); + + }) } - }, 1000); + }, }, mounted() { -- Gitblit v1.8.0