lg_frontend/pages/peak-coal-monitoring/PeakCoalMonitoring.vue

319 lines
7.7 KiB
Vue
Raw Normal View History

2024-03-04 13:59:18 +00:00
<!--峰煤监控系统-->
<template>
<div class="peak-coal-monitoring">
2024-03-05 12:02:32 +00:00
<div class="center-panel">
2024-03-08 15:41:54 +00:00
<Map type="middle" @pointClick="pointClick" />
2024-03-05 12:02:32 +00:00
</div>
2024-03-08 15:41:54 +00:00
<div class="header-panel show-top">
2024-03-08 13:34:45 +00:00
<div class="header-content">
2024-06-06 14:09:47 +00:00
<p class="_title">{{ title }}</p>
2024-03-22 15:12:34 +00:00
<p class="_title sub">一体化平台</p>
2024-03-08 13:34:45 +00:00
</div>
2024-03-05 12:02:32 +00:00
</div>
2024-03-08 15:41:54 +00:00
<div class="left-panel show-top">
<div class="pollution-information-module">
<pollution-information/>
</div>
2024-03-05 12:02:32 +00:00
<div class="atmospheric-module-module">
<atmospheric-module />
</div>
<div class="device-online-rate">
<device-online-rate />
2024-03-05 12:02:32 +00:00
</div>
<div class="monitor-data-module">
<monitor-data/>
</div>
</div>
2024-03-08 15:41:54 +00:00
<div class="right-panel show-top">
2024-03-05 12:02:32 +00:00
<div class="energy-profile-module">
<energy-profile/>
</div>
<div class="device-overview-module">
<peak-energy-use/>
2024-03-05 12:02:32 +00:00
</div>
<div class="alarm-overview-module">
<excessive-warning/>
2024-03-05 12:02:32 +00:00
</div>
</div>
2024-03-08 15:41:54 +00:00
<div class="footer-panel show-top"></div>
2024-03-04 13:59:18 +00:00
</div>
</template>
<script>
2024-03-05 12:02:32 +00:00
import AtmosphericModule from "@/components/peak-coal-monitoring/AtmosphericModule";
import PollutionInformation from "@/components/peak-coal-monitoring/PollutionInformation";
import MonitorData from "@/components/peak-coal-monitoring/MonitorData";
import EnergyProfile from "@/components/peak-coal-monitoring/EnergyProfile";
import DeviceOverview from "@/components/peak-coal-monitoring/DeviceOverview";
import AlarmOverview from "@/components/peak-coal-monitoring/AlarmOverview";
2024-03-08 15:41:54 +00:00
import WZDialog from "@/components/WZDialog";
import SDJCYDialog from "@/components/SDJCYDialog";
import ZKZDialog from "@/components/ZKZDialog";
import GBZDialog from "@/components/GBZDialog";
import CEMSDialog from "@/components/CEMSDialog";
import pointDialog from '@/components/PointDialog'
2024-06-06 14:09:47 +00:00
import {mapState} from "vuex";
import DeviceOnlineRate from "@/components/peak-coal-monitoring/DeviceOnlineRate";
import PeakEnergyUse from "@/components/peak-coal-monitoring/PeakEnergyUse";
import ExcessiveWarning from "@/components/peak-coal-monitoring/ExcessiveWarning";
2024-03-04 13:59:18 +00:00
export default {
2024-03-05 12:02:32 +00:00
name: "PeakCoalMonitoring",
components: {
ExcessiveWarning,
PeakEnergyUse,
DeviceOnlineRate,
AlarmOverview, DeviceOverview, EnergyProfile, MonitorData, PollutionInformation, AtmosphericModule},
2024-06-06 14:09:47 +00:00
computed: {
...mapState({
title: state => state.system.title,
})
},
2024-03-08 15:41:54 +00:00
methods: {
/**
* 图层构造器
* @param { object } props
* @param { 'cems' | 'sdjcy' | 'zkz' | 'gbz' | 'ssc' | 'shisc' | 'wz' | 'jkd' } props.layerType 图层类型 jkd(监控点) wz(微站) sdjcy(深度检测仪) zkz质控站 gbz(国标站) ssc(洒水车) shisc(湿扫车) cemsCEMS
* @param { object } props.data 图层类型
*/
pointClick ({layerType, data}) {
// todo
if(layerType == 'wz'){
this.$open(WZDialog, {
type: 'middle'
}, {
screenType: 'middle',
title: '微站',
width: 1100,
onClose () {
console.log(1);
}
})
} else if(layerType === 'sdjcy'){
this.$open(SDJCYDialog, {
type: 'middle'
}, {
screenType: 'custommiddle',
title: '深度检测仪',
width: 1100,
onClose () {
console.log(1);
}
})
}else if(layerType === 'zkz'){
this.$open(ZKZDialog, {
type: 'middle'
}, {
screenType: 'custommiddle',
title: '质控站',
width: 1100,
onClose () {
console.log(1);
}
})
} else if(layerType === 'gbz'){
this.$open(GBZDialog, {
type: 'middle'
}, {
screenType: 'custommiddle',
title: '国标站',
width: 1100,
onClose () {
console.log(1);
}
})
} else if(layerType === 'cems'){
this.$open(CEMSDialog, {
type: 'middle'
}, {
screenType: 'custommiddle',
title: 'CEMS',
width: 1100,
onClose () {
console.log(1);
}
})
} else if (layerType === 'jkd'){
this.$open(pointDialog, {
type: 'middle'
}, {
screenType: 'custommiddle',
title: '监控点',
width: 1100,
onClose () {
console.log(1);
}
})
}
},
}
2024-03-04 13:59:18 +00:00
}
</script>
<style>
body, html, #__nuxt, #__layout {
width: 100%;
height: 100%;
overflow: hidden;
2024-03-05 12:02:32 +00:00
background: #09151F;
2024-03-04 13:59:18 +00:00
}
.list-enter-active, .list-leave-active {
transition: all 0.5s;
}
.list-enter, .list-leave-to
/* .list-leave-active for below version 2.1.8 */
{
opacity: 0;
transform: translateY(30px);
}
</style>
<style scoped lang="less">
@import "../../assets/styles/mixin";
.peak-coal-monitoring {
width: 100%;
height: 100%;
position: relative;
2024-03-08 15:41:54 +00:00
.show-top {
z-index: 2;
}
2024-03-05 12:02:32 +00:00
.header-panel {
2024-03-04 13:59:18 +00:00
position: absolute;
width: 100%;
2024-03-05 12:02:32 +00:00
display: flex;
flex-flow: row;
justify-content: center;
background: url("~/assets/peakCoalMonitoring/header/header-shadow.png") no-repeat;
background-size: 100% 100%;
2024-03-22 15:12:34 +00:00
pointer-events: none;
height: 112px;
2024-03-05 12:02:32 +00:00
.header-content {
width: 100%;
background: url("~/assets/peakCoalMonitoring/header/header-bg.png") no-repeat;
background-size: 100% 100%;
2024-03-22 15:12:34 +00:00
height: 112px;
box-sizing: border-box;
padding-top: 30px;
2024-03-08 13:34:45 +00:00
._title{
width: 100%;
font-family: AlimamaShuHeiTi-Bold;
2024-03-22 15:12:34 +00:00
font-size: 25px;
color: #D8F0FF;
letter-spacing: 7.68px;
text-align: center;
text-shadow: 0 0 11px #000000;
font-weight: 700;
margin: 0;
&.sub {
font-size: 18px;
}
}
.subtitle {
width: 100%;
font-family: AlimamaShuHeiTi-Bold;
font-size: 16px;
2024-03-08 13:34:45 +00:00
color: #D8F0FF;
letter-spacing: 7.68px;
text-align: center;
text-shadow: 0 0 11px #000000;
font-weight: 700;
}
2024-03-05 12:02:32 +00:00
}
}
.left-panel {
width: 430px;
position: absolute;
left: 20px;
height: 960px;
top: 50%;
transform: translateY(-50%);
2024-03-08 15:41:54 +00:00
pointer-events: auto;
2024-03-05 12:02:32 +00:00
.flex-column;
2024-03-08 15:41:54 +00:00
background: url("~/assets/peakCoalMonitoring/left/bg.png") left bottom no-repeat;
background-size: 100% 100%;
box-sizing: border-box;
2024-03-08 15:46:37 +00:00
padding: 10px;
padding-right: 0;
2024-03-05 12:02:32 +00:00
.atmospheric-module-module{
height: 230px;
2024-03-05 12:02:32 +00:00
width: 100%;
}
.device-online-rate{
height: 230px;
}
2024-03-05 12:02:32 +00:00
.pollution-information-module{
height: 260px;
width: 100%;
}
.monitor-data-module{
flex: 1;
height: 0;
width: 100%;
}
}
.right-panel {
width: 430px;
position: absolute;
right: 20px;
height: 960px;
top: 50%;
transform: translateY(-50%);
2024-03-08 15:41:54 +00:00
background: url("~/assets/peakCoalMonitoring/right/bg.png") left bottom no-repeat;
background-size: 100% 100%;
box-sizing: border-box;
2024-03-08 15:46:37 +00:00
padding: 10px;
padding-left: 0;
2024-03-05 12:02:32 +00:00
.flex-column;
2024-03-08 15:41:54 +00:00
pointer-events: auto;
2024-03-05 12:02:32 +00:00
.energy-profile-module{
height: 336px;
width: 100%;
}
.device-overview-module{
height: 260px;
width: 100%;
}
.alarm-overview-module{
flex: 1;
height: 0;
width: 100%;
}
}
.center-panel{
width: 100%;
height: 100%;
position: absolute;
left: 0;
}
.footer-panel{
width: 100%;
2024-03-08 15:41:54 +00:00
height: 43px;
background: url("~/assets/peakCoalMonitoring/footer/footer-bg.png") left bottom no-repeat;
2024-03-05 12:02:32 +00:00
background-size: 100% 100%;
position: absolute;
bottom: -6px;
2024-03-08 15:41:54 +00:00
pointer-events: auto;
2024-03-04 13:59:18 +00:00
}
}
</style>