enable viewing of uploaded files to inspection points
This commit is contained in:
parent
5d26885da3
commit
98bf4532aa
5 changed files with 91 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue