2024-03-05 12:02:32 +00:00
|
|
|
<template>
|
|
|
|
|
<div class="energy-profile">
|
2024-06-07 12:42:14 +00:00
|
|
|
<peak-secondary-title :title="title"></peak-secondary-title>
|
2024-03-05 12:02:32 +00:00
|
|
|
<div class="_tab">
|
|
|
|
|
<div class="tab-item" v-for="item of tabList" :class="item.value === activeTab?'active-tab':''"
|
|
|
|
|
@click="tabChange(item.value)">{{ item.label }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="energy-content">
|
|
|
|
|
<div class="peak-energy-use" v-if="activeTab === 1">
|
2024-06-07 12:42:14 +00:00
|
|
|
<peak-warning-type-chart :data-source="warningTypeDataSource"/>
|
2024-03-05 12:02:32 +00:00
|
|
|
</div>
|
2024-06-07 12:42:14 +00:00
|
|
|
<div class="peak-enterprise-operations" v-if="activeTab === 2">
|
|
|
|
|
<peak-warning-type-chart :data-source="warningTypeDataSource"/>
|
2024-03-05 12:02:32 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import PeakSecondaryTitle from "@/components/peak-coal-monitoring/PeakSecondaryTitle";
|
2024-06-07 12:42:14 +00:00
|
|
|
import PeakWarningTypeChart from "@/components/charts/PeakWarningTypeChart";
|
2024-03-05 12:02:32 +00:00
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "EnergyProfile",
|
2024-06-07 12:42:14 +00:00
|
|
|
components: {PeakSecondaryTitle, PeakWarningTypeChart},
|
2024-03-05 12:02:32 +00:00
|
|
|
data() {
|
|
|
|
|
return {
|
2024-06-07 12:42:14 +00:00
|
|
|
title: '清洁运输情况',
|
2024-03-05 12:02:32 +00:00
|
|
|
tabList: [
|
|
|
|
|
{
|
2024-06-07 12:42:14 +00:00
|
|
|
label: '昨日清洁运输比例',
|
2024-03-05 12:02:32 +00:00
|
|
|
value: 1
|
|
|
|
|
},
|
|
|
|
|
{
|
2024-06-07 12:42:14 +00:00
|
|
|
label: '上周清洁运输比例',
|
2024-03-05 12:02:32 +00:00
|
|
|
value: 2
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-06-07 12:42:14 +00:00
|
|
|
activeDateTab: '0',
|
|
|
|
|
activeTab: 1,
|
|
|
|
|
warningTypeDataSource: [
|
2024-03-08 13:34:45 +00:00
|
|
|
{
|
2024-06-07 12:42:14 +00:00
|
|
|
name: '水运',
|
|
|
|
|
value: 214,
|
|
|
|
|
rate: '38%'
|
2024-03-08 13:34:45 +00:00
|
|
|
},
|
|
|
|
|
{
|
2024-06-07 12:42:14 +00:00
|
|
|
name: '铁路',
|
|
|
|
|
value: 342,
|
|
|
|
|
rate: '32%'
|
2024-03-08 13:34:45 +00:00
|
|
|
},
|
|
|
|
|
{
|
2024-06-07 12:42:14 +00:00
|
|
|
name: '管道',
|
|
|
|
|
value: 12,
|
|
|
|
|
rate: '30%'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '国六',
|
|
|
|
|
value: 12,
|
|
|
|
|
rate: '30%'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: '新能源',
|
|
|
|
|
value: 12,
|
|
|
|
|
rate: '30%'
|
2024-03-08 13:34:45 +00:00
|
|
|
}
|
2024-06-07 12:42:14 +00:00
|
|
|
]
|
2024-03-05 12:02:32 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
tabChange(val) {
|
|
|
|
|
this.activeTab = val
|
2024-06-07 12:42:14 +00:00
|
|
|
}
|
2024-03-05 12:02:32 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
|
|
@import "assets/styles/mixin";
|
|
|
|
|
|
|
|
|
|
.energy-profile {
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
.flex-column;
|
|
|
|
|
|
|
|
|
|
._tab {
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 30px;
|
|
|
|
|
.flex-row;
|
|
|
|
|
|
|
|
|
|
.tab-item {
|
|
|
|
|
width: 50%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
font-family: MicrosoftYaHei-Bold;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: #FFFFFF;
|
|
|
|
|
letter-spacing: 0;
|
|
|
|
|
text-align: center;
|
|
|
|
|
text-shadow: 0 2px 2px rgba(0, 0, 0, 0.50);
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.active-tab {
|
|
|
|
|
background: url("~/assets/peakCoalMonitoring/common/tab-active-bg.png") no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.energy-content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
height: 0;
|
2024-06-07 12:42:14 +00:00
|
|
|
|
|
|
|
|
.peak-energy-use {
|
2024-03-05 12:02:32 +00:00
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-07 12:42:14 +00:00
|
|
|
.peak-enterprise-operations {
|
2024-03-05 12:02:32 +00:00
|
|
|
height: 100%;
|
|
|
|
|
}
|
2024-06-07 12:42:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
._bg {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 26px;
|
|
|
|
|
top: 24px;
|
|
|
|
|
width: 120px;
|
|
|
|
|
height: 120px;
|
|
|
|
|
background: url("~/assets/peakCoalImages/right/warning-type-pie-bg.png") no-repeat;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
}
|
2024-03-05 12:02:32 +00:00
|
|
|
}
|
2024-03-08 13:34:45 +00:00
|
|
|
|
|
|
|
|
.right-tab {
|
|
|
|
|
height: 100%;
|
|
|
|
|
.flex-row;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
width: 220px;
|
|
|
|
|
|
|
|
|
|
.tab-type {
|
|
|
|
|
margin-bottom: 15px;
|
|
|
|
|
width: 67px;
|
|
|
|
|
height: 30px;
|
|
|
|
|
.bg("~/assets/peakCoalImages/left/pollutant-type-default-bg.png");
|
|
|
|
|
font-family: MicrosoftYaHei;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
color: rgba(216, 240, 255, 0.50);
|
|
|
|
|
letter-spacing: 0;
|
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
text-shadow: 0 0 11px #0091FF;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.active-tab {
|
|
|
|
|
.bg("~/assets/peakCoalImages/left/pollutant-type-active-bg.png");
|
|
|
|
|
color: #D8F0FF;
|
|
|
|
|
text-shadow: 0 0 33px #0091FF;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-03-05 12:02:32 +00:00
|
|
|
}
|
|
|
|
|
</style>
|