Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop
Conflicts:
src/components/BaseNav/PublicBounced/GasComponents/PublicTable.vue
src/components/BaseNav/PublicBounced/PublicBounced.vue
src/components/LayerController/logic/WasteGas.js
src/components/panel/ToolBoxPanel.vue
src/views/MapTemplate.vue
| | |
| | | .popper__arrow { |
| | | display: none !important; |
| | | } |
| | | |
| | | .el-tabs--card>.el-tabs__header .el-tabs__nav{ |
| | | border: none; |
| | | } |
| | | |
| | | .el-tabs--card>.el-tabs__header .el-tabs__item{ |
| | | border: none; |
| | | margin-left: 10px; |
| | | } |
| | | |
| | | |
| | |
| | | <template> |
| | | <!-- 框 --> |
| | | <div class="win"> |
| | | <div class="main"> |
| | | <div class="main-matter"> |
| | | <el-row type="flex" class="row-bg row-item-one" justify="space-around"> |
| | | <el-col :span="6">氮氧化物:{{ displayContent.Name }} 标准: 100</el-col> |
| | | <el-col :span="6">二氧化硫:{{ displayContent.DeptSname }} 标准: 50</el-col> |
| | | <el-col :span="6">烟尘:{{ displayContent.EmissTypeName }} 标准: 30</el-col> |
| | | <el-col :span="6">废气流量:{{ displayContent.EmissTypeName }}</el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | <div class="Infomation"> |
| | | <el-tag>氮氧化物: 29.93 标准: 100</el-tag> |
| | | <el-tag>二氧化硫: 17.34标准: 50</el-tag> |
| | | <el-tag>烟尘: 6.93标准: 30</el-tag> |
| | | <el-tag>废气流量: 120343.18</el-tag> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | |
| | | .win { |
| | | position: relative; |
| | | margin-bottom: 13px; |
| | | background-color: rgba(33, 41, 69,0.9); |
| | | .Infomation{ |
| | | margin-left: 10px; |
| | | } |
| | | .main { |
| | | width: 100%; |
| | | height: 100%; |
| | | .main-matter{ |
| | | font-size: 13px; |
| | | font-weight: normal; |
| | | border: 1px solid #396d83; |
| | | .row-item-one{ |
| | | margin-bottom: 7px; |
| | | } |
| | | .el-row { |
| | | width: 100%; |
| | | .el-tag{ |
| | | height: 25px; |
| | | line-height: 25px; |
| | | margin-right: 10px; |
| | | font-size: 10px; |
| | | background-color: rgba(0, 255, 246, 0.14); |
| | | color: #00d0f9; |
| | | display: flex; |
| | | font-size: 12px !important; |
| | | .el-col{ |
| | | flex: 1; |
| | | width: 100%; |
| | | background-color: #243a55;; |
| | | text-align: center; |
| | | line-height: 28px; |
| | | margin-left: 6px; |
| | | border-radius: 4px; |
| | | &:nth-child(1){ |
| | | margin-left:0; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | border: none; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <div class="main"> |
| | | <div id="echarts" ref="main"></div> |
| | | </div> |
| | | <div style="width:670px;height:260px;" id="echarts" ref="main"></div> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | } |
| | | }, |
| | | legend: { |
| | | data: ['氮氧化物', '二氧化硫', '烟尘', '废气流量'] |
| | | x: '200px', |
| | | y: '30px', |
| | | data: [{ |
| | | name: '氮氧化物', |
| | | textStyle: { |
| | | color: '#00d0f9' |
| | | } |
| | | }, |
| | | { |
| | | name: '二氧化硫', |
| | | textStyle: { |
| | | color: '#00d0f9' |
| | | } |
| | | }, |
| | | { |
| | | name: '烟尘', |
| | | textStyle: { |
| | | color: '#00d0f9' |
| | | } |
| | | }, |
| | | { |
| | | name: '废气流量', |
| | | textStyle: { |
| | | color: '#00d0f9' |
| | | } |
| | | }] |
| | | // pageTextStyle: { |
| | | // color: '#fff' |
| | | // } |
| | |
| | | left: '3%', |
| | | right: '1%', |
| | | bottom: '3%', |
| | | top: '10%', |
| | | // top: '1%', |
| | | containLabel: true |
| | | }, |
| | | toolbox: { |
| | |
| | | // Y 轴的设置 |
| | | yAxis: [{ |
| | | type: 'value', |
| | | // position: 'left', // 多 Y 轴使用 |
| | | // name: yname, // 后期图标Y轴显示单位 |
| | | name: '浓度(mg/m³)', |
| | | axisLabel: { |
| | |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | .main{ |
| | | background: rgba(255, 255, 255, 0.1); |
| | | } |
| | | #echarts{ |
| | | width: 600px; |
| | | height: 260px; |
| | | position: relative; |
| | | width: 670px!important; |
| | | height: 260px!important; |
| | | //position: relative; |
| | | margin: 0; |
| | | padding: 0; |
| | | /*background-color: rgba(0, 0, 0, 0.6);*/ |
| | | border: 1px solid #396d83; |
| | | margin: 10px 10px 10px 10px; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <div> |
| | | <el-tabs v-model="activeName"> |
| | | <el-tab-pane label="实试数据" name="first">实试数据</el-tab-pane> |
| | | <el-tab-pane label="日数据" name="second">日数据</el-tab-pane> |
| | | <el-tab-pane label="月数据" name="third">月数据</el-tab-pane> |
| | | <el-tab-pane label="人工数据" name="fourth">人工数据</el-tab-pane> |
| | | <div class="win"> |
| | | <div class="border_corner border_corner_left_top"></div> |
| | | <div class="border_corner border_corner_right_top"></div> |
| | | <div class="border_corner border_corner_left_bottom"></div> |
| | | <div class="border_corner border_corner_right_bottom"></div> |
| | | <el-tabs type="card" v-model="activeName"> |
| | | <el-tab-pane label="实试数据" name="first"> |
| | | <EchartsTab></EchartsTab> |
| | | <GasECharts></GasECharts> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="日数据" name="second"><EchartsTab></EchartsTab><GasECharts></GasECharts></el-tab-pane> |
| | | <el-tab-pane label="月数据" name="third"><EchartsTab></EchartsTab><GasECharts></GasECharts></el-tab-pane> |
| | | <el-tab-pane label="人工数据" name="fourth"><EchartsTab></EchartsTab><GasECharts></GasECharts></el-tab-pane> |
| | | </el-tabs> |
| | | <!-- <EchartsTab></EchartsTab>--> |
| | | <!-- <GasECharts></GasECharts>>--> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | // import GasECharts from '@components/BaseNav/PublicBounced/GasComponents/GasECharts' |
| | | import GasECharts from './GasECharts' |
| | | import EchartsTab from './EchartsTab' |
| | | |
| | | export default { |
| | | name: 'GasTabs', |
| | | components: {} |
| | | // GasECharts |
| | | components: { |
| | | GasECharts, |
| | | EchartsTab |
| | | }, |
| | | data () { |
| | | return { |
| | | activeName: 'first' |
| | | } |
| | | }, |
| | | methods: { |
| | | handleClick (tab, event) { |
| | | console.log(tab, event) |
| | | } |
| | | } |
| | | } |
| | | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | .win { |
| | | position: relative; |
| | | margin-bottom: 13px; |
| | | background-color: rgba(33, 41, 69,0.9); |
| | | border: 0.8px solid #396d83; |
| | | } |
| | | .border_corner{ |
| | | z-index: 999; |
| | | position: absolute; |
| | | width: 10px; |
| | | height: 10px; |
| | | background: rgba(0,0,0,0); |
| | | border: 1.5px solid #47d5ea; |
| | | } |
| | | .border_corner_left_top{ |
| | | top: 0; |
| | | left: 0; |
| | | border-right: none; |
| | | border-bottom: none; |
| | | } |
| | | .border_corner_right_top{ |
| | | top: 0; |
| | | right: 0; |
| | | border-left: none; |
| | | border-bottom: none; |
| | | } |
| | | .border_corner_left_bottom{ |
| | | bottom: 0; |
| | | left: 0; |
| | | border-right: none; |
| | | border-top: none; |
| | | } |
| | | .border_corner_right_bottom{ |
| | | bottom: 0; |
| | | right: 0; |
| | | border-left: none; |
| | | border-top: none; |
| | | } |
| | | </style> |
| | |
| | | DrawWasteWaterContent (data) { |
| | | // 图标样式扩展 |
| | | const WasteWaterIcon = this.WasteWaterIcon() |
| | | |
| | | // //加载数据前如果存在图层组 那么清除掉 |
| | | if (this.WasteWaterLayerGroup) { |
| | | this.WasteWaterLayerGroup.clearLayers() |
| | |
| | | layer: layer |
| | | }) |
| | | const res = await mapApi.getCompany() |
| | | console.log(res) |
| | | // console.log(res) |
| | | const data = res.Result.DataInfo || {} |
| | | for (let i = 0; i < data.length; i++) { |
| | | console.log(data[i]) |
| | | // console.log(data[i]) |
| | | // 经纬度 位置 |
| | | const positionX = data[i].Latitude |
| | | const positionY = data[i].Longitude |
| | |
| | | iconUrl: iconUrl, |
| | | iconSize: [50, 50], |
| | | iconAnchor: [25, 25] |
| | | }), |
| | | test: data[i] |
| | | }) |
| | | marker.bindTooltip(data[i].name, { |
| | | permanent: true, |
| | | offset: [0, -16], |
| | | direction: 'top', |
| | | className: '' |
| | | }) |
| | | |
| | | layer.addLayer(marker) |
| | |
| | | } |
| | | |
| | | this.bindTooltip = (layer) => { |
| | | console.log(layer) |
| | | return '企业' |
| | | // console.log(layer) |
| | | // return layer.options.test.name |
| | | } |
| | | |
| | | this.clickListener = (e) => { |
| | | this.animalService.pulseEffect(e.latlng) |
| | | // this.animalService.pulseEffect(e.latlng) |
| | | console.log(e) |
| | | return this.PublicBounced.$el |
| | | // return this.PublicBounced.$el |
| | | } |
| | | } |
| | |
| | | test: data[i], |
| | | icon: L.icon({ |
| | | iconUrl: iconUrl, |
| | | iconSize: [20, 20], |
| | | iconSize: [50, 50], |
| | | iconAnchor: [25, 25] |
| | | }) |
| | | }) |
| | |
| | | <img :src="itemT.icon" :title="itemT.title" alt="" v-else/> |
| | | </el-button> |
| | | <div class="base-map-inner-panel" v-show="item.index==='2'"> |
| | | <div v-for="item in basemapList" :key="item.code" class="basemap-layer-item"> |
| | | <div v-for="item in basemapHelper.basemapList" :key="item.code" class="basemap-layer-item"> |
| | | <img class="base-map-img" width="50" height="50" :src="item.conf.icon_actived" :title="item.name" |
| | | @click="changeBasemap(item)" alt=""/> |
| | | <el-checkbox class="base-map-anno" name="basemap" v-model="item.conf.annotationCheck" |
| | |
| | | return this.$store.state.map.basemapHelper |
| | | } |
| | | }, |
| | | watch: { |
| | | basemapHelper (newVal) { |
| | | if (newVal != null) { |
| | | this.updateBasemapList() |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | updateBasemapList () { |
| | | this.basemapList = this.basemapHelper.getBasemapList() |
| | | init (map) { |
| | | this.map = map |
| | | this.toolBoxPanelVisible = true |
| | | }, |
| | | changeBasemap (itm) { |
| | | this.active = -1 |
| | | const code = itm.code |
| | | this.basemapList.forEach((item) => { |
| | | this.basemapHelper.basemapList.forEach((item) => { |
| | | if (item.code === code) { |
| | | console.log(this.currentBaseMapCode) |
| | | if (this.currentBaseMapCode == null || this.currentBaseMapCode !== code) { |
| | | this.currentBaseMapCode = code |
| | | this.basemapHelper.showBasemap(item.code, item.conf.annotationCheck, true) |
| | |
| | | this.basemapHelper.showBasemap(item.code, item.conf.annotationCheck, false) |
| | | } |
| | | |
| | | this.basemapHelper.getBasemapList().forEach((item) => { |
| | | this.basemapHelper.basemapList.forEach((item) => { |
| | | item.layer.bringToBack() |
| | | }) |
| | | } |
| | |
| | | this.drawLayer = this.L.layerGroup().addTo(this.map) |
| | | } |
| | | this.active = index |
| | | console.log(this.basemapList) |
| | | for (let i = 0; i < this.isShow.length; i++) { |
| | | if (i !== index) { |
| | | this.isShow[i] = false |
| | |
| | | } |
| | | // debugger |
| | | this.isShow[index] = !this.isShow[index] |
| | | this.isShow[index] ? (this.active = index) : (this.active = '') |
| | | }, |
| | | choiceItem (itemT, indexT) { |
| | | this.Selecd = indexT |
| | |
| | | lcServiceLayerVisible: false, |
| | | basemapHelper: {}, |
| | | serviceLayerHelper: {}, |
| | | vectorLayerHelper: {} |
| | | vectorLayerHelper: {}, |
| | | toolBoxVisible: false |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | init () { |
| | | const mapcontainer = this.$refs.rootmap |
| | | this.map = Sgis.initMap(mapcontainer) |
| | | this.$refs.toolBox.map = this.map |
| | | |
| | | window.popupComp = this.$refs.popup |
| | | var layerFactory = new LayerFactory({ |
| | |
| | | |
| | | // this.AddGasHelper() |
| | | // this.ChangeWaterState() |
| | | |
| | | this.$refs.toolBox.init(this.map) |
| | | this.saveMapStatus() |
| | | // this.setMapObj(this.mapObj) |
| | | // this.setBasemapHelper(this.basemapHelper) |