From 3b3757e2a72820c8005f47d10b9d76046717a01d Mon Sep 17 00:00:00 2001 From: Fuzi_fauzia Date: Mon, 22 Jul 2024 15:09:38 +0700 Subject: [PATCH] pernambahan code pada master room --- .../add-edit-list/add-edit-list.component.ts | 6 ++- .../add-edit-master-room.component.html | 45 +++++++++++++++---- .../add-edit-master-room.component.ts | 2 + .../master-room/master-room.component.ts | 8 ++++ .../monitoring/detail/detail.component.ts | 2 +- 5 files changed, 52 insertions(+), 11 deletions(-) diff --git a/src/app/content/hemat-app/list-monitoring/add-edit-list/add-edit-list.component.ts b/src/app/content/hemat-app/list-monitoring/add-edit-list/add-edit-list.component.ts index b5dd916..9e426ee 100644 --- a/src/app/content/hemat-app/list-monitoring/add-edit-list/add-edit-list.component.ts +++ b/src/app/content/hemat-app/list-monitoring/add-edit-list/add-edit-list.component.ts @@ -213,7 +213,11 @@ export class AddEditListComponent { dataListRoom() { this.monitoringApiService.getListRoomDataUnmap().subscribe(data => { - this.dataRoomList = data.data + const newArray = data.data.map(item => ({ + id: item.id, + name: `${item.name} (${item.code})` + })); + this.dataRoomList = newArray }); } diff --git a/src/app/content/hemat-app/master/master-room/add-edit-master-room/add-edit-master-room.component.html b/src/app/content/hemat-app/master/master-room/add-edit-master-room/add-edit-master-room.component.html index 8f52007..90f9534 100644 --- a/src/app/content/hemat-app/master/master-room/add-edit-master-room/add-edit-master-room.component.html +++ b/src/app/content/hemat-app/master/master-room/add-edit-master-room/add-edit-master-room.component.html @@ -1,10 +1,15 @@ - -