integrasi cost management

This commit is contained in:
2024-06-11 20:44:05 +07:00
parent 38c936b389
commit ad91c844d6
16 changed files with 1758 additions and 930 deletions

View File

@@ -94,7 +94,7 @@
[items]="singleSelectArray"
[searchable]="true"
bindLabel="item_text"
placeholder="Select Month"
placeholder="Select Type"
[(ngModel)]="singlebasicSelected"
>
</ng-select>

View File

@@ -67,16 +67,14 @@ export class DeviceComponent implements OnInit {
console.log(this.filteredRows);
this.totalOn = this.filteredRows.filter((row) => row.statusEntity.name.toLowerCase() === 'aktif').length
this.totalOff = this.filteredRows.filter((row) => row.statusEntity.name.toLowerCase() === 'nonaktif').length
// console.log(totalon);
});
}
filterRows() {
if (!this.searchTerm) {
this.filteredRows = [...this.data.rows];
this.filteredRows = [...this.data.results.data];
} else {
this.filteredRows = this.data.rows.filter((row) =>
this.filteredRows = this.data.results.data.filter((row) =>
this.rowContainsSearchTerm(row)
);
}
@@ -135,14 +133,10 @@ export class DeviceComponent implements OnInit {
this.monitoringApiService.getSyncDeviceData().subscribe((res) => {
console.log(res);
});
// Lakukan proses tambahan (misalnya, panggil API atau proses yang memakan waktu)
setTimeout(() => {
// Selesaikan proses tambahan di sini
// Nonaktifkan spinner setelah proses selesai
this.spinnerActive = false;
this.fetchData();
}, 3000); // Ganti 3000 dengan waktu yang sesuai dengan proses tambahan Anda (dalam milidetik)
}, 3000);
}
}