lg_frontend/components/peak-coal-monitoring/PeakEnergyUse.vue

168 lines
3.4 KiB
Vue

<!--能源使用情况-->
<template>
<div class="energy-use">
<div class="electricity-water-usage">
<div class="electricity-usage">
<div class="electricity-icon"></div>
<div class="electricity-info">
<div class="_title">今日用电[kwh]</div>
<div class="_value">
<Number :num="1244"/>
</div>
</div>
</div>
<div class="water-usage">
<div class="water-icon"></div>
<div class="water-info">
<div class="_title">今日用水[]</div>
<div class="_value">
<Number :num="185"/>
</div>
</div>
</div>
</div>
<peak-third-level-label :title="thirdLevelLabel"/>
<div class="electricity-water-trends">
<peak-energy-use-chart :data-source="electricityWaterDataSource"/>
</div>
</div>
</template>
<script>
import ElectricityWaterCharts from "@/components/charts/ElectricityWaterCharts";
import PeakThirdLevelLabel from "@/components/peak-coal-monitoring/PeakThirdLevelLabel";
import PeakEnergyUseChart from "@/components/charts/PeakEnergyUseChart";
export default {
name: "PeakEnergyUse",
components: {PeakEnergyUseChart, PeakThirdLevelLabel, ElectricityWaterCharts},
data() {
return {
title: '能源使用情况',
thirdLevelLabel: '水电使用情况',
electricityWaterDataSource: [
{
name: '00:00',
value1: '10',
value2: '30',
value3: '20'
},
{
name: '01:00',
value1: '30',
value2: '20',
value3: '10'
},
{
name: '02:00',
value1: '20',
value2: '10',
value3: '20'
},
{
name: '03:00',
value1: '20',
value2: '30',
value3: '60'
},
{
name: '04:00',
value1: '30',
value2: '40',
value3: '50'
},
{
name: '05:00',
value1: '10',
value2: '20',
value3: '30'
},
{
name: '06:00',
value1: '16',
value2: '17',
value3: '18'
},
{
name: '07:00',
value1: '30',
value2: '20',
value3: '10'
}
],
electricityWaterTab: 0
}
},
methods: {
}
}
</script>
<style scoped lang="less">
@import "assets/styles/mixin";
.energy-use {
height: 100%;
width: 100%;
.flex-column;
.electricity-water-usage {
height: 80px;
.flex-row;
justify-content: space-between;
.electricity-usage {
.flex-row;
.electricity-icon {
width: 49px;
height: 49px;
.bg("~/assets/peakCoalMonitoring/right/electricity-icon.png");
}
.electricity-info {
padding-left: 20px;
}
}
.water-usage {
.flex-row;
.water-icon {
width: 49px;
height: 49px;
.bg("~/assets/peakCoalMonitoring/right/water-icon.png");
}
.water-info {
padding-left: 20px;
}
}
._title {
font-family: MicrosoftYaHei;
font-size: 14px;
color: #6AC4FF;
letter-spacing: 2.26px;
font-weight: 400;
}
._value {
font-family: YouSheBiaoTiHei;
font-size: 20px;
color: #FFFFFF;
letter-spacing: 5.64px;
font-weight: 400;
}
}
.electricity-water-trends {
flex: 1;
height: 0;
}
}
</style>