<script setup>
import {ref} from "vue"
import getPath from "@/utils/getPath.js";
// 照明监测
const lightingNumList = ref([
  {
    name:"照明四路数量",
    num:1130,
    pic:getPath.lightTotal,
  },
  {
    name:"照明四路灭灯数量",
    num:1130,
    pic:getPath.noLightNum,
  },
  {
    name:"照明四路亮灯数量",
    num:1130,
    pic:getPath.lightingNum,
  },
  {
    name:"离线数量",
    num:1130,
    pic:getPath.offlineNum,
  }
])
</script>

<template>
  <div class="page m100">
    <div class="page-left-box">
      <!--  照明监测-->
      <div class="title">
        <span>照明监测</span>
      </div>
      <div class="margin10 box-bg" id="light">
          <div class="light-item" v-for="(item,index) in lightingNumList">
            <img :src="item.pic" alt="">
            <p>
              <span class="name">{{item.name}}</span>
              <span class="num">{{item.num}}<span class="unit">个</span></span>

            </p>
          </div>
      </div>
      <!--  当日累计用电量-->
      <div class="title margin10">
        <span>照明回路详情</span>
      </div>
      <div class="margin10 box-bg"></div>
      <!--  照明负荷-->
      <div class="title margin10">
        <span>照明负荷</span>
      </div>
      <div class="margin10 box-bg"></div>
    </div>
    <div class="page-right-box">
      <!--  展馆照明 -->
      <div class="title">
        <span>展馆照明</span>
      </div>
      <div class="margin10 box-bg" id="airConditioningLoad"></div>
      <!--  照明控制-->
      <div class="title margin10">
        <span>照明控制</span>
      </div>
      <div class="margin10 box-bg" id="exhibitionLoad"></div>
      <!--  故障情况-->
      <div class="title margin10">
        <span>故障情况</span>
      </div>
      <div class="margin10 box-bg" id="ranking"></div>
    </div>
  </div>
</template>

<style scoped lang="scss">
//照明监测
#light{
  display: flex;
  flex-wrap: wrap;
  align-content: space-evenly;
  //padding: 2% 10%;
  box-sizing: border-box;
  img{
    width: 3.875rem;
    height: 4.375rem;
  }
}
.light-item{
  display: flex;
  flex-basis: 50%;
  padding-left: 2rem;
  box-sizing: border-box;
  p{
    margin-left: .5rem;
    .name{
      margin-top: 1.3rem;
      margin-bottom: .5rem;
    }
    .num {
      color: rgba(1, 246, 139, 1);
      font-weight: 700;
      font-size: 1.25rem !important;
    }
    .unit{
      margin-left: .2rem;
    }
    .name,.num{
      display: block;
      font-size: .75rem;
    }
  }
}
</style>