navigation

This commit is contained in:
Julian Krauser 2025-03-30 17:24:17 +02:00
parent f951a1cd4c
commit 8be88a5245
16 changed files with 229 additions and 144 deletions

View file

@ -337,6 +337,13 @@ const router = createRouter({
component: () => import("@/views/admin/unit/equipment/Equipment.vue"),
beforeEnter: [resetEquipmentStores],
},
{
path: "create",
name: "admin-unit-equipment-create",
component: () => import("@/views/admin/ViewSelect.vue"),
meta: { type: "create", section: "unit", module: "equipment" },
beforeEnter: [abilityAndNavUpdate],
},
{
path: ":equipmentId",
name: "admin-unit-equipment-routing",
@ -351,8 +358,20 @@ const router = createRouter({
props: true,
},
{
path: "xy",
name: "admin-unit-equipment-xy",
path: "maintenance",
name: "admin-unit-equipment-maintenance",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "inspection",
name: "admin-unit-equipment-inspection",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "report",
name: "admin-unit-equipment-damage_report",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
@ -381,6 +400,13 @@ const router = createRouter({
component: () => import("@/views/admin/unit/vehicle/Vehicle.vue"),
beforeEnter: [resetVehicleStores],
},
{
path: "create",
name: "admin-unit-vehicle-create",
component: () => import("@/views/admin/ViewSelect.vue"),
meta: { type: "create", section: "unit", module: "vehicle" },
beforeEnter: [abilityAndNavUpdate],
},
{
path: ":vehicleId",
name: "admin-unit-vehicle-routing",
@ -395,8 +421,20 @@ const router = createRouter({
props: true,
},
{
path: "xy",
name: "admin-unit-vehicle-xy",
path: "maintenance",
name: "admin-unit-vehicle-maintenance",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "inspection",
name: "admin-unit-vehicle-inspection",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "report",
name: "admin-unit-vehicle-damage_report",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
@ -439,8 +477,20 @@ const router = createRouter({
props: true,
},
{
path: "xy",
name: "admin-unit-respiratory_gear-xy",
path: "maintenance",
name: "admin-unit-respiratory_gear-maintenance",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "inspection",
name: "admin-unit-respiratory_gear-inspection",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "mission",
name: "admin-unit-respiratory_gear-mission",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
@ -483,8 +533,32 @@ const router = createRouter({
props: true,
},
{
path: "xy",
name: "admin-unit-respiratory_wearer-xy",
path: "mission",
name: "admin-unit-respiratory_wearer-mission",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "education",
name: "admin-unit-respiratory_wearer-education",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "instruction",
name: "admin-unit-respiratory_wearer-instruction",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "screening",
name: "admin-unit-respiratory_wearer-screening",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "strain",
name: "admin-unit-respiratory_wearer-strain",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
@ -527,8 +601,14 @@ const router = createRouter({
props: true,
},
{
path: "xy",
name: "admin-unit-respiratory_mission-xy",
path: "wearer",
name: "admin-unit-respiratory_mission-wearer",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
{
path: "gear",
name: "admin-unit-respiratory_mission-gear",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},
@ -590,8 +670,8 @@ const router = createRouter({
props: true,
},
{
path: "xy",
name: "admin-unit-equipment_type-xy",
path: "inspection-plan",
name: "admin-unit-equipment_type-inspection_plan",
component: () => import("@/views/admin/ViewSelect.vue"),
props: true,
},