<template>
  <div>
    <div class="font-bold text-blue-5 mb-20 text-3xl">用能统计</div>
    <el-row :gutter="16">
      <el-col :span="12">
        <el-card>
          <el-statistic title="建筑用能" :value="buildingEnergy" />
        </el-card>
      </el-col>
      <el-col :span="12">
        <el-card>
          <el-statistic title="部门用能" :value="departmentEnergy" />
        </el-card>
      </el-col>
      <el-col :span="12">
        <el-card>
          <el-statistic title="分项总用能" :value="totalItemEnergy" />
        </el-card>
      </el-col>
    </el-row>
    <div class="mt-50 font-bold text-blue-5 mb-20 text-3xl">灯杆垃圾桶统计</div>
    <el-row :gutter="16">
      <el-col :span="12">
        <el-card>
          <el-statistic title="灯杆用能" :value="poleEnergy" />
        </el-card>
      </el-col>
      <el-col :span="12">
        <el-card>
          <el-statistic title="垃圾桶用能" :value="binEnergy" />
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script setup lang="ts">import { ref } from 'vue';
import { ElRow, ElCol, ElCard, ElStatistic } from 'element-plus';

const buildingEnergy = ref('9871kw');
const departmentEnergy = ref('781kw');
const totalItemEnergy = ref('145874kw');
const poleEnergy = ref('73kw');
const binEnergy = ref('3kw');
</script>
