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