diff --git a/frontend/pages/infrastructure/batiment.vue b/frontend/pages/infrastructure/batiment.vue deleted file mode 100644 index 2b1a424..0000000 --- a/frontend/pages/infrastructure/batiment.vue +++ /dev/null @@ -1,274 +0,0 @@ - - - - - - bâtiments - - - - - - - - {{ entry.building.label || `Bâtiment ${entry.building.id}` }} - - - - - Aucun plan de bâtiment. - - - - - - - - - {{ cell.display }} - - - - - - - - - - - - legendes - - - - Aucun statut disponible. - - - - - - {{ statut.label || "Sans libellé" }} - - - - - - - - - - diff --git a/frontend/pages/infrastructure/building.vue b/frontend/pages/infrastructure/building.vue new file mode 100644 index 0000000..503b50d --- /dev/null +++ b/frontend/pages/infrastructure/building.vue @@ -0,0 +1,194 @@ + + + + + + bâtiments + + + + + + + + {{ entry.building.label || `Bâtiment ${entry.building.id}` }} + + + + + Aucun plan de bâtiment. + + + + + + + + + {{ cell.display }} + + + + + + + + + + + + Légende + + + + + + + {{ statut.label}} + + + + + + + + + + diff --git a/frontend/services/dto/building-layout-data.ts b/frontend/services/dto/building-layout-data.ts index f9a2661..73e9de4 100644 --- a/frontend/services/dto/building-layout-data.ts +++ b/frontend/services/dto/building-layout-data.ts @@ -7,3 +7,14 @@ export interface BuildingLayoutData { rows: number | null casePositions?: BuildingCasePositionData[] | null } +export type LayoutCell = { + key: string + isEmpty: boolean + caseId: number | null + display: string + caseStatusId: number | null + caseStatusLabel: string | null + caseStyle?: Record + spanStyle: Record + baseClass: string +}