<template>
  <div class="ruoyiUiExecutable">
    <dv-decoration-11  class="dv11">设备设施统计</dv-decoration-11>
    <div class="chartBox">
      <div class="item">
        <div>设备总数</div>
        <p>{{ numObj.totalCount }}</p>
      </div>
      <div class="item">
        <div>保障中</div>
        <p>{{ numObj.tellFaultCount }}</p>

      </div>
      <div class="item">
        <div>维修中</div>
        <p>{{ numObj.maintenanceCount }}</p>

      </div>
      <div class="item">
        <div>保养中</div>
        <p>{{ numObj.upkeepCount }}</p>
      </div>
    </div>
  </div>
</template>

<script>
import { deviceStatistics } from '@/api/home'
export default {
  name: 'RuoyiUiExecutable',

  data() {
    return {
      numObj: {
        totalCount: '-',
        tellFaultCount: '-',
        maintenanceCount: '-',
        upkeepCount: '-'
      }

    }
  },

  mounted() {
    deviceStatistics().then(res => {
      if (res.code === 200) {
        this.numObj = res.data
      }
    })
  },

  methods: {

  },
};
</script>

<style lang="scss" scoped>
.dv11{
  width:200px;
  height:50px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0 0 10px;
}
.item{
  height: 110px;
  width: 20%;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  background: #054048;
  p{
    font-size: 18px;
    font-weight: 600;
    color: #00f7f8;
  }
}
.chartBox{
  display: flex;
  justify-content: space-around;
  padding: 10px;
}
.dvChart{
  width: 270px;
  height: 270px;
}
.first{
  margin-left: 30px;
}
.last{
  margin-top: -80px;
}
.dv9{
  width: 130px;
  height: 130px;
  color: green;
  font-weight: 900;
  font-size: 20px;

}
.ruoyiUiExecutable{
  padding-top: 5px;
}
</style>
