163 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			Vue
		
	
	
	
			
		
		
	
	
			163 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			Vue
		
	
	
	
<!--能源使用情况-->
 | 
						|
<template>
 | 
						|
  <div class="energy-use">
 | 
						|
    <peak-secondary-title :title="title"></peak-secondary-title>
 | 
						|
    <div class="electricity-water-usage">
 | 
						|
      <div class="electricity-usage">
 | 
						|
        <div class="electricity-icon"></div>
 | 
						|
        <div class="electricity-info">
 | 
						|
          <div class="_title">今日VOC排放[t]</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">今日SEMES排放[t]</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";
 | 
						|
import PeakSecondaryTitle from "@/components/peak-coal-monitoring/PeakSecondaryTitle";
 | 
						|
export default {
 | 
						|
  name: "PeakEnergyUse",
 | 
						|
  components: {PeakEnergyUseChart, PeakThirdLevelLabel, ElectricityWaterCharts,PeakSecondaryTitle},
 | 
						|
  data() {
 | 
						|
    return {
 | 
						|
      title: 'VOC、SEMES排放统计',
 | 
						|
      thirdLevelLabel: '历史排放统计(周)',
 | 
						|
      electricityWaterDataSource: [
 | 
						|
        {
 | 
						|
          name: '周一',
 | 
						|
          value1: '10',
 | 
						|
          value2: '30',
 | 
						|
          value3: '20'
 | 
						|
        },
 | 
						|
        {
 | 
						|
          name: '周二',
 | 
						|
          value1: '30',
 | 
						|
          value2: '20',
 | 
						|
          value3: '10'
 | 
						|
        },
 | 
						|
        {
 | 
						|
          name: '周三',
 | 
						|
          value1: '20',
 | 
						|
          value2: '10',
 | 
						|
          value3: '20'
 | 
						|
        },
 | 
						|
        {
 | 
						|
          name: '周四',
 | 
						|
          value1: '20',
 | 
						|
          value2: '30',
 | 
						|
          value3: '60'
 | 
						|
        },
 | 
						|
        {
 | 
						|
          name: '周五',
 | 
						|
          value1: '30',
 | 
						|
          value2: '40',
 | 
						|
          value3: '50'
 | 
						|
        },
 | 
						|
        {
 | 
						|
          name: '周六',
 | 
						|
          value1: '10',
 | 
						|
          value2: '20',
 | 
						|
          value3: '30'
 | 
						|
        },
 | 
						|
        {
 | 
						|
          name: '周日',
 | 
						|
          value1: '16',
 | 
						|
          value2: '17',
 | 
						|
          value3: '18'
 | 
						|
        }
 | 
						|
      ],
 | 
						|
      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>
 |