navigation
This commit is contained in:
parent
f951a1cd4c
commit
8be88a5245
16 changed files with 229 additions and 144 deletions
|
@ -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";
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
|
|
|
@ -38,7 +38,6 @@ import { defineAsyncComponent, defineComponent, markRaw } from "vue";
|
|||
import { mapActions, mapState } from "pinia";
|
||||
import MainTemplate from "@/templates/Main.vue";
|
||||
import { RouterLink, RouterView } from "vue-router";
|
||||
import { PencilIcon, TrashIcon } from "@heroicons/vue/24/outline";
|
||||
import { useModalStore } from "@/stores/modal";
|
||||
import { useAbilityStore } from "@/stores/ability";
|
||||
import { useEquipmentStore } from "@/stores/admin/unit/equipment/equipment";
|
||||
|
@ -69,7 +68,7 @@ export default defineComponent({
|
|||
...mapActions(useModalStore, ["openModal"]),
|
||||
openDeleteModal() {
|
||||
this.openModal(
|
||||
markRaw(defineAsyncComponent(() => import("@/components/admin/club/member/DeleteMemberModal.vue"))),
|
||||
markRaw(defineAsyncComponent(() => import("@/components/admin/unit/member/DeleteMemberModal.vue"))),
|
||||
this.equipmentId ?? ""
|
||||
);
|
||||
},
|
||||
|
|
|
@ -22,9 +22,14 @@
|
|||
</Pagination>
|
||||
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'club', 'equipment')" primary class="!w-fit" @click="openCreateModal">
|
||||
<RouterLink
|
||||
v-if="can('create', 'unit', 'equipment')"
|
||||
:to="{ name: 'admin-unit-equipment-create' }"
|
||||
primary
|
||||
class="!w-fit"
|
||||
>
|
||||
Gerätschaft erfassen
|
||||
</button>
|
||||
</RouterLink>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -32,15 +37,14 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { defineAsyncComponent, defineComponent, markRaw } from "vue";
|
||||
import { defineComponent } from "vue";
|
||||
import { mapActions, mapState } from "pinia";
|
||||
import MainTemplate from "@/templates/Main.vue";
|
||||
import { useEquipmentStore } from "@/stores/admin/unit/equipment/equipment";
|
||||
import { useModalStore } from "@/stores/modal";
|
||||
import Pagination from "@/components/Pagination.vue";
|
||||
import { useAbilityStore } from "@/stores/ability";
|
||||
import type { EquipmentViewModel } from "../../../../viewmodels/admin/unit/equipment/equipment.models";
|
||||
import EquipmentListItem from "../../../../components/admin/unit/equipment/EquipmentListItem.vue";
|
||||
import type { EquipmentViewModel } from "@/viewmodels/admin/unit/equipment/equipment.models";
|
||||
import EquipmentListItem from "@/components/admin/unit/equipment/EquipmentListItem.vue";
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
|
@ -60,12 +64,6 @@ export default defineComponent({
|
|||
},
|
||||
methods: {
|
||||
...mapActions(useEquipmentStore, ["fetchEquipments"]),
|
||||
...mapActions(useModalStore, ["openModal"]),
|
||||
openCreateModal() {
|
||||
this.openModal(
|
||||
markRaw(defineAsyncComponent(() => import("@/components/admin/unit/equipment/CreateEquipmentModal.vue")))
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
<RouterLink v-if="can('update', 'unit', 'equipment')" :to="{ name: 'admin-unit-equipment-edit' }">
|
||||
<PencilIcon class="w-5 h-5" />
|
||||
</RouterLink>
|
||||
<TrashIcon v-if="can('delete', 'unit', 'equipment')" class="w-5 h-5 cursor-pointer" @click="openDeleteModal" />
|
||||
</div>
|
||||
</template>
|
||||
<template #diffMain>
|
||||
|
@ -44,12 +43,11 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { defineAsyncComponent, defineComponent, markRaw } from "vue";
|
||||
import { defineComponent } from "vue";
|
||||
import { mapActions, mapState } from "pinia";
|
||||
import MainTemplate from "@/templates/Main.vue";
|
||||
import { RouterLink, RouterView } from "vue-router";
|
||||
import { PencilIcon, TrashIcon } from "@heroicons/vue/24/outline";
|
||||
import { useModalStore } from "@/stores/modal";
|
||||
import { useAbilityStore } from "@/stores/ability";
|
||||
import { useEquipmentStore } from "@/stores/admin/unit/equipment/equipment";
|
||||
</script>
|
||||
|
@ -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 ?? ""
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</Pagination>
|
||||
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'club', 'equipment_type')" primary class="!w-fit" @click="openCreateModal">
|
||||
<button v-if="can('create', 'unit', 'equipment_type')" primary class="!w-fit" @click="openCreateModal">
|
||||
Geräte-Typ erstellen
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -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 ?? ""
|
||||
);
|
||||
},
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</Pagination>
|
||||
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'club', 'respiratory_gear')" primary class="!w-fit" @click="openCreateModal">
|
||||
<button v-if="can('create', 'unit', 'respiratory_gear')" primary class="!w-fit" @click="openCreateModal">
|
||||
Gerät erfassen
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -16,14 +16,6 @@
|
|||
>
|
||||
<ArrowTopRightOnSquareIcon class="w-5 h-5" />
|
||||
</RouterLink>
|
||||
<RouterLink v-if="can('update', 'unit', 'respiratory_gear')" :to="{ name: 'admin-unit-respiratory_gear-edit' }">
|
||||
<PencilIcon class="w-5 h-5" />
|
||||
</RouterLink>
|
||||
<TrashIcon
|
||||
v-if="can('delete', 'unit', 'respiratory_gear')"
|
||||
class="w-5 h-5 cursor-pointer"
|
||||
@click="openDeleteModal"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<template #diffMain>
|
||||
|
@ -55,12 +47,11 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { defineAsyncComponent, defineComponent, markRaw } from "vue";
|
||||
import { defineComponent } from "vue";
|
||||
import { mapActions, mapState } from "pinia";
|
||||
import MainTemplate from "@/templates/Main.vue";
|
||||
import { RouterLink, RouterView } from "vue-router";
|
||||
import { ArrowTopRightOnSquareIcon, PencilIcon, TrashIcon } from "@heroicons/vue/24/outline";
|
||||
import { useModalStore } from "@/stores/modal";
|
||||
import { ArrowTopRightOnSquareIcon } from "@heroicons/vue/24/outline";
|
||||
import { useAbilityStore } from "@/stores/ability";
|
||||
import { useRespiratoryGearStore } from "@/stores/admin/unit/respiratoryGear/respiratoryGear";
|
||||
</script>
|
||||
|
@ -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 ?? ""
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</Pagination>
|
||||
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'club', 'respiratory_mission')" primary class="!w-fit" @click="openCreateModal">
|
||||
<button v-if="can('create', 'unit', 'respiratory_mission')" primary class="!w-fit" @click="openCreateModal">
|
||||
Einsatz erfassen
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -6,18 +6,6 @@
|
|||
<template #topBar>
|
||||
<div class="flex flex-row gap-2 items-center justify-between pt-5 pb-3 px-7">
|
||||
<h1 class="font-bold text-xl h-8 min-h-fit grow">AGT-Einsatz: {{ activeRespiratoryMissionObj?.title }}</h1>
|
||||
|
||||
<RouterLink
|
||||
v-if="can('update', 'unit', 'respiratory_mission')"
|
||||
:to="{ name: 'admin-unit-respiratory_mission-edit' }"
|
||||
>
|
||||
<PencilIcon class="w-5 h-5" />
|
||||
</RouterLink>
|
||||
<TrashIcon
|
||||
v-if="can('delete', 'unit', 'respiratory_mission')"
|
||||
class="w-5 h-5 cursor-pointer"
|
||||
@click="openDeleteModal"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<template #diffMain>
|
||||
|
@ -49,12 +37,10 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { defineAsyncComponent, defineComponent, markRaw } from "vue";
|
||||
import { defineComponent } from "vue";
|
||||
import { mapActions, mapState } from "pinia";
|
||||
import MainTemplate from "@/templates/Main.vue";
|
||||
import { RouterLink, RouterView } from "vue-router";
|
||||
import { PencilIcon, TrashIcon } from "@heroicons/vue/24/outline";
|
||||
import { useModalStore } from "@/stores/modal";
|
||||
import { useAbilityStore } from "@/stores/ability";
|
||||
import { useRespiratoryMissionStore } from "@/stores/admin/unit/respiratoryMission/respiratoryMission";
|
||||
</script>
|
||||
|
@ -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 ?? ""
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</Pagination>
|
||||
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'club', 'respiratory_wearer')" primary class="!w-fit" @click="openCreateModal">
|
||||
<button v-if="can('create', 'unit', 'respiratory_wearer')" primary class="!w-fit" @click="openCreateModal">
|
||||
Träger erfassen
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -9,18 +9,6 @@
|
|||
AGT-Träger: {{ activeRespiratoryWearerObj?.member.lastname }},
|
||||
{{ activeRespiratoryWearerObj?.member.firstname }}
|
||||
</h1>
|
||||
|
||||
<RouterLink
|
||||
v-if="can('update', 'unit', 'respiratory_wearer')"
|
||||
:to="{ name: 'admin-unit-respiratory_wearer-edit' }"
|
||||
>
|
||||
<PencilIcon class="w-5 h-5" />
|
||||
</RouterLink>
|
||||
<TrashIcon
|
||||
v-if="can('delete', 'unit', 'respiratory_wearer')"
|
||||
class="w-5 h-5 cursor-pointer"
|
||||
@click="openDeleteModal"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<template #diffMain>
|
||||
|
@ -52,12 +40,10 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { defineAsyncComponent, defineComponent, markRaw } from "vue";
|
||||
import { defineComponent } from "vue";
|
||||
import { mapActions, mapState } from "pinia";
|
||||
import MainTemplate from "@/templates/Main.vue";
|
||||
import { RouterLink, RouterView } from "vue-router";
|
||||
import { PencilIcon, TrashIcon } from "@heroicons/vue/24/outline";
|
||||
import { useModalStore } from "@/stores/modal";
|
||||
import { useAbilityStore } from "@/stores/ability";
|
||||
import { useRespiratoryWearerStore } from "@/stores/admin/unit/respiratoryWearer/respiratoryWearer";
|
||||
</script>
|
||||
|
@ -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 ?? ""
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -21,9 +21,14 @@
|
|||
</Pagination>
|
||||
|
||||
<div class="flex flex-row gap-4">
|
||||
<button v-if="can('create', 'unit', 'equipment')" primary class="!w-fit" @click="openCreateModal">
|
||||
<RouterLink
|
||||
v-if="can('create', 'unit', 'equipment')"
|
||||
:to="{ name: 'admin-unit-vehicle-create' }"
|
||||
primary
|
||||
class="!w-fit"
|
||||
>
|
||||
Fahrzeug erstellen
|
||||
</button>
|
||||
</RouterLink>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -31,15 +36,14 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { defineAsyncComponent, defineComponent, markRaw } from "vue";
|
||||
import { defineComponent } from "vue";
|
||||
import { mapActions, mapState } from "pinia";
|
||||
import MainTemplate from "@/templates/Main.vue";
|
||||
import { useVehicleStore } from "@/stores/admin/unit/vehicle/vehicle";
|
||||
import { useModalStore } from "@/stores/modal";
|
||||
import Pagination from "@/components/Pagination.vue";
|
||||
import { useAbilityStore } from "@/stores/ability";
|
||||
import type { VehicleViewModel } from "../../../../viewmodels/admin/unit/vehicle/vehicle.models";
|
||||
import VehicleListItem from "../../../../components/admin/unit/vehicle/VehicleListItem.vue";
|
||||
import type { VehicleViewModel } from "@/viewmodels/admin/unit/vehicle/vehicle.models";
|
||||
import VehicleListItem from "@/components/admin/unit/vehicle/VehicleListItem.vue";
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
|
@ -59,12 +63,6 @@ export default defineComponent({
|
|||
},
|
||||
methods: {
|
||||
...mapActions(useVehicleStore, ["fetchVehicles"]),
|
||||
...mapActions(useModalStore, ["openModal"]),
|
||||
openCreateModal() {
|
||||
this.openModal(
|
||||
markRaw(defineAsyncComponent(() => import("@/components/admin/unit/vehicle/CreateVehicleModal.vue")))
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
<RouterLink v-if="can('update', 'unit', 'vehicle')" :to="{ name: 'admin-unit-vehicle-edit' }">
|
||||
<PencilIcon class="w-5 h-5" />
|
||||
</RouterLink>
|
||||
<TrashIcon v-if="can('delete', 'unit', 'vehicle')" class="w-5 h-5 cursor-pointer" @click="openDeleteModal" />
|
||||
</div>
|
||||
</template>
|
||||
<template #diffMain>
|
||||
|
@ -44,12 +43,11 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { defineAsyncComponent, defineComponent, markRaw } from "vue";
|
||||
import { defineComponent } from "vue";
|
||||
import { mapActions, mapState } from "pinia";
|
||||
import MainTemplate from "@/templates/Main.vue";
|
||||
import { RouterLink, RouterView } from "vue-router";
|
||||
import { PencilIcon, TrashIcon } from "@heroicons/vue/24/outline";
|
||||
import { useModalStore } from "@/stores/modal";
|
||||
import { PencilIcon } from "@heroicons/vue/24/outline";
|
||||
import { useAbilityStore } from "@/stores/ability";
|
||||
import { useVehicleStore } from "@/stores/admin/unit/vehicle/vehicle";
|
||||
</script>
|
||||
|
@ -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 ?? ""
|
||||
);
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue