From a7ae3dcd2f25f7bd7030fa4acf525a9e31677824 Mon Sep 17 00:00:00 2001 From: SamuelQuetin Date: Thu, 31 Oct 2024 14:19:10 +0100 Subject: [PATCH] ITEM-328 AJOUT Statut Item --- src/components/Structure/Footer.vue | 17 +++-------------- src/service/ItemService.js | 7 +++++-- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/src/components/Structure/Footer.vue b/src/components/Structure/Footer.vue index e43a9bd..3b6a0d0 100644 --- a/src/components/Structure/Footer.vue +++ b/src/components/Structure/Footer.vue @@ -66,19 +66,8 @@ const getHealthOfServices = async () => { statusService.getStatusCBS().then(isOk => { healthServices.value.STATUT_CBS = isOk; }) - - // try { - // const response = await itemService.getHealthOfServices() - // if (response.data) { - // healthServices.value = response.data - // } - // } catch (error) { - // healthServices.value = [{ - // 'STATUT CBS':false, - // 'STATUT BASE_XML':false, - // 'STATUT BASE_ITEM':false - // }] - // console.error('Erreur lors de la récupération des statuts des services :', error) - // } + itemService.getHealthOfServices().then(isOk => { + healthServices.value.STATUT_BASE_ITEM = isOk; + }) } diff --git a/src/service/ItemService.js b/src/service/ItemService.js index 68bfc41..50343e9 100644 --- a/src/service/ItemService.js +++ b/src/service/ItemService.js @@ -163,8 +163,11 @@ export class ItemService { return this.client.get('applicationDetails'); } - getHealthOfServices(){ - return this.client.get('applicationStatutServices') + async getHealthOfServices(){ + return this.client.get('applicationStatutServices').then(response => { + console.log(response.data) + return response.data + }) } }