diff --git a/src/components/admin/unit/equipmentType/DeleteEquipmentTypeModal.vue b/src/components/admin/unit/equipmentType/DeleteEquipmentTypeModal.vue
new file mode 100644
index 0000000..5324d74
--- /dev/null
+++ b/src/components/admin/unit/equipmentType/DeleteEquipmentTypeModal.vue
@@ -0,0 +1,84 @@
+
+
+
+
Ausrüstung-Type löschen
+
+
+
Type {{ equipmentType?.type }} löschen?
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/router/index.ts b/src/router/index.ts
index 260a91e..35c8071 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -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,
},
diff --git a/src/views/admin/unit/damageReport/DamageReport.vue b/src/views/admin/unit/damageReport/DamageReport.vue
index 8745863..cc4adfb 100644
--- a/src/views/admin/unit/damageReport/DamageReport.vue
+++ b/src/views/admin/unit/damageReport/DamageReport.vue
@@ -22,7 +22,7 @@ import { useAbilityStore } from "@/stores/ability";
import { useDamageReportStore } from "@/stores/admin/unit/damageReport/damageReport";
import type { DamageReportViewModel } from "@/viewmodels/admin/unit/damageReport/damageReport.models";
import Pagination from "@/components/Pagination.vue";
-import DamageReportListItem from "../../../../components/admin/unit/damageReport/DamageReportListItem.vue";
+import DamageReportListItem from "@components/admin/unit/damageReport/DamageReportListItem.vue";
diff --git a/src/views/admin/unit/equipment/EquipmentRouting.vue b/src/views/admin/unit/equipment/EquipmentRouting.vue
index c887ea7..10a7214 100644
--- a/src/views/admin/unit/equipment/EquipmentRouting.vue
+++ b/src/views/admin/unit/equipment/EquipmentRouting.vue
@@ -12,7 +12,6 @@
-
@@ -44,12 +43,11 @@
@@ -63,9 +61,9 @@ export default defineComponent({
return {
tabs: [
{ route: "admin-unit-equipment-overview", title: "Übersicht" },
- { route: "admin-unit-equipment-xy", title: "Wartungen" },
- { route: "admin-unit-equipment-xy", title: "Prüfungen" },
- { route: "admin-unit-equipment-xy", title: "Schadensmeldungen" },
+ { route: "admin-unit-equipment-maintenance", title: "Wartungen" },
+ { route: "admin-unit-equipment-inspection", title: "Prüfungen" },
+ { route: "admin-unit-equipment-damage_report", title: "Schadensmeldungen" },
],
};
},
@@ -78,13 +76,6 @@ export default defineComponent({
},
methods: {
...mapActions(useEquipmentStore, ["fetchEquipmentByActiveId"]),
- ...mapActions(useModalStore, ["openModal"]),
- openDeleteModal() {
- this.openModal(
- markRaw(defineAsyncComponent(() => import("@/components/admin/club/member/DeleteMemberModal.vue"))),
- this.equipmentId ?? ""
- );
- },
},
});
diff --git a/src/views/admin/unit/equipmentType/EquipmentType.vue b/src/views/admin/unit/equipmentType/EquipmentType.vue
index 75a8a82..cfc4c88 100644
--- a/src/views/admin/unit/equipmentType/EquipmentType.vue
+++ b/src/views/admin/unit/equipmentType/EquipmentType.vue
@@ -21,7 +21,7 @@
-
diff --git a/src/views/admin/unit/equipmentType/EquipmentTypeRouting.vue b/src/views/admin/unit/equipmentType/EquipmentTypeRouting.vue
index c2a2d7a..da22317 100644
--- a/src/views/admin/unit/equipmentType/EquipmentTypeRouting.vue
+++ b/src/views/admin/unit/equipmentType/EquipmentTypeRouting.vue
@@ -67,7 +67,7 @@ export default defineComponent({
return {
tabs: [
{ route: "admin-unit-equipment_type-overview", title: "Übersicht" },
- { route: "admin-unit-equipment_type-xy", title: "Prüfpläne" },
+ { route: "admin-unit-equipment_type-inspection_plan", title: "Prüfpläne" },
],
};
},
@@ -83,7 +83,9 @@ export default defineComponent({
...mapActions(useModalStore, ["openModal"]),
openDeleteModal() {
this.openModal(
- markRaw(defineAsyncComponent(() => import("@/components/admin/club/member/DeleteMemberModal.vue"))),
+ markRaw(
+ defineAsyncComponent(() => import("@/components/admin/unit/equipmentType/CreateEquipmentTypeModal.vue"))
+ ),
this.equipmentTypeId ?? ""
);
},
diff --git a/src/views/admin/unit/respiratoryGear/RespiratoryGear.vue b/src/views/admin/unit/respiratoryGear/RespiratoryGear.vue
index ebf2f4f..e126126 100644
--- a/src/views/admin/unit/respiratoryGear/RespiratoryGear.vue
+++ b/src/views/admin/unit/respiratoryGear/RespiratoryGear.vue
@@ -21,7 +21,7 @@
-
+
Gerät erfassen
diff --git a/src/views/admin/unit/respiratoryGear/RespiratoryGearRouting.vue b/src/views/admin/unit/respiratoryGear/RespiratoryGearRouting.vue
index e291564..05dbfaa 100644
--- a/src/views/admin/unit/respiratoryGear/RespiratoryGearRouting.vue
+++ b/src/views/admin/unit/respiratoryGear/RespiratoryGearRouting.vue
@@ -16,14 +16,6 @@
>
-
-
-
-
@@ -55,12 +47,11 @@
@@ -74,9 +65,9 @@ export default defineComponent({
return {
tabs: [
{ route: "admin-unit-respiratory_gear-overview", title: "Übersicht" },
- { route: "admin-unit-respiratory_gear-xy", title: "Wartungen" },
- { route: "admin-unit-respiratory_gear-xy", title: "Prüfungen" },
- { route: "admin-unit-respiratory_gear-xy", title: "Einsätze" },
+ { route: "admin-unit-respiratory_gear-maintenance", title: "Wartungen" },
+ { route: "admin-unit-respiratory_gear-inspection", title: "Prüfungen" },
+ { route: "admin-unit-respiratory_gear-mission", title: "Einsätze" },
],
};
},
@@ -89,13 +80,6 @@ export default defineComponent({
},
methods: {
...mapActions(useRespiratoryGearStore, ["fetchRespiratoryGearByActiveId"]),
- ...mapActions(useModalStore, ["openModal"]),
- openDeleteModal() {
- this.openModal(
- markRaw(defineAsyncComponent(() => import("@/components/admin/club/member/DeleteMemberModal.vue"))),
- this.respiratoryGearId ?? ""
- );
- },
},
});
diff --git a/src/views/admin/unit/respiratoryMission/RespiratoryMission.vue b/src/views/admin/unit/respiratoryMission/RespiratoryMission.vue
index 9ed1c0b..1c6740e 100644
--- a/src/views/admin/unit/respiratoryMission/RespiratoryMission.vue
+++ b/src/views/admin/unit/respiratoryMission/RespiratoryMission.vue
@@ -21,7 +21,7 @@
-
+
Einsatz erfassen
diff --git a/src/views/admin/unit/respiratoryMission/RespiratoryMissionRouting.vue b/src/views/admin/unit/respiratoryMission/RespiratoryMissionRouting.vue
index 4347ab1..384e24f 100644
--- a/src/views/admin/unit/respiratoryMission/RespiratoryMissionRouting.vue
+++ b/src/views/admin/unit/respiratoryMission/RespiratoryMissionRouting.vue
@@ -6,18 +6,6 @@
AGT-Einsatz: {{ activeRespiratoryMissionObj?.title }}
-
-
-
-
-
@@ -49,12 +37,10 @@
@@ -68,8 +54,8 @@ export default defineComponent({
return {
tabs: [
{ route: "admin-unit-respiratory_mission-overview", title: "Übersicht" },
- { route: "admin-unit-respiratory_mission-xy", title: "Träger" },
- { route: "admin-unit-respiratory_mission-xy", title: "Geräte" },
+ { route: "admin-unit-respiratory_mission-wearer", title: "Träger" },
+ { route: "admin-unit-respiratory_mission-gear", title: "Geräte" },
],
};
},
@@ -82,13 +68,6 @@ export default defineComponent({
},
methods: {
...mapActions(useRespiratoryMissionStore, ["fetchRespiratoryMissionByActiveId"]),
- ...mapActions(useModalStore, ["openModal"]),
- openDeleteModal() {
- this.openModal(
- markRaw(defineAsyncComponent(() => import("@/components/admin/club/member/DeleteMemberModal.vue"))),
- this.respiratoryMissionId ?? ""
- );
- },
},
});
diff --git a/src/views/admin/unit/respiratoryWearer/RespiratoryWearer.vue b/src/views/admin/unit/respiratoryWearer/RespiratoryWearer.vue
index 30f48d2..82fe11c 100644
--- a/src/views/admin/unit/respiratoryWearer/RespiratoryWearer.vue
+++ b/src/views/admin/unit/respiratoryWearer/RespiratoryWearer.vue
@@ -21,7 +21,7 @@
-
+
Träger erfassen
diff --git a/src/views/admin/unit/respiratoryWearer/RespiratoryWearerRouting.vue b/src/views/admin/unit/respiratoryWearer/RespiratoryWearerRouting.vue
index 9b83352..953e990 100644
--- a/src/views/admin/unit/respiratoryWearer/RespiratoryWearerRouting.vue
+++ b/src/views/admin/unit/respiratoryWearer/RespiratoryWearerRouting.vue
@@ -9,18 +9,6 @@
AGT-Träger: {{ activeRespiratoryWearerObj?.member.lastname }},
{{ activeRespiratoryWearerObj?.member.firstname }}
-
-
-
-
-
@@ -52,12 +40,10 @@
@@ -71,11 +57,11 @@ export default defineComponent({
return {
tabs: [
{ route: "admin-unit-respiratory_wearer-overview", title: "Übersicht" },
- { route: "admin-unit-respiratory_wearer-xy", title: "Einsätze" },
- { route: "admin-unit-respiratory_wearer-xy", title: "Bildungen" },
- { route: "admin-unit-respiratory_wearer-xy", title: "Unterweisungen" },
- { route: "admin-unit-respiratory_wearer-xy", title: "Untersuchungen" },
- { route: "admin-unit-respiratory_wearer-xy", title: "Belastungen" },
+ { route: "admin-unit-respiratory_wearer-mission", title: "Einsätze" },
+ { route: "admin-unit-respiratory_wearer-education", title: "Bildungen" },
+ { route: "admin-unit-respiratory_wearer-instruction", title: "Unterweisungen" },
+ { route: "admin-unit-respiratory_wearer-screening", title: "Untersuchungen" },
+ { route: "admin-unit-respiratory_wearer-strain", title: "Belastungen" },
],
};
},
@@ -88,13 +74,6 @@ export default defineComponent({
},
methods: {
...mapActions(useRespiratoryWearerStore, ["fetchRespiratoryWearerByActiveId"]),
- ...mapActions(useModalStore, ["openModal"]),
- openDeleteModal() {
- this.openModal(
- markRaw(defineAsyncComponent(() => import("@/components/admin/club/member/DeleteMemberModal.vue"))),
- this.respiratoryWearerId ?? ""
- );
- },
},
});
diff --git a/src/views/admin/unit/vehicle/Vehicle.vue b/src/views/admin/unit/vehicle/Vehicle.vue
index 3998025..02fd8d4 100644
--- a/src/views/admin/unit/vehicle/Vehicle.vue
+++ b/src/views/admin/unit/vehicle/Vehicle.vue
@@ -21,9 +21,14 @@
-
+
Fahrzeug erstellen
-
+
@@ -31,15 +36,14 @@
diff --git a/src/views/admin/unit/vehicle/VehicleRouting.vue b/src/views/admin/unit/vehicle/VehicleRouting.vue
index 33bbc59..cb5accd 100644
--- a/src/views/admin/unit/vehicle/VehicleRouting.vue
+++ b/src/views/admin/unit/vehicle/VehicleRouting.vue
@@ -12,7 +12,6 @@
-
@@ -44,12 +43,11 @@
@@ -63,9 +61,9 @@ export default defineComponent({
return {
tabs: [
{ route: "admin-unit-vehicle-overview", title: "Übersicht" },
- { route: "admin-unit-vehicle-xy", title: "Wartungen" },
- { route: "admin-unit-vehicle-xy", title: "Prüfungen" },
- { route: "admin-unit-vehicle-xy", title: "Schadensmeldungen" },
+ { route: "admin-unit-vehicle-maintenance", title: "Wartungen" },
+ { route: "admin-unit-vehicle-inspection", title: "Prüfungen" },
+ { route: "admin-unit-vehicle-damage_report", title: "Schadensmeldungen" },
],
};
},
@@ -78,13 +76,6 @@ export default defineComponent({
},
methods: {
...mapActions(useVehicleStore, ["fetchVehicleByActiveId"]),
- ...mapActions(useModalStore, ["openModal"]),
- openDeleteModal() {
- this.openModal(
- markRaw(defineAsyncComponent(() => import("@/components/admin/club/member/DeleteMemberModal.vue"))),
- this.vehicleId ?? ""
- );
- },
},
});