diff --git a/frontend/src/api/index.js b/frontend/src/api/index.js index 78ea2d5..b5827ab 100644 --- a/frontend/src/api/index.js +++ b/frontend/src/api/index.js @@ -202,6 +202,11 @@ export const locationsApi = { }, delete(id) { return api.delete(`/locations/${id}`) + }, + types: { + list() { + return api.get('/locations/types') + } } } diff --git a/frontend/src/views/settings/LocationsList.vue b/frontend/src/views/settings/LocationsList.vue index 1d57c5e..0f55f45 100644 --- a/frontend/src/views/settings/LocationsList.vue +++ b/frontend/src/views/settings/LocationsList.vue @@ -25,6 +25,7 @@ Location Name + Type Building Floor Room @@ -35,6 +36,7 @@ {{ loc.locationname }} + {{ loc.locationtypename || '-' }} {{ loc.building || '-' }} {{ loc.floor || '-' }} {{ loc.room || '-' }} @@ -55,7 +57,7 @@ - + No locations found @@ -125,6 +127,32 @@ +
+
+ + +
+ +
+ + +
+
+