派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-18 58fe00c41f4c499b604d2c504542dbb1272382f2
src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue
@@ -57,9 +57,9 @@
import AjaxUtils from '@utils/AjaxUtils'
import { LayerEmergencySource } from '../../../../conf/layers/LayerEmergencySource'
import { LayerSurroundings } from '../../../../conf/layers/LayerSurroundings'
import { pulseEffect } from '../../../../utils/utils'
import { openPopup } from '../../../helpers/LocateHelper'
// import { fitBounds, highlight } from '../../../helpers/LocateHelper'
// import { pulseEffect } from '../../../../utils/utils'
import { locate } from '../../../helpers/LocateHelper'
// import { fitBounds, highlight, locate, openPropsPopup } from '../../../helpers/LocateHelper'
export default {
  name: 'ResourcesQuery',
@@ -136,12 +136,13 @@
    },
    // 查询定位功能
    handleLocation (val, index) {
      // console.log(val)
      console.log(val)
      this.activeNum = index
      const positionArea = [val.properties.y, val.properties.x]
      window.map.setView(positionArea, 17)
      pulseEffect(positionArea)
      openPopup(positionArea, val.id)
      const config = this.form.dataType
      locate(val, config)
      // const positionArea = [val.properties.y, val.properties.x]
      // window.map.setView(positionArea, 17)
      // pulseEffect(positionArea)
      // fitBounds(val, this.form.dataType.code)
      // highlight(val, this.form.dataType)
    }