派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-18 a4a4db4d04174541e4b44b83583be515f77b10b4
src/components/panel/topicSearch/SewersSearch.vue
@@ -38,7 +38,7 @@
            <div>
              <h3 @click="handleLocation(item,index)">{{ item.properties.pipename }}</h3>
              <p>所属企业:<span>{{ item.properties.orgname }}</span>
              <p>设施类型:<span>{{ item.properties.linenumtype }}</span>
              <p>设施类型:<span>{{ item.properties.linenumtype }}{{ item.properties.fourtype }}{{ item.properties.teetype }}</span>
               <el-button v-if="fuShuSheShiShow" class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;"
                          @click="btnAffiliatedFacilities(item,index)" >
                 附属设施
@@ -86,7 +86,7 @@
// 引入组件内容
import SewersAnalysis from '@components/panel/topicSearch/SewersSelect/SewersAnalysis'
import SewersHistory from '@components/panel/topicSearch/SewersSelect/SewersHistory'
import { fitBounds, highlight } from '../../helpers/LocateHelper'
import { fitBounds, highlight, locate } from '../../helpers/LocateHelper'
export default {
  name: 'SewersSearch',
@@ -165,12 +165,11 @@
      }
    },
    handleLocation (val, index) {
      console.log(this.form.dataType)
      // console.log(val)
      this.activeNum = index
      // layer && layer.openPopup()
      fitBounds(val, this.form.dataType.code)
      highlight(val, this.form.dataType)
      const config = this.form.dataType
      locate(val, config)
    },
    btnAffiliatedFacilities (val, index) {
      this.activeNum = index