lstj.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <div>
  3. <div class="font-bold text-blue-5 mb-20 text-3xl">用能统计</div>
  4. <el-row :gutter="16">
  5. <el-col :span="12">
  6. <el-card>
  7. <el-statistic title="建筑用能" :value="buildingEnergy" />
  8. </el-card>
  9. </el-col>
  10. <el-col :span="12">
  11. <el-card>
  12. <el-statistic title="部门用能" :value="departmentEnergy" />
  13. </el-card>
  14. </el-col>
  15. <el-col :span="12">
  16. <el-card>
  17. <el-statistic title="分项总用能" :value="totalItemEnergy" />
  18. </el-card>
  19. </el-col>
  20. </el-row>
  21. <div class="mt-50 font-bold text-blue-5 mb-20 text-3xl">灯杆垃圾桶统计</div>
  22. <el-row :gutter="16">
  23. <el-col :span="12">
  24. <el-card>
  25. <el-statistic title="灯杆用能" :value="poleEnergy" />
  26. </el-card>
  27. </el-col>
  28. <el-col :span="12">
  29. <el-card>
  30. <el-statistic title="垃圾桶用能" :value="binEnergy" />
  31. </el-card>
  32. </el-col>
  33. </el-row>
  34. </div>
  35. </template>
  36. <script setup lang="ts">import { ref } from 'vue';
  37. import { ElRow, ElCol, ElCard, ElStatistic } from 'element-plus';
  38. const buildingEnergy = ref('9871kw');
  39. const departmentEnergy = ref('781kw');
  40. const totalItemEnergy = ref('145874kw');
  41. const poleEnergy = ref('73kw');
  42. const binEnergy = ref('3kw');
  43. </script>