equipmenttype form

This commit is contained in:
Julian Krauser 2025-03-31 10:59:41 +02:00
parent 8be88a5245
commit 5641dbb57f
9 changed files with 114 additions and 52 deletions

View file

@ -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">

View file

@ -34,11 +34,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 { useModalStore } from "@/stores/modal";
import { useAbilityStore } from "@/stores/ability";
import { useEquipmentStore } from "@/stores/admin/unit/equipment/equipment";
</script>
@ -65,13 +64,6 @@ export default defineComponent({
},
methods: {
...mapActions(useEquipmentStore, ["fetchEquipmentByActiveId"]),
...mapActions(useModalStore, ["openModal"]),
openDeleteModal() {
this.openModal(
markRaw(defineAsyncComponent(() => import("@/components/admin/unit/member/DeleteMemberModal.vue"))),
this.equipmentId ?? ""
);
},
},
});
</script>