fixed CGallery

This commit is contained in:
Paolo Arena
2021-11-22 18:28:45 +01:00
parent ae62860d51
commit e6ea3206a9
8 changed files with 127 additions and 102 deletions

View File

@@ -20,6 +20,7 @@ import MixinUsers from '@/mixins/mixin-users'
export default defineComponent({
name: 'CMyPopupEdit',
emits: ['showandsave', 'update:row', 'show', 'save', 'annulla'],
props: {
title: {
type: String,
@@ -250,14 +251,7 @@ export default defineComponent({
myvalue.value = {
title: 'Galleria',
directory: 'none',
list: [
{
_id: '',
imagefile: 'noimg.png',
order: 0,
alt: '',
description: '(nessuna foto)'
}]
list: []
}
}
}
@@ -336,6 +330,7 @@ export default defineComponent({
function Savedb(newVal: any, valinitial: any) {
console.log('Savedb')
if (col.value.fieldtype === costanti.FieldType.boolean) {
// console.log('myvalue', myvalue, newVal, myvalueprec)

View File

@@ -85,7 +85,6 @@
<div v-else-if="col.fieldtype === costanti.FieldType.listimages">
gall1:
<CGallery
v-if="myvalue"
:title="getTitleGall()"
:directory="getDirectoryGall()"
:imgGall="myvalue" :edit="isviewfield()"
@@ -99,7 +98,6 @@
<div v-if="canEdit">
gall2:
<CGallery
v-if="myvalue"
:title="getTitleGall()"
:directory="getDirectoryGall()"
:imgGall="myvalue" :edit="isviewfield()"
@@ -184,7 +182,6 @@
<div v-if="col.fieldtype === costanti.FieldType.listimages">
gall3:
<CGallery
v-if="myvalue"
:title="getTitleGall()"
:directory="getDirectoryGall()"
:imgGall="myvalue" :edit="isviewfield()"
@@ -193,9 +190,8 @@
</CGallery>
</div>
<div v-else-if="col.fieldtype === costanti.FieldType.image">
gall4:
<CGallery
v-if="myvalue"
:title="getTitleGall()"
:directory="getDirectoryGall()"
:single="isFieldDb()"