integrasi table device dan table master category

This commit is contained in:
2024-05-18 20:26:44 +07:00
parent cfa140b6ea
commit e92c576844
15 changed files with 431 additions and 60 deletions

View File

@@ -43,7 +43,7 @@
class="text-muted mb-0"
style="font-family: Montserrat, sans-serif"
>
{{ data.build_name }}
{{ data.build_name ? data.build_name : data.name}}
</h3>
</div>
</div>

View File

@@ -48,10 +48,25 @@ export class BuildingComponent {
},
};
this.fetchData();
this.buildingData();
// this.buildingData();
}
fetchData() {
// this.monitoringApiService.getBuildingData().subscribe((res) => {
// this.data = res;
// this.filteredRows = res.data;
// console.log(this.filteredRows);
// this.dataTop = [];
// for (let i = 0; i < res.length; i++) {
// if (res[i].topUse.label[i]) {
// this.dataTop.push({
// label: res[i].topUse.label ? res[i].topUse.label : '',
// value: res[i].topUse.value ? res[i].topUse.value : 0,
// });
// }
// }
// });
this.monitoringService.getMonitoringBuildingData().subscribe((res) => {
this.data = res;
this.filteredRows = res;