update components
This commit is contained in:
parent
8c4a53bc17
commit
4da2e9c792
19 changed files with 11 additions and 23 deletions
|
@ -4,8 +4,7 @@
|
|||
:items="inspections"
|
||||
:totalCount="totalCount"
|
||||
:indicateLoading="false"
|
||||
@load-data="(offset, count, search) => {}"
|
||||
@search="(search) => {}"
|
||||
@load-data="(offset, count, search) => fetchInspectionForWearable(offset, count, search)"
|
||||
>
|
||||
<template #pageRow="{ row }: { row: InspectionViewModel }">
|
||||
<RouterLink
|
||||
|
@ -46,6 +45,7 @@ import { useWearableInspectionStore } from "@/stores/admin/unit/wearable/inspect
|
|||
import { PencilSquareIcon } from "@heroicons/vue/24/outline";
|
||||
import Pagination from "@/components/Pagination.vue";
|
||||
import type { InspectionViewModel } from "@/viewmodels/admin/unit/inspection/inspection.models";
|
||||
import { count } from "console";
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
|
@ -63,7 +63,7 @@ export default defineComponent({
|
|||
methods: {
|
||||
...mapActions(useWearableInspectionStore, ["fetchInspectionForWearable"]),
|
||||
fetchItem() {
|
||||
this.fetchInspectionForWearable();
|
||||
this.fetchInspectionForWearable(0, 25, "", true);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue