penambahan room list
This commit is contained in:
@@ -88,7 +88,7 @@
|
||||
<div class="row mb-3">
|
||||
<div
|
||||
class="col-xl-6 col-md-6 col-12"
|
||||
*ngFor="let top of data.topUse; let i = index"
|
||||
*ngFor="let top of data.topUse | filterTopUse; let i = index"
|
||||
>
|
||||
<div>
|
||||
<span class="mb-1 text-muted cardtext d-block"
|
||||
|
||||
@@ -14,7 +14,7 @@ export class BuildingComponent {
|
||||
feedbacksdonutChart: any;
|
||||
donutChart1: any;
|
||||
filteredRows: any[];
|
||||
dataTop: any;
|
||||
topUseData: any;
|
||||
searchTerm: string = "";
|
||||
colorChart: string = "";
|
||||
|
||||
@@ -52,17 +52,16 @@ export class BuildingComponent {
|
||||
|
||||
listBuilding() {
|
||||
this.monitoringApiService.listBuilding().subscribe((res) => {
|
||||
console.log(res.data);
|
||||
this.data = res.data;
|
||||
this.filteredRows = res.data;
|
||||
});
|
||||
}
|
||||
|
||||
buildingData() {
|
||||
this.monitoringApiService.getBuildingData().subscribe((res) => {
|
||||
console.log(res);
|
||||
});
|
||||
}
|
||||
// buildingData() {
|
||||
// this.monitoringApiService.getBuildingData().subscribe((res) => {
|
||||
// console.log(res);
|
||||
// });
|
||||
// }
|
||||
|
||||
filterRows() {
|
||||
if (!this.searchTerm) {
|
||||
|
||||
Reference in New Issue
Block a user