派生自 wuyushui/SewerAndRainNetwork

陈泽平
2021-05-21 1f619887452d6c0faaf4c509b9e1725a02db990c
src/components/panel/topicSearch/SewersSearch.vue
@@ -38,7 +38,8 @@
                         :class="activeNum===index?'hover':''">
                        <img class="state" :src="getImgSrc()" style="background: none"/>
                        <div>
                            <h3 @click="handleLocation(item,index)">{{ item.properties.name || item.properties.code }}</h3>
                            <h3 @click="handleLocation(item,index)">{{ item.properties.name || item.properties.code
                                }}</h3>
                            <p>所属企业:<span>{{ item.properties.orgname }}</span>
                            <p>设施类型:<span>{{ item.properties.type }}</span>
                                <el-button v-if="fuShuSheShiShow" class="rt btn00fff6" size="mini"
@@ -111,7 +112,6 @@
      list: [],
      // 图层控制
      items: [LayerPipeLines, LayerFsss, LayerHbss, LayerPk, LayerArea],
      subItems: LayerPipeLines.layers,
      // 分页
      pageSize: 10,
      total: 0,
@@ -131,6 +131,15 @@
    this.wfsHelper = new WfsHelper()
  },
  methods: {
    subItems () {
      const layers = LayerPipeLines.layers
      console.log(layers)
      const filtered = layers.filter(function (value, index, array) {
        console.log(value)
        return value.name !== '流向'
      })
      return filtered
    },
    // tab切换
    handleClick (tab, event) {
      console.log(tab, event)