派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-25 bbd56115ec1a65833eca6fa091f1c837f6b8e9dd
src/components/panel/topicSearch/GasWasteSearch.vue
@@ -98,7 +98,8 @@
<script>
import mapApi from '@/api/mapApi'
import WasteWaterIndex from '../../BaseNav/WasteWater/WasteWaterIndex'
import WasteWaterIndex from '../../base-page/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)
    }
  }
}