| | |
| | | <script> |
| | | import mapApi from '@/api/mapApi' |
| | | import WasteWaterIndex from '../../BaseNav/WasteWater/WasteWaterIndex' |
| | | import { pulseEffect, setPanTo } from '../../../utils/utils' |
| | | |
| | | export default { |
| | | name: 'GasWasteSearch', |
| | |
| | | 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 |
| | |
| | | }, |
| | | title: '天津石化 ' + val.Name |
| | | }) |
| | | pulseEffect([val.Latitude, val.Longitude]) |
| | | setPanTo(pos, 250) |
| | | } |
| | | } |
| | | } |