From 426c8b34e6c0a6f97de69864c537cf5e0d7dbb08 Mon Sep 17 00:00:00 2001 From: odc.xiaohui <xiaohui@Q1> Date: 星期四, 15 十二月 2022 18:13:34 +0800 Subject: [PATCH] 2022-12-15 趋势分析 地图位置 ,弹窗修改 --- src/components/map/index.vue | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/components/map/index.vue b/src/components/map/index.vue index a39ac2e..3377fbe 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,8 +23,8 @@ 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]); @@ -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