<template>
  <div id="bottomRight">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span style="color:#5cd9e8">
          <icon name="chart-area"></icon>
        </span>

        <div class="d-flex">
          <span class="fs-xl text mx-2">天然气消耗量</span>
          <div class="decoration2">
            <dv-decoration-2 :reverse="true" style="width:5px;height:300px;" />
          </div>
        </div>
      </div>
      <div style="display:flex;flex-direction:row">
        <div style="flex: 3.1" >
          <bottomRightChart :weekData="weekData" :dashboardelecdata="dashboardelecdata" :latest24HourData="latest24HourData" v-bind="$attrs"/>
        </div>
      <div class="naturalGasData" style="flex: 0.9;">
        <span style="fontSize:14px;position:relative;top:-15px;">NG消耗(Nm³)</span>
        <div style="padding-top:10px;">
          <div style="display:flex;flex-direction:row; margin-bottom: 10px;height:30px;">
            <p class="ml-3 colorBlue fw-b bottom-right-text" style="padding-right:17px;margin:0px;">电厂</p>
            <div class="fontElec1">{{this.dashboardelecdata.gasElec}}</div>
          </div>
        </div>
        <div style="display:flex;flex-direction:row; margin-bottom: 10px;height:30px;">
          <p class="ml-3 colorBlue fw-b bottom-right-text" style="margin:0px;">合成气</p>
          <div>
            <div class="fontElec1">{{this.dashboardelecdata.gasSynGas}}</div>
          </div>
        </div>
        <div style="display:flex;flex-direction:row; margin-bottom: 10px;height:30px;">
          <p class="ml-3 colorBlue fw-b bottom-right-text" style="padding-right:36px;margin:0px;">U2</p>
          <div>
            <div class="fontElec1" style="margin-left: 0.34rem;">{{this.dashboardelecdata.gasU2}}</div>
          </div>
        </div>
        <div style="display:flex;flex-direction:row; margin-bottom: 10px;height:30px;">
          <p class="ml-3 colorBlue fw-b bottom-right-text" style="margin:0px;">苯乙烯</p>
          <div style="float: top">
            <div class="fontElec1">{{this.dashboardelecdata.gasStyrene}}</div>
          </div>
        </div>
        <div style="display:flex;flex-direction:row; margin-bottom: 10px;height:30px;">
          <p class="ml-3 colorBlue fw-b bottom-right-text" style="margin:0px;">日剩余量</p>
          <div style="float: top">
            <div class="fontElec1" style="margin-left: 0.2rem;">{{this.dashboardelecdata.gasLeft}}</div>
          </div>
        </div>
      </div>

      </div>
    </div>

  </div>
</template>

<script>
import bottomRightChart from "./echart/bottom/bottomRightChart";
export default {
  props:['weekData','dashboardelecdata', 'latest24HourData'],
  data() {
    return {
      openChart: false,
    };
  },
  components: {
    bottomRightChart
  },
  mounted() {
  },
  methods: {

  }
};
</script>

<style lang="scss" scoped>
.bottom-right-text {
  font-size: 18px;
}
#bottomRight {
  padding: 0rem 0rem 0rem;
  height: 3.5rem;
  min-width: 3.75rem;
  border-radius: 0.0625rem;
  //top:-50 !important;
  //left:-40 !important;
  .bg-color-black {
    height: 3.1875rem;
    border-radius: 0.125rem;
  }
  .text {
    color: #ffffff;
  } //下滑线动态
  .decoration2 {
    position: absolute;
    right: 0.125rem;
  }
  .chart-box {
    margin-top: 0.2rem;
    width: 4.125rem;
    height: 2.125rem;
    .active-ring-name {
      padding-top: 0.125rem;
    }
  }
  .naturalGasData {
    justify-content: space-between;
    float: right;
    position: relative;
  }
  .fontElec1 {
    width:100px;
    margin-left: 0.4rem;
    color: #cfe5ea;
    font:30px/15px 'ds-digitalbold';
  }
}

</style>
