update components

This commit is contained in:
Julian Krauser 2025-07-23 10:41:46 +02:00
parent 8c4a53bc17
commit 4da2e9c792
19 changed files with 11 additions and 23 deletions

View file

@ -4,8 +4,7 @@
:items="inspections"
:totalCount="totalCount"
:indicateLoading="false"
@load-data="(offset, count, search) => {}"
@search="(search) => {}"
@load-data="(offset, count, search) => fetchInspectionForVehicle(offset, count, search)"
>
<template #pageRow="{ row }: { row: InspectionViewModel }">
<RouterLink
@ -46,6 +45,8 @@ import { useVehicleInspectionStore } from "@/stores/admin/unit/vehicle/inspectio
import { PencilSquareIcon } from "@heroicons/vue/24/outline";
import Pagination from "@/components/Pagination.vue";
import type { InspectionViewModel } from "@/viewmodels/admin/unit/inspection/inspection.models";
import { off } from "process";
import { count } from "console";
</script>
<script lang="ts">
@ -63,7 +64,7 @@ export default defineComponent({
methods: {
...mapActions(useVehicleInspectionStore, ["fetchInspectionForVehicle"]),
fetchItem() {
this.fetchInspectionForVehicle();
this.fetchInspectionForVehicle(0, 25, "", true);
},
},
});