From 9706167cee66aa208e538b9d3a5e9ecd88cd7462 Mon Sep 17 00:00:00 2001
From: 陈泽平 <chenzeping>
Date: 星期一, 24 五月 2021 16:28:48 +0800
Subject: [PATCH] 添加企业应急中事件上报/事件处置功能页面

---
 src/components/panel/topicSearch/GasWasteSearch.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/components/panel/topicSearch/GasWasteSearch.vue b/src/components/panel/topicSearch/GasWasteSearch.vue
index ad63218..73fc8d6 100644
--- a/src/components/panel/topicSearch/GasWasteSearch.vue
+++ b/src/components/panel/topicSearch/GasWasteSearch.vue
@@ -99,6 +99,7 @@
 <script>
 import mapApi from '@/api/mapApi'
 import WasteWaterIndex from '../../BaseNav/WasteWater/WasteWaterIndex'
+import { pulseEffect, setPanTo } from '../../../utils/utils'
 
 export default {
   name: 'GasWasteSearch',
@@ -165,10 +166,10 @@
     async handleLocation (val) {
       console.log(val)
       const pos = [val.Latitude, val.Longitude]
-      window.map.flyTo(pos, 15)
+      window.map.setView(pos, 15)
       window.$layer.open({
         content: {
-          content: WasteWaterIndex, // 缁勪欢
+          comp: WasteWaterIndex, // 缁勪欢
           parent: this, // 鐖剁粍浠�
           data: { // 浼犻�掔殑鍙傛暟
             storagePlaceId: val
@@ -176,6 +177,8 @@
         },
         title: '澶╂触鐭冲寲  ' + val.Name
       })
+      pulseEffect([val.Latitude, val.Longitude])
+      setPanTo(pos, 250)
     }
   }
 }

--
Gitblit v1.8.0