派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-04-15 74ef29b9618146d4f4e323080f8edea1772738ce
src/components/panel/topicSearch/SewersSearch.vue
@@ -36,13 +36,11 @@
        </div>
        <el-scrollbar style="height:380.44px;">
          <div class="environmental-risk-list" v-for="(item,index) in list" :key="index">
            <div @click="handleLocation(item)">
              <h3 class="B-TMD-table-list-title-y">
                {{ item.properties.pipename }}</h3>
              <!--<p v-for="itm in labelList" :key="itm.label">
                <span>{{ itm.label }}:</span>
                <span :title="item.properties[itm.key] ">{{ item.properties[itm.key] }}</span>
              </p>-->
            <img class="state" :src="getImgSrc()" style="background: none"/>
            <div>
              <h3 @click="handleLocation(item)">{{ item.properties.pipename }}</h3>
              <p>所属企业:<span>{{ item.properties.orgcode }}</span>
              <p>设施类型:<span>{{ item.properties.teetype }}</span></p>
            </div>
          </div>
        </el-scrollbar>
@@ -110,6 +108,10 @@
  },
  props: ['title'],
  methods: {
    getImgSrc () {
      const icon = this.form.dataType.icon
      return icon ? 'assets/images/map/' + icon : ''
    },
    handleClick (tab, event) {
      console.log(tab, event)
    },
@@ -125,7 +127,7 @@
    async handleSearch () {
      var wfsHelper = new WfsHelper()
      // todo 现在管网还没区分开类型,后面改
      wfsHelper.addTypeName(this.form.dataType.name)
      wfsHelper.addTypeName(this.form.dataType.sname)
      wfsHelper.addLike('name', this.form.keyword)
      // const _this = this
      const res = await AjaxUtils.GetDataAsynByUrl(wfsHelper.getUrl(), {})