派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-05-21 022e02466285107b4d7c47a22d672dbce7a2de29
src/components/panel/topicSearch/EnterpriseEmergency/ResourcesQuery.vue
@@ -44,7 +44,7 @@
                 :class="activeNum===index?'hover':''" @click="handleLocation(item,index)">
                <img class="state" :src="getImgSrc(item.properties.type)" style="background: none"/>
                <h3>{{changeAmount}}类型:{{item.properties.type}}</h3>
                <h5>{{changeAmount}}名称:{{item.properties.name}}</h5>
                <h5>{{changeAmount}}名称:{{item.properties.companyname}}</h5>
                <p>负责人:<span>{{item.properties.resperson}}</span></p>
                <p>电话:<span>{{item.properties.telephone}}</span></p>
            </div>
@@ -74,8 +74,8 @@
        dataType: '',
        keyword: '',
        eventNameList: [
          { name: '金陵石化' },
          { name: '南京化学' }
          { name: '扬子石化' },
          { name: '仪征化纤' }
        ]
      },
      // 搜索到的数据绑定的active的样式
@@ -129,15 +129,14 @@
    async handleSearch () {
      this.list = []
      this.wfsHelper.clearFilter()
      // todo 现在企业应急还没区分开类型,后面改
      // console.log(this.form.dataType)
      // this.wfsHelper.setTypeName([this.form.dataType.typeName])
      this.wfsHelper.setTypeName(['sewer:emergency'])
      this.wfsHelper.setMaxFeatures(100)
      if (this.form.dataType) {
        this.wfsHelper.addEquals('orgname', '\'' + this.form.eventName + '\'')
        this.wfsHelper.addEquals('type', '\'' + this.form.dataType.name + '\'')
      }
      if (this.form.keyword) {
        this.wfsHelper.setFilter(this.form.keyword)
        this.wfsHelper.addLike('name', this.form.keyword)
      }
      const res = await AjaxUtils.GetDataAsynByUrl(this.wfsHelper.getUrl(), {})