派生自 wuyushui/SewerAndRainNetwork

chenyabin
2021-05-14 de32f49313e2c7534009758193c41be61517f1d5
src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue
File was renamed from src/components/panel/topicSearch/SewersSelect/EnterpriseEmergency/ResourcesQuery.vue
@@ -55,10 +55,10 @@
<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 { LayerEmergencySource } from '../../../../conf/layers/LayerEmergencySource'
import { LayerSurroundings } from '../../../../conf/layers/LayerSurroundings'
import { pulseEffect } from '../../../../utils/utils'
export default {
  name: 'ResourcesQuery',
@@ -66,7 +66,7 @@
    return {
      form: {
        eventName: '',
        pipelineType: '应急资源',
        pipelineType: LayerEmergencySource.name,
        dataType: '',
        keyword: '',
        eventNameList: [
@@ -107,7 +107,7 @@
      }
    },
    handleDataType (val) {
      console.log(val)
      // console.log(val)
      this.list = []
    },
    async handleSearch () {
@@ -129,9 +129,11 @@
        this.list = res.features
      }
    },
    // 查询定位功能
    handleLocation (val, index) {
      this.activeNum = index
      window.map.flyTo([val.properties.y, val.properties.x], 15)
      window.map.setView([val.properties.y, val.properties.x], 16)
      pulseEffect([val.properties.y, val.properties.x])
    }
  }
}