派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-18 a4a4db4d04174541e4b44b83583be515f77b10b4
src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue
@@ -55,12 +55,12 @@
<script>
import WfsHelper from '@components/helpers/WfsHelper'
import AjaxUtils from '@utils/AjaxUtils'
// import { LayerEmergency } from '../../../../../conf/LayerEmergency'
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, openPopup } from '../../helpers/LocateHelper'
// import { pulseEffect } from '../../../../utils/utils'
// import { locate, openPropsPopup } from '../../../helpers/LocateHelper'
import { locate } from '../../../helpers/LocateHelper'
// import { fitBounds, highlight, locate } from '../../../helpers/LocateHelper'
export default {
  name: 'ResourcesQuery',
@@ -137,12 +137,15 @@
    },
    // 查询定位功能
    handleLocation (val, index) {
      // console.log(val)
      console.log(val)
      this.activeNum = index
      const positionArea = [val.properties.y, val.properties.x]
      window.map.setView(positionArea, 16)
      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)
    }
  }
}