派生自 wuyushui/SewerAndRainNetwork

seatonwan9
2021-05-28 593f6ccd3aec8045a26b4b330f2b034df05bfd9f
src/components/panel/topicSearch/SewersSearch.vue
@@ -27,6 +27,12 @@
                                </el-option>
                            </el-select>
                        </el-form-item>
                        <div class="page_total">
                            <p>共计
                                <span>{{total}}</span>
                                条记录
                            </p>
                        </div>
                        <div class="rightButtonSearch">
                            <el-input v-model="form.keyword" size="mini" placeholder="在此输入关键字搜索"></el-input>
                            <el-button class="el-icon-search" @click="handleSearch"></el-button>
@@ -78,11 +84,11 @@
<script>
// 引入组件内容 =》 附属设施
import AffiliatedFacilities from '@components/BaseNav/pipeline/AffiliatedFacilities'
import AffiliatedFacilities from '@components/base-page/pipeline/AffiliatedFacilities'
// 管线分析功能
import SewersAnalysis from '@components/panel/topicSearch/SewersSelect/SewersAnalysis'
import SewersAnalysis from '@components/panel/topicSearch/sewers-select/SewersAnalysis'
// 管线查询历史功能
import SewersHistory from '@components/panel/topicSearch/SewersSelect/SewersHistory'
import SewersHistory from '@components/panel/topicSearch/sewers-select/SewersHistory'
// form类型可选择数据 图层控制
import { LayerPipeLines } from '@src/conf/layers/LayerPipeLines'
import { LayerFsss } from '@src/conf/layers/LayerFsss'
@@ -148,13 +154,13 @@
    // tab切换
    handleClick (tab, event) {
      console.log(tab, event)
      // if (tab.label === '分析') {
      //   // 关闭弹窗
      //   window.mapManager.clickDialogSwitch = false
      // } else {
      //   // 打开弹窗
      //   window.mapManager.clickDialogSwitch = true
      // }
      if (tab.label === '分析') {
        // 关闭弹窗
        window.mapManager.clickDialogSwitch = false
      } else {
        // 打开弹窗
        window.mapManager.clickDialogSwitch = true
      }
    },
    // 根据返回数据 确认展示图片
    getImgSrc () {
@@ -187,6 +193,7 @@
      // }
      // const _this = this
      const res = await AjaxUtils.GetDataAsynByUrl(this.wfsHelper.getUrl(), {})
      console.log(res)
      if (res instanceof Object && Object.prototype.hasOwnProperty.call(res, 'features')) {
        this.total = res.totalFeatures
        this.list = res.features