penambahan filter
This commit is contained in:
parent
4fdaa8c1bd
commit
f4036b1a06
|
@ -13,7 +13,7 @@
|
|||
href="https://allbestsistem.com/"
|
||||
target="_blank"
|
||||
style="background-color: #ffffff !important;"
|
||||
>Smart Building Management Systems (V@2024-08-8.13)
|
||||
>Smart Building Management Systems (V@2024-08-19.1)
|
||||
</a></span
|
||||
>
|
||||
</p>
|
||||
|
|
|
@ -132,7 +132,7 @@
|
|||
<button
|
||||
type="button"
|
||||
class="btn btn-min-width mr-1 mb-1 btn-room"
|
||||
(click)="viewRow(data)"
|
||||
(click)="viewDetail(data)"
|
||||
>
|
||||
Detail
|
||||
</button>
|
||||
|
|
|
@ -96,7 +96,6 @@ export class BuildingComponent {
|
|||
this.deviceService.filterDashboard(buildingId, floorId).subscribe((res) => {
|
||||
this.filteredRows = res.data;
|
||||
this.typeData = this.filteredRows[0].type;
|
||||
console.log(this.filteredRows[0].type);
|
||||
if (this.typeData === "building") {
|
||||
this.labelData = "Building";
|
||||
} else if (this.typeData === "floor") {
|
||||
|
@ -115,8 +114,10 @@ export class BuildingComponent {
|
|||
}, 3000);
|
||||
}
|
||||
|
||||
viewRow(row) {
|
||||
this.router.navigate(["/monitoring/view-new-building", row.id]);
|
||||
viewDetail(row) {
|
||||
console.log(row);
|
||||
|
||||
this.router.navigate(["/monitoring/view-detail", row.id]);
|
||||
}
|
||||
|
||||
editRow(row) {
|
||||
|
|
|
@ -85,8 +85,10 @@ export class DetailComponent {
|
|||
});
|
||||
this.breadcrumbLink();
|
||||
this.route.params.subscribe((params) => {
|
||||
const buildingId = params["id"];
|
||||
this.paramsId = params["id"];
|
||||
const buildingId = params["buildingId"];
|
||||
console.log(buildingId);
|
||||
|
||||
this.paramsId = params["buildingId"];
|
||||
if (buildingId) {
|
||||
this.dataEnergyMonitoringTopCard(buildingId);
|
||||
this.dataEnergyMonitoringSummary(buildingId);
|
||||
|
|
|
@ -90,9 +90,9 @@ import { ClipboardModule } from 'ngx-clipboard';
|
|||
data: { mode: 'room' }
|
||||
},
|
||||
{
|
||||
path: 'view-new-building/:id',
|
||||
path: 'view-detail/:buildingId',
|
||||
component: DetailComponent,
|
||||
data: { mode: 'build' }
|
||||
data: { mode: 'building' }
|
||||
},
|
||||
{
|
||||
path: 'view-new-room/:id',
|
||||
|
|
|
@ -138,7 +138,7 @@
|
|||
<p
|
||||
class="card-subtitle line-on-side text-muted text-center font-small-3 mx-2 my-1"
|
||||
>
|
||||
<span>(v@2024.08.8.13)</span>
|
||||
<span>(v@2024.08.19.1)</span>
|
||||
</p>
|
||||
<!-- <div class="card-body">
|
||||
<a
|
||||
|
|
Loading…
Reference in New Issue