派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-17 fd94c3b57e6e1f32e1f8503e479cdac8de70104d
src/components/panel/topicSearch/SewersSearch.vue
@@ -83,6 +83,7 @@
// 引入组件内容
import SewersAnalysis from '@components/panel/topicSearch/SewersSelect/SewersAnalysis'
import SewersHistory from '@components/panel/topicSearch/SewersSelect/SewersHistory'
import { fitBounds, highlight } from '../../helpers/LocateHelper'
export default {
  name: 'SewersSearch',
@@ -161,11 +162,12 @@
      }
    },
    handleLocation (val, index) {
      console.log(val)
      console.log(this.form.dataType)
      // console.log(val)
      this.activeNum = index
      // layer && layer.openPopup()
      window.layerFactory.flyByFeature(val, this.form.dataType.code)
      fitBounds(val, this.form.dataType.code)
      highlight(val, this.form.dataType)
    },
    btnAffiliatedFacilities (val, index) {
      this.activeNum = index
@@ -176,7 +178,8 @@
      } else {
        this.fuShuSheShiShow = false
      }
      window.layerFactory.flyByFeature(val, this.form.dataType.code)
      fitBounds(val, this.form.dataType.code)
      highlight(val)
    }
  },
  mounted () {