From 08271621c9a7096cc29a3cfeeb67b772b13a4dfd Mon Sep 17 00:00:00 2001 From: 陈泽平 <chenzeping> Date: 星期三, 26 五月 2021 21:27:42 +0800 Subject: [PATCH] 事件上报页面修改 --- src/components/LayerController/logic/WasteSolid.js | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/LayerController/logic/WasteSolid.js b/src/components/LayerController/logic/WasteSolid.js index c027ae9..8bc83f9 100644 --- a/src/components/LayerController/logic/WasteSolid.js +++ b/src/components/LayerController/logic/WasteSolid.js @@ -1,11 +1,12 @@ /** * 鍥哄簾 */ -const WasteSolidIndex = require('@components/BaseNav/WasteSolid/WasteSolidIndex').default +const WasteSolidIndex = require('../../../components/base-page/WasteSolid/WasteSolidIndex.vue').default // 鍖哄垎涓嶅悓绫诲瀷 浣跨敤涓嶅悓img const defaultImg = '/assets/images/map/solidwaste/voc.png' const setting = '/assets/images/map/solidwaste/gf_green2.png' - +// 鍏叡鏂规硶 panTo() 寮曠敤 +const { setPanTo } = require('../../../utils/utils') // 璇锋眰鎺ュ彛鏁版嵁 const mapApi = require('../../../api/mapApi').default // 浣跨敤灏佽鏂规硶 @@ -46,17 +47,20 @@ } this.bindTooltip = (layer) => { + // '<div class="company-bindTooltip-hover"><h3>澶╂触鐭冲寲</h3></div>' + return layer.options.totransferData.Name } this.clickListener = (e) => { // 鐐瑰嚮marker鐨刾ulse()鍏夋尝 this.animalService.pulseEffect(e.latlng) + /* flyTo()寮瑰嚭妗嗗钩绉讳簨浠� */ + setPanTo(e.latlng, 200) // 寮规鏍囬 const title = e.layer.options.totransferData.Name window.$layer.open({ content: { - content: WasteSolidIndex, // 缁勪欢 + comp: WasteSolidIndex, // 缁勪欢 parent: this, // 鐖剁粍浠� data: { // 浼犻�掔殑鍙傛暟 storagePlaceId: e.layer.options.totransferData.StoragePlaceId @@ -64,8 +68,6 @@ }, title: title // 鏍囬 }) - /* flyTo()寮瑰嚭妗嗗钩绉讳簨浠� */ - this.animalService.setPanTo(e.latlng, 300) } // 涓嶅悓绫诲瀷鍥剧墖灏佽 -- Gitblit v1.8.0