|
|
|
@ -140,14 +140,14 @@
|
|
|
|
:id="field.uuid"
|
|
|
|
:id="field.uuid"
|
|
|
|
:src="mySignatureUrl.url"
|
|
|
|
:src="mySignatureUrl.url"
|
|
|
|
class="d-flex justify-center w-full h-full"
|
|
|
|
class="d-flex justify-center w-full h-full"
|
|
|
|
style="z-index: 50;"
|
|
|
|
style="z-index: 50; border-width: 2px; --tw-bg-opacity: 1; --tw-border-opacity: 0.2; background-color: transparent;"
|
|
|
|
@click="handleMySignatureClick"
|
|
|
|
@click="handleMySignatureClick"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<img
|
|
|
|
<img
|
|
|
|
v-else
|
|
|
|
v-else
|
|
|
|
:id="field.uuid"
|
|
|
|
:id="field.uuid"
|
|
|
|
class="d-flex justify-center w-full h-full"
|
|
|
|
class="d-flex justify-center w-full h-full"
|
|
|
|
style="z-index: 50;"
|
|
|
|
style="z-index: 50; border-width: 2px; --tw-bg-opacity: 1; --tw-border-opacity: 0.2; background-color: transparent;"
|
|
|
|
@click="handleMySignatureClick"
|
|
|
|
@click="handleMySignatureClick"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -162,14 +162,14 @@
|
|
|
|
:id="field.uuid"
|
|
|
|
:id="field.uuid"
|
|
|
|
:src="myInitialsUrl.url"
|
|
|
|
:src="myInitialsUrl.url"
|
|
|
|
class="d-flex justify-center w-full h-full"
|
|
|
|
class="d-flex justify-center w-full h-full"
|
|
|
|
style="z-index: 50;"
|
|
|
|
style="z-index: 50; border-width: 2px; --tw-bg-opacity: 1; --tw-border-opacity: 0.2; background-color: transparent;"
|
|
|
|
@click="handleMyInitialClick"
|
|
|
|
@click="handleMyInitialClick"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<img
|
|
|
|
<img
|
|
|
|
v-else
|
|
|
|
v-else
|
|
|
|
:id="field.uuid"
|
|
|
|
:id="field.uuid"
|
|
|
|
class="d-flex justify-center w-full h-full"
|
|
|
|
class="d-flex justify-center w-full h-full"
|
|
|
|
style="z-index: 50;"
|
|
|
|
style="z-index: 50; border-width: 2px; --tw-bg-opacity: 1; --tw-border-opacity: 0.2; background-color: transparent;"
|
|
|
|
@click="handleMyInitialClick"
|
|
|
|
@click="handleMyInitialClick"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -216,6 +216,9 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
v-if="showMySignature"
|
|
|
|
v-if="showMySignature"
|
|
|
|
|
|
|
|
@pointerdown.stop
|
|
|
|
|
|
|
|
@mousedown.stop="startDrag"
|
|
|
|
|
|
|
|
@touchstart="startTouchDrag"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<MySignature
|
|
|
|
<MySignature
|
|
|
|
:key="field.uuid"
|
|
|
|
:key="field.uuid"
|
|
|
|
@ -233,6 +236,9 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
v-if="showMyInitials"
|
|
|
|
v-if="showMyInitials"
|
|
|
|
|
|
|
|
@pointerdown.stop
|
|
|
|
|
|
|
|
@mousedown.stop="startDrag"
|
|
|
|
|
|
|
|
@touchstart="startTouchDrag"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<MyInitials
|
|
|
|
<MyInitials
|
|
|
|
:key="field.uuid"
|
|
|
|
:key="field.uuid"
|
|
|
|
@ -244,7 +250,7 @@
|
|
|
|
:template="template"
|
|
|
|
:template="template"
|
|
|
|
:attachments-index="attachmentsIndex"
|
|
|
|
:attachments-index="attachmentsIndex"
|
|
|
|
@attached="handleMyInitialsAttachment"
|
|
|
|
@attached="handleMyInitialsAttachment"
|
|
|
|
@hide="showMySignature = false"
|
|
|
|
@hide="showMyInitials = false"
|
|
|
|
@start="$refs.areas.scrollIntoField(field)"
|
|
|
|
@start="$refs.areas.scrollIntoField(field)"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -509,10 +515,12 @@ export default {
|
|
|
|
handleMyInitialsAttachment (attachment) {
|
|
|
|
handleMyInitialsAttachment (attachment) {
|
|
|
|
this.templateAttachments.push(attachment)
|
|
|
|
this.templateAttachments.push(attachment)
|
|
|
|
this.makeMyInitials(attachment.uuid)
|
|
|
|
this.makeMyInitials(attachment.uuid)
|
|
|
|
|
|
|
|
this.save()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleMySignatureAttachment (attachment) {
|
|
|
|
handleMySignatureAttachment (attachment) {
|
|
|
|
this.templateAttachments.push(attachment)
|
|
|
|
this.templateAttachments.push(attachment)
|
|
|
|
this.makeMySignature(attachment.uuid)
|
|
|
|
this.makeMySignature(attachment.uuid)
|
|
|
|
|
|
|
|
this.save()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onNameFocus (e) {
|
|
|
|
onNameFocus (e) {
|
|
|
|
this.selectedAreaRef.value = this.area
|
|
|
|
this.selectedAreaRef.value = this.area
|
|
|
|
|