派生自 wuyushui/SewerAndRainNetwork

chenzeping
2021-04-25 9cf09818be0c2db5070a5b1342ca46d9e6497fad
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>
@@ -65,7 +65,7 @@
      </el-tab-pane>
    </el-tabs>
    <!-- 附属设施面板 -->
    <affiliated-facilities :facilitiesParameter="facilitiesParameter" :fuShuSheShiSubItems="fuShuSheShiSubItems" ></affiliated-facilities>
    <affiliated-facilities :facilitiesParameter="facilitiesParameter"  v-if="fuShuSheShiShow" ></affiliated-facilities>
  </div>
</template>
@@ -101,7 +101,7 @@
      subItems: LayerPipeLines.layers,
      total: 0,
      form: {
        pipelineType: '管网',
        pipelineType: '管线',
        dataType: '',
        keyword: ''
      },
@@ -110,8 +110,8 @@
      isWaybillHover: true,
      isRouteHover: false,
      facilitiesParameter: null,
      //  fuShuSheShiShow: false,
      fuShuSheShiShow: true,
      fuShuSheShiPanelShow: true,
      activeNum: -1
    }
  },
@@ -155,19 +155,18 @@
    },
    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 === '管线') {
        for (let i = 0; i < this.items.length; i++) {
          const item = this.items[i]
          if (item.name === '附属设施') {
            this.fuShuSheShiSubItems = item.layers
            // console.log(this.fuShuSheShiSubItems)
          }
        }
      } */
      if (this.form.pipelineType === '管线') {
        this.fuShuSheShiShow = true
      } else {
        this.fuShuSheShiShow = false
      }
      window.layerFactory.flyByFeature(val, this.form.dataType.code)
    }
  }