From d61bc43c06c8e9162d8c4326ba6098cce61934a1 Mon Sep 17 00:00:00 2001
From: wangqi <magical1908@outlook.com>
Date: 星期四, 01 四月 2021 17:49:02 +0800
Subject: [PATCH] 废气查询面板
---
src/components/panel/topicSearch/GasWasteSearch.vue | 244 ++++++++++++++++++++++++++++++++++++++++++++++++
src/components/BaseNav/PublicBounced/GasComponents/PublicTabs.vue | 2
2 files changed, 245 insertions(+), 1 deletions(-)
diff --git a/src/components/BaseNav/PublicBounced/GasComponents/PublicTabs.vue b/src/components/BaseNav/PublicBounced/GasComponents/PublicTabs.vue
index c28589c..80723ff 100644
--- a/src/components/BaseNav/PublicBounced/GasComponents/PublicTabs.vue
+++ b/src/components/BaseNav/PublicBounced/GasComponents/PublicTabs.vue
@@ -11,7 +11,7 @@
<div v-if="value === 'feiqi'">
<el-row type="flex" class="row-bg row-item-one" justify="space-around">
<el-col :span="8">鐩戞祴鐐瑰悕绉�:{{ setWasteGasdata.Name }}</el-col>
- <el-col :span="8">鐢熶骇鍗曚綅:{{ setWasteGasdata.DeptSname }}</el-col>
+ <el-col :span="8">鐢熶骇鍗曚綅:{{ setWasteGasdata.porltName }}</el-col>
<el-col :span="8">鎺掓斁绫诲瀷鍚嶇О:{{ setWasteGasdata.MonTypeName }}</el-col>
</el-row>
<el-row type="flex" class="row-bg" justify="space-around">
diff --git a/src/components/panel/topicSearch/GasWasteSearch.vue b/src/components/panel/topicSearch/GasWasteSearch.vue
index e69de29..245b226 100644
--- a/src/components/panel/topicSearch/GasWasteSearch.vue
+++ b/src/components/panel/topicSearch/GasWasteSearch.vue
@@ -0,0 +1,244 @@
+<template>
+ <div class="solidwaste-search" v-if="judgeVisible">
+ <div class="search-title">
+ <span>搴熸皵</span>
+ <!-- <span>{{ title }}</span>-->
+ </div>
+ <div class="search-panel ">
+ <el-form ref="form" :model="form" label-width="90px" class="search-form">
+ <el-form-item v-for="(item,index) in solidWasteTypeOptions" :key="index" :label="item.label+'锛�'" size="mini"
+ class="search-panel-item">
+ <el-select style="width: 100%" v-model="form.pipelineType" @change="handlePipelineType"
+ :popper-class="'select-down'">
+ <el-option
+ v-for="item in solidWasteTypeOptions"
+ :key="item.value"
+ :label="item.label"
+ :value="item.value">
+ </el-option>
+ </el-select>
+ </el-form-item>
+ <el-input v-model="form.keyword" size="mini" placeholder="鍦ㄦ杈撳叆鍏抽敭瀛楁悳绱�">
+ <i slot="suffix" class="search-btn el-input__icon el-icon-search" @click="handleSearch"></i>
+ </el-input>
+ <div class="search-radio">
+ <el-radio v-model="radio" label="1">鍏ㄩ儴</el-radio>
+ <el-radio v-model="radio" label="2">姝e父</el-radio>
+ <el-radio v-model="radio" label="3">瓒呮爣</el-radio>
+ <el-radio v-model="radio" label="4">寮傚父</el-radio>
+ <el-radio v-model="radio" label="5">鍋滀骇</el-radio>
+ </div>
+ </el-form>
+ <div>
+ <el-card class="box-card" v-for="(item,index) in searchDataDisplay" :key="index">
+ <div v-if="total > 3">
+ {{ item.CompanyName }}
+ </div>
+ </el-card>
+<!-- <el-pagination-->
+<!-- small-->
+<!-- layout="prev, pager, next"-->
+<!-- :total=total-->
+<!-- :current-page=1-->
+<!-- class="warnPagination"-->
+<!-- >-->
+<!-- </el-pagination>-->
+ </div>
+ <!-- <el-scrollbar style="height:100%">-->
+ <!-- <el-card class="footer-page">-->
+ <!-- <ul>-->
+ <!-- {{ searchDataDisplay }}-->
+ <!-- <li v-for="(item,index) in searchDataDisplay" :key="index">-->
+ <!-- {{ item.CompanyName }}-->
+ <!-- </li>-->
+ <!-- </ul>-->
+ <!-- </el-card>-->
+ <!-- <el-pagination-->
+ <!-- small-->
+ <!-- @current-change="handlePage"-->
+ <!-- :page-size=pageSize-->
+ <!-- layout="prev, pager, next"-->
+ <!-- :total=total-->
+ <!-- :current-page=current-->
+ <!-- class="warnPagination"-->
+ <!-- >-->
+ <!-- </el-pagination>-->
+ <!-- </el-card>-->
+ <!-- </el-scrollbar>-->
+ </div>
+ </div>
+</template>
+
+<script>
+
+import mapApi from '@/api/mapApi'
+
+export default {
+ name: 'SolidWasteSearch',
+ props: ['title'],
+ data () {
+ return {
+ judgeVisible: true,
+ solidWasteTypeOptions: [{
+ value: '1',
+ label: '鍖哄煙',
+ options: [{
+ value: '1',
+ layerName: '鍥哄簾',
+ key: 'pipename',
+ label: '鍏ㄩ儴鍥哄簾'
+ }],
+ labelList: [{
+ label: '杈撻�佷粙璐�',
+ key: 'mediumtype'
+ }, {
+ label: '闀垮害(m)',
+ key: 'length'
+ }]
+ }, {
+ value: '2',
+ label: '浼佷笟鍚嶇О',
+ options: [{
+ value: '1',
+ layerName: '鍥哄簾',
+ key: 'pipename',
+ label: '鍏ㄩ儴鍥哄簾'
+ }],
+ labelList: [{
+ label: '杈撻�佷粙璐�',
+ key: 'mediumtype'
+ }, {
+ label: '闀垮害(m)',
+ key: 'length'
+ }]
+ }, {
+ value: '3',
+ label: '浜岀骇鍗曚綅',
+ options: [{
+ value: '1',
+ layerName: '鍥哄簾',
+ key: 'pipename',
+ label: '鍏ㄩ儴鍥哄簾'
+ }],
+ labelList: [{
+ label: '杈撻�佷粙璐�',
+ key: 'mediumtype'
+ }, {
+ label: '闀垮害(m)',
+ key: 'length'
+ }]
+ }, {
+ value: '4',
+ label: '浼佷笟鍚嶇О',
+ options: [{
+ value: '1',
+ layerName: '鍥哄簾',
+ key: 'pipename',
+ label: '鍏ㄩ儴鍥哄簾'
+ }],
+ labelList: [{
+ label: '杈撻�佷粙璐�',
+ key: 'mediumtype'
+ }, {
+ label: '闀垮害(m)',
+ key: 'length'
+ }]
+ }],
+ radio: '1',
+ form: {
+ keyword: '杈撳叆鍏抽敭瀛�'
+ },
+ searchDataDisplay: [],
+ total: 0
+ }
+ },
+ methods: {
+ handlePipelineType (val) {
+ this.solidWasteTypeOptions.forEach((itm) => {
+ if (val === itm.value) {
+ this.dataTypeOptions = itm.options
+ this.form.pipelineType = itm.label
+ this.form.labelList = itm.labelList
+ }
+ })
+ this.form.dataType = this.dataTypeOptions[0].label
+ this.form.key = this.dataTypeOptions[0].key
+ },
+ // 鐐瑰嚮鎼滅储瀹炵幇鏁版嵁鐨勬悳绱㈠睍绀�
+ async handleSearch () {
+ // console.log(this.form.keyword)
+ const result = await mapApi.getWasteGas()
+ console.log(result)
+ this.searchDataDisplay = result.Result.DataInfo
+ this.total = result.Result.DataInfo.length
+ },
+ handleLocation (val) {
+ // console.log(val)
+ const bound = this.L.geoJSON([val], {}).getBounds()
+ var layer = window.serviceLayerHelper.getByLayerId(val.id)
+ layer && layer.openPopup()
+ this.$store.state.map.map.flyToBounds(bound)
+ }
+ }
+}
+</script>
+
+<style lang="less" scoped>
+
+.solidwaste-search {
+ position: relative;
+ overflow: hidden;
+ background-color: #365e60;
+
+ .search-panel {
+ background-color: transparent;
+ border: 1px solid @background-color-split;
+ padding: 10px;
+
+ /deep/ input {
+ border-radius: 0;
+ background-color: @background-color-split;
+ border: solid 1px @color;
+ color: @color-gray;
+ font-size: 0.01rem;
+
+ .el-select .el-input.is-focus .el-input__inner {
+ border-color: @color;
+ margin-top: 13px;
+ }
+ }
+
+ /deep/ input:focus {
+ border-color: @color;
+ }
+ }
+
+ .search-btn {
+
+ }
+
+ /deep/.search-radio {
+ margin: 6px 0;
+ display: flex;
+ flex-wrap: wrap;
+ //justify-content: flex-end;
+ //align-content: space-between;
+ .el-radio {
+ color: #ffffff!important;
+ line-height: 2;
+ .el-radio__label{
+ padding-left: 0px;
+ }
+ }
+ }
+
+ .location-btn:hover, .el-input__icon:hover {
+ color: @color;
+ cursor: pointer;
+ }
+
+ .box-card {
+ margin: 15px auto;
+ }
+}
+</style>
--
Gitblit v1.8.0