| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item :label="form.pipelineType+':'" size="mini"> |
| | | <el-select style="width: 100%" v-model="form.dataType" value-key="code" :popper-class="'select-down'"> |
| | | <!-- @change="handleDataType"--> |
| | | <el-select style="width: 100%" v-model="form.dataType" value-key="code" :popper-class="'select-down'" @change="handleDataType" > |
| | | <el-option |
| | | v-for="item in subItems" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item"> |
| | | </el-option> |
| | | v-for="item in subItems" |
| | | :key="item.code" |
| | | :label="item.name" |
| | | :value="item"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <div class="rightButtonSearch"> |
| | | <el-input v-model="form.keyword" size="mini" placeholder="在此输入关键字搜索"> |
| | | </el-input> |
| | | <el-input v-model="form.keyword" size="mini" placeholder="在此输入关键字搜索"></el-input> |
| | | <el-button class="el-icon-search" @click="handleSearch"></el-button> |
| | | </div> |
| | | </el-form> |
| | | </div> |
| | | <el-scrollbar style="height:380.44px;"> |
| | | <div class="environmental-risk-list" v-for="(item,index) in list" :key="index"> |
| | | <el-scrollbar style="height:413px;"> |
| | | <div class="environmental-risk-list" v-for="(item,index) in list" :key="index" :class="activeNum==index?'hover':''"> |
| | | <img class="state" :src="getImgSrc()" style="background: none"/> |
| | | <div> |
| | | <h3 @click="handleLocation(item)">{{ item.properties.pipename }}</h3> |
| | | <h3 @click="handleLocation(item,index)">{{ item.properties.pipename }}</h3> |
| | | <p>所属企业:<span>{{ item.properties.orgcode }}</span> |
| | | <p>设施类型:<span>{{ item.properties.teetype }}</span></p> |
| | | <p>设施类型:<span>{{ item.properties.teetype }}</span> |
| | | <el-button v-if="fuShuSheShiShow" class="rt btn00fff6" size="mini" style="margin-right: 0.04rem;" @click="btnAffiliatedFacilities(item,index)" >附属设施</el-button> |
| | | </p> |
| | | </div> |
| | | </div> |
| | | </el-scrollbar> |
| | |
| | | <SewersHistory></SewersHistory> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | <!-- 附属设施面板 --> |
| | | <affiliated-facilities :facilitiesParameter="facilitiesParameter" v-if="fuShuSheShiShow" ></affiliated-facilities> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import WfsHelper from '@components/helpers/WfsHelper' |
| | | import AjaxUtils from '@utils/AjaxUtils' |
| | | |
| | | import AffiliatedFacilities from '@components/BaseNav/pipeline/AffiliatedFacilities' |
| | | |
| | | // 引入组件内容 |
| | | import SewersAnalysis from '@components/panel/topicSearch/SewersSelect/SewersAnalysis' |
| | | import SewersHistory from '@components/panel/topicSearch/SewersSelect/SewersHistory' |
| | |
| | | name: 'SewersSearch', |
| | | components: { |
| | | SewersAnalysis, |
| | | SewersHistory |
| | | SewersHistory, |
| | | AffiliatedFacilities |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | subItems: LayerPipeLines.layers, |
| | | total: 0, |
| | | form: { |
| | | pipelineType: '管网', |
| | | pipelineType: '管线', |
| | | dataType: '', |
| | | keyword: '' |
| | | }, |
| | | // pageSize: 10, |
| | | // current: 1, |
| | | isWaybillHover: true, |
| | | isRouteHover: false |
| | | isRouteHover: false, |
| | | facilitiesParameter: null, |
| | | fuShuSheShiShow: true, |
| | | fuShuSheShiPanelShow: true, |
| | | activeNum: -1 |
| | | } |
| | | }, |
| | | props: ['title'], |
| | |
| | | handleClick (tab, event) { |
| | | console.log(tab, event) |
| | | }, |
| | | // 设施类型筛选 |
| | | handlePipelineType (val) { |
| | | for (var i = 0; i < this.items.length; i++) { |
| | | this.list = [] |
| | | // debugger |
| | | for (let i = 0; i < this.items.length; i++) { |
| | | const item = this.items[i] |
| | | if (val === item.name) { |
| | | this.subItems = item.layers |
| | |
| | | } |
| | | } |
| | | }, |
| | | handleDataType () { |
| | | this.list = [] |
| | | }, |
| | | async handleSearch () { |
| | | // console.log(this.form.dataType.sname, this.form.keyword) |
| | | this.list = [] |
| | | var wfsHelper = new WfsHelper() |
| | | // todo 现在管网还没区分开类型,后面改 |
| | | wfsHelper.addTypeName(this.form.dataType.sname) |
| | |
| | | this.list = res.features |
| | | } |
| | | }, |
| | | handleLocation (val) { |
| | | const bound = this.L.geoJSON([val], {}).getBounds() |
| | | window.map.flyToBounds(bound) |
| | | window.layerFactory.flyByLayerId(this.form.dataType.code, val.id) |
| | | handleLocation (val, index) { |
| | | this.activeNum = index |
| | | // 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 |
| | | } else { |
| | | this.fuShuSheShiShow = false |
| | | } |
| | | window.layerFactory.flyByFeature(val, this.form.dataType.code) |
| | | } |
| | | } |
| | | } |