<template>
  <div class="left2-container">
    <InfoHeader
      name="电梯信息统计"
      eName="Elevator information statistics"
    ></InfoHeader>
    <InfoContent height="4.5rem">
      <div class="d-flex">
        <div style="width: 50%; padding: 0.25rem">
          <div class="title1 d-flex jc-center">品牌统计</div>

          <div style="margin-top: 0.25rem">
            <dv-border-box-8 style="height: 100%">
              <PieChart
                chartId="dajhdkak"
                :chartData="chartPieData"
                :chartSetting="chartSetting"
              ></PieChart>
            </dv-border-box-8>
          </div>
        </div>
        <div style="width: 50%; padding: 0.25rem">
          <div class="title1 d-flex jc-center">梯龄统计</div>

          <div class="order" style="margin-top: 0.25rem">
            <dv-border-box-8 style="height: 100%">
              <div class="d-flex jc-center a-c full-height">
                <div>
                  <div class="item">
                    <span class="num-title">0-6年:</span>
                    <span class="num-value textS-common"> 0</span>
                  </div>
                  <div class="item">
                    <span class="num-title">6-15年:</span>
                    <span class="num-value textS-common"> 4</span>
                  </div>
                  <div class="item">
                    <span class="num-title">15年以上:</span>
                    <span class="num-value textS-common"> 0</span>
                  </div>
                </div>
              </div>
            </dv-border-box-8>
          </div>
        </div>
      </div>
    </InfoContent>
  </div>
</template>

<script>
import InfoHeader from "@/components/infoHeader";
import InfoContent from "@/components/infoContent";
import PieChart from "@/components/pieEcharts";
export default {
  components: {
    InfoHeader,
    InfoContent,

    PieChart,
  },
  data() {
    return {
      chartSetting: {
        showLegend: true,
        radius: ["30%", "50%"],
        pieColor: ["#FF6600", "#0099FF", "#66CC33", "#FFCC33", "#9933FF"],
        height: "2.9rem",
      },
      chartPieData: [],
      chartPieData2: [],
    };
  },
};
</script>
<style lang="scss" scoped>
.left2-container {
  margin-top: 0.25rem;
  pointer-events: all;
  .title1 {
    background-image: url("../../../assets/images/biaoti-bck.png");
    width: 1.875rem;
    height: 0.375rem;
    line-height: 0.375rem;
    margin: 0 auto;

    font-size: 0.2rem;
    color: white;
  }
  .order {
    background: url("../../../assets/images/tiling_bck_24.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    height: 3.25rem;
    .item {
      margin: 0.375rem 0;
      .num-title {
        font-size: 0.3rem;
        color: white;
      }
      .num-value {
        font-size: 0.36rem;
        color: white;
        margin-left: 0.15rem;
      }
    }
  }
}
</style>
