add pdf generation

This commit is contained in:
Alex Turchyn
2023-05-28 23:20:48 +03:00
parent 170cb1ecea
commit 6a41f82e5b
21 changed files with 383 additions and 49 deletions
+3 -1
View File
@@ -1,14 +1,16 @@
<template>
<div
class="flex cursor-pointer bg-red-100 absolute"
class="flex cursor-pointer bg-red-100 bg-opacity-60 absolute"
:style="computedStyle"
>
<img
v-if="field.type === 'image' && image"
class="object-contain"
:src="image.url"
>
<img
v-else-if="field.type === 'signature' && signature"
class="object-contain"
:src="signature.url"
>
<div v-else-if="field.type === 'attachment'">
+1 -1
View File
@@ -83,7 +83,7 @@ export default {
body: JSON.stringify({
submission_slug: this.submissionSlug,
blob_signed_id: data.signed_id,
name: 'signatures'
name: 'attachments'
}),
headers: { 'Content-Type': 'application/json' }
}).then((resp) => resp.json()).then((attachment) => {