galleria prodotto

This commit is contained in:
Surya Paolo
2025-08-12 19:43:36 +02:00
parent f1f3f5ad07
commit 5d8e38fea6
25 changed files with 848 additions and 524 deletions

View File

@@ -564,7 +564,7 @@
</CAccomodation>
</div>
<div
v-else-if="col.fieldtype === costanti.FieldType.image"
v-else-if="col.fieldtype === costanti.FieldType.imagerec"
style="text-align: center"
>
<div v-if="canEdit">
@@ -727,6 +727,77 @@
? [myvalue]
: [{ imagefile: myvalue, vers_img: 1 }]
"
:fieldtype="col.fieldtype"
:edit="isviewfield()"
:canModify="canModify"
:isInModif="isInModif"
:single="true"
@update:imgGall="changevalRec"
@showandsave="Savedb"
>
</CGallery>
</div>
<div v-else>
<div
v-if="myvalue"
class="text-center"
>
<q-img
:src="myvalue"
class="text-center"
style="height: 100px; width: 100px"
alt="foto"
>
</q-img>
</div>
<div
v-else
class="text-center"
>
<q-img
:src="
col.showpicprofile_ifnotset
? userStore.getImgByProfile(row['profile'], true)
: '/images/noimg-user.svg'
"
class="text-center"
style="height: 100px; width: 100px"
alt="nessuna immagine"
>
</q-img>
</div>
<q-btn
v-if="myvalue"
label="Rimuovi Foto"
color="blue"
icon="fas fa-trash-alt"
size="sm"
@click="removephoto"
></q-btn>
</div>
</div>
<div v-else-if="col.fieldtype === costanti.FieldType.imgfile_sfuso">
<div v-if="canEdit">
{{ t('reg.photo') }}
<CGallery
:imagebak="
col.showpicprofile_ifnotset
? userStore.getImgByProfile(row['profile'], true)
: ''
"
:title="tools.getTitleGall(table)"
:directory="tools.getDirectoryGall(myrow, table, mypath)"
:imgGall="
myvalue && myvalue.imagefile
? [myvalue]
: [
{
imagefile: myvalue,
vers_img: 1,
fieldtype: col.fieldtype,
},
]
"
:edit="isviewfield()"
:canModify="canModify"
:isInModif="isInModif"
@@ -1978,6 +2049,40 @@
? [myvalue]
: [{ imagefile: myvalue, vers_img: 1 }]
"
:fieldtype="col.fieldtype"
:edit="isviewfield()"
:canModify="canModify"
:isInModif="isInModif"
:single="true"
@update:imgGall="changevalRec"
@showandsave="Savedb"
>
</CGallery>
</div>
</div>
<div v-else-if="col.fieldtype === costanti.FieldType.imgfile_sfuso">
<div v-if="canEdit">
{{ t('reg.photo') }}
<CGallery
:imagebak="
col.showpicprofile_ifnotset
? userStore.getImgByProfile(row['profile'], true)
: ''
"
:title="tools.getTitleGall(table)"
:directory="tools.getDirectoryGall(myrow, table, mypath)"
:imgGall="
myvalue && myvalue.imagefile
? [myvalue]
: [
{
imagefile: myvalue,
vers_img: 1,
fieldtype: col.fieldtype,
},
]
"
:fieldtype="col.fieldtype"
:edit="isviewfield()"
:canModify="canModify"
:isInModif="isInModif"