enable viewing of uploaded files to inspection points

This commit is contained in:
Julian Krauser 2025-07-12 17:04:27 +02:00
parent 5d26885da3
commit 98bf4532aa
5 changed files with 91 additions and 9 deletions

View file

@ -95,6 +95,11 @@ export const useInspectionStore = defineStore("inspection", {
responseType: "blob",
});
},
fetchUploadedFileByPointId(id: string) {
return http.get(`/admin/inspection/${this.activeInspectionObj?.id}/${id}/upload`, {
responseType: "blob",
});
},
async createInspection(inspection: CreateInspectionViewModel): Promise<AxiosResponse<any, any>> {
const result = await http.post(`/admin/inspection`, {
assigned: inspection.assigned,