correct type inspectionPlans request

This commit is contained in:
Julian Krauser 2025-07-11 09:42:07 +02:00
parent adfe64d1f2
commit d96c73d5b1
11 changed files with 64 additions and 52 deletions

View file

@ -15,9 +15,9 @@ export const useEquipmentTypeInspectionPlanStore = defineStore("equipmentTypeIns
const equipmentTypeId = useEquipmentTypeStore().activeEquipmentType;
this.loading = "loading";
http
.get(`/admin/inspectionPlan/equipmentType/${equipmentTypeId}`)
.get(`/admin/inspectionPlan/equipmentType/${equipmentTypeId}?noLimit=true`)
.then((result) => {
this.inspectionPlans = result.data;
this.inspectionPlans = result.data.inspectionPlans;
this.loading = "fetched";
})
.catch((err) => {

View file

@ -16,9 +16,9 @@ export const useVehicleTypeInspectionPlanStore = defineStore("vehicleTypeInspect
const vehicleTypeId = useVehicleTypeStore().activeVehicleType;
this.loading = "loading";
http
.get(`/admin/inspectionPlan/vehicleType/${vehicleTypeId}`)
.get(`/admin/inspectionPlan/vehicleType/${vehicleTypeId}?noLimit=true`)
.then((result) => {
this.inspectionPlans = result.data;
this.inspectionPlans = result.data.inspectionPlans;
this.loading = "fetched";
})
.catch((err) => {

View file

@ -16,9 +16,9 @@ export const useWearableTypeInspectionPlanStore = defineStore("wearableTypeInspe
const wearableTypeId = useWearableTypeStore().activeWearableType;
this.loading = "loading";
http
.get(`/admin/inspectionPlan/wearableType/${wearableTypeId}`)
.get(`/admin/inspectionPlan/wearableType/${wearableTypeId}?noLimit=true`)
.then((result) => {
this.inspectionPlans = result.data;
this.inspectionPlans = result.data.inspectionPlans;
this.loading = "fetched";
})
.catch((err) => {