filter device

This commit is contained in:
2024-07-01 10:58:22 +07:00
parent 97b2445d4f
commit 04e8abc487
7 changed files with 93 additions and 84 deletions

View File

@@ -13,7 +13,7 @@
<div class="media-body text-left">
<h5 style="color: #ffffff">Kwh Consumption</h5>
<h3 style="color: #ffffff">
{{ topCard?.kwh_consumption.toFixed(1) }} Kwh
{{ topCard?.kwh_consumption ? topCard?.kwh_consumption.toFixed(1) : 0 }} Kwh
</h3>
</div>
<div class="align-self-center">

View File

@@ -195,6 +195,8 @@ export class DetailComponent {
.getDashboardTopCard(buildingId)
.subscribe((res) => {
this.topCard = res.data;
console.log(this.topCard);
});
}
dataEnergyMonitoringSummary(buildingId) {