派生自 wuyushui/SewerAndRainNetwork

chenyabin
2021-04-27 4f35a8b56c12315c82fd5bd136f32da2dcadc5e2
src/components/panel/topicSearch/SewersSearch.vue
@@ -39,7 +39,7 @@
              <h3 @click="handleLocation(item,index)">{{ item.properties.pipename }}</h3>
              <p>所属企业:<span>{{ item.properties.orgcode }}</span>
              <p>设施类型:<span>{{ item.properties.teetype }}</span>
              <!--  <el-button v-if="fuShuSheShiShow" class="rt" size="mini" style="margin-right: 0.04rem" @click="btnAffiliatedFacilities(item)" >附属设施</el-button> -->
               <el-button v-if="fuShuSheShiShow" class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;" @click="btnAffiliatedFacilities(item,index)" >附属设施</el-button>
              </p>
            </div>
          </div>
@@ -111,6 +111,7 @@
      isRouteHover: false,
      facilitiesParameter: null,
      fuShuSheShiShow: true,
      fuShuSheShiPanelShow: true,
      activeNum: -1
    }
  },
@@ -154,8 +155,12 @@
    },
    handleLocation (val, index) {
      this.activeNum = index
      this.facilitiesParameter = val
      // layer && layer.openPopup()
      window.layerFactory.flyByFeature(val, this.form.dataType.code)
    },
    btnAffiliatedFacilities (val, index) {
      this.activeNum = index
      this.facilitiesParameter = val
      // 判断选择是否是管线,如果是则显示《附属设施》弹框
      if (this.form.pipelineType === '管线') {
        this.fuShuSheShiShow = true