- inserito il componente per scegliere il colore e la trasparenza, dello sfondo della pagina introduttiva
- corretto i margini del testo e la dimensione del font.
This commit is contained in:
@@ -4,7 +4,11 @@
|
||||
v-if="
|
||||
tools.checkIfShowField(
|
||||
col,
|
||||
insertMode ? tools.TIPOVIS_NEW_RECORD : isInModif ? tools.TIPOVIS_EDIT_RECORD : tools.TIPOVIS_SHOW_RECORD,
|
||||
insertMode
|
||||
? tools.TIPOVIS_NEW_RECORD
|
||||
: isInModif
|
||||
? tools.TIPOVIS_EDIT_RECORD
|
||||
: tools.TIPOVIS_SHOW_RECORD,
|
||||
visulabel,
|
||||
myvalue
|
||||
)
|
||||
@@ -32,7 +36,8 @@
|
||||
v-model="myvalue"
|
||||
:label="title"
|
||||
:disable="
|
||||
(disable && col.name !== 'profile.saw_zoom_presentation') || (!isInModif && !canModify && !canEdit)
|
||||
(disable && col.name !== 'profile.saw_zoom_presentation') ||
|
||||
(!isInModif && !canModify && !canEdit)
|
||||
"
|
||||
@update:model-value="Savedb"
|
||||
></q-toggle>
|
||||
@@ -79,7 +84,8 @@
|
||||
<span
|
||||
v-if="
|
||||
col.extrafield &&
|
||||
(col.tipovisu !== costanti.TipoVisu.LINK || (col.tipovisu === costanti.TipoVisu.LINK && myvalue))
|
||||
(col.tipovisu !== costanti.TipoVisu.LINK ||
|
||||
(col.tipovisu === costanti.TipoVisu.LINK && myvalue))
|
||||
"
|
||||
>
|
||||
<span class="extrafield">{{ t(col.extrafield) }}</span>
|
||||
@@ -103,19 +109,28 @@
|
||||
v-else-if="
|
||||
!col.extrafield ||
|
||||
(col.extrafield &&
|
||||
(col.tipovisu !== costanti.TipoVisu.LINK || (col.tipovisu === costanti.TipoVisu.LINK && myvalue)))
|
||||
(col.tipovisu !== costanti.TipoVisu.LINK ||
|
||||
(col.tipovisu === costanti.TipoVisu.LINK && myvalue)))
|
||||
"
|
||||
class="q-ma-xs chip_shadow"
|
||||
>
|
||||
<div
|
||||
v-if="(col.tipovisu === costanti.TipoVisu.LINK || col.tipovisu === costanti.TipoVisu.NONE) && myvalue"
|
||||
v-if="
|
||||
(col.tipovisu === costanti.TipoVisu.LINK ||
|
||||
col.tipovisu === costanti.TipoVisu.NONE) &&
|
||||
myvalue
|
||||
"
|
||||
class="full-width"
|
||||
>
|
||||
<q-item
|
||||
clickable
|
||||
v-ripple
|
||||
@click="
|
||||
gotoPage(col.link ? col.link.replace(col.name, myvalue) : `/my/username`.replace(col.name, myvalue))
|
||||
gotoPage(
|
||||
col.link
|
||||
? col.link.replace(col.name, myvalue)
|
||||
: `/my/username`.replace(col.name, myvalue)
|
||||
)
|
||||
"
|
||||
>
|
||||
<q-item-section avatar>
|
||||
@@ -143,7 +158,9 @@
|
||||
</q-item-section>
|
||||
<q-item-section class="">
|
||||
<q-item-label>{{ tools.getNameToShow(row, col) }}</q-item-label>
|
||||
<q-item-label caption>{{ tools.getUserNameOnlyIfToShow(row, col) }}</q-item-label>
|
||||
<q-item-label caption>{{
|
||||
tools.getUserNameOnlyIfToShow(row, col)
|
||||
}}</q-item-label>
|
||||
<q-item-label
|
||||
v-if="row.profile && row.profile.resid_province"
|
||||
style="text-align: right"
|
||||
@@ -207,8 +224,16 @@
|
||||
class="q-ma-md q-pa-sm"
|
||||
:color="myvalue === costanti.OP_ANDOR.OP_AND ? 'red' : 'green'"
|
||||
text-color="white"
|
||||
:icon="myvalue === costanti.OP_ANDOR.OP_AND ? 'fas fa-filter' : 'fas fa-sliders-h'"
|
||||
:label="myvalue === costanti.OP_ANDOR.OP_AND ? $t('dialog.conditionAND') : $t('dialog.conditionOR')"
|
||||
:icon="
|
||||
myvalue === costanti.OP_ANDOR.OP_AND
|
||||
? 'fas fa-filter'
|
||||
: 'fas fa-sliders-h'
|
||||
"
|
||||
:label="
|
||||
myvalue === costanti.OP_ANDOR.OP_AND
|
||||
? $t('dialog.conditionAND')
|
||||
: $t('dialog.conditionOR')
|
||||
"
|
||||
></q-chip>
|
||||
</span>
|
||||
</div>
|
||||
@@ -217,7 +242,7 @@
|
||||
<div v-if="myvalue">
|
||||
<div>
|
||||
<q-chip
|
||||
dense
|
||||
dense
|
||||
class="q-ma-xs q-pa-xs"
|
||||
:color="
|
||||
myvalue?.esito === costanti.VALIDATO.SI
|
||||
@@ -244,7 +269,10 @@
|
||||
></q-chip>
|
||||
</div>
|
||||
<div v-if="myvalue?.username">
|
||||
<span>(Utente: {{ myvalue.username }} - in Data: {{ tools.getstrDateTime(myvalue.data) }})</span>
|
||||
<span
|
||||
>(Utente: {{ myvalue.username }} - in Data:
|
||||
{{ tools.getstrDateTime(myvalue.data) }})</span
|
||||
>
|
||||
</div>
|
||||
|
||||
<div v-if="myvalue?.note">
|
||||
@@ -253,7 +281,61 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-else-if="col.fieldtype === costanti.FieldType.string || col.fieldtype === costanti.FieldType.crypted">
|
||||
<div
|
||||
v-else-if="col.fieldtype === costanti.FieldType.pickcolor"
|
||||
class="row items-center q-gutter-md"
|
||||
>
|
||||
<div
|
||||
class="q-pa-md q-card shadow-1"
|
||||
style="min-width: 350px; max-width: 400px"
|
||||
>
|
||||
<!-- Etichetta -->
|
||||
<p class="q-pt-none q-mb-md text-h6">
|
||||
{{ col.visulabel ? addstrrequired + t(col.label_trans) : col.label }}:
|
||||
</p>
|
||||
|
||||
<!-- Selezione del colore -->
|
||||
<div class="q-mb-md row">
|
||||
<!-- Visualizzazione colore selezionato -->
|
||||
<div
|
||||
class="color-preview"
|
||||
:style="{
|
||||
backgroundColor: tools.getColorWithTransparency(myvalue),
|
||||
width: '100px',
|
||||
height: '100px',
|
||||
borderRadius: '8px',
|
||||
border: '2px solid #ccc',
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
}"
|
||||
@mouseover="hoverPreview = true"
|
||||
@mouseleave="hoverPreview = false"
|
||||
:class="{ 'shadow-2': hoverPreview }"
|
||||
@click="openColorPicker"
|
||||
>
|
||||
<span style="font-size: 14px">{{ myvalue }}</span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- Componente di selezione del colore -->
|
||||
<CPickColor
|
||||
v-if="canEdit || isInModif"
|
||||
ref="colorPicker"
|
||||
v-model="myvalue"
|
||||
@update:model-value="changevalRec"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-else-if="
|
||||
col.fieldtype === costanti.FieldType.string ||
|
||||
col.fieldtype === costanti.FieldType.crypted
|
||||
"
|
||||
>
|
||||
<div
|
||||
v-if="isInModif"
|
||||
:class="{ flex: !isInModif, 'q-mb-sm': true }"
|
||||
@@ -302,7 +384,11 @@
|
||||
color="white"
|
||||
text-color="blue"
|
||||
:icon="`img:` + userStore.getImgUserByUsername(myvalue)"
|
||||
:to="col.link ? col.link.replace(col.name, myvalue) : `/my/username`.replace(col.name, myvalue)"
|
||||
:to="
|
||||
col.link
|
||||
? col.link.replace(col.name, myvalue)
|
||||
: `/my/username`.replace(col.name, myvalue)
|
||||
"
|
||||
:label="myvalue"
|
||||
>
|
||||
</q-btn>
|
||||
@@ -357,13 +443,22 @@
|
||||
@update:model-value="changeValRecCoordAddr"
|
||||
></CMapEditAddressByCoord>
|
||||
</div>
|
||||
<div v-else-if="col.fieldtype === costanti.FieldType.number || col.fieldtype === costanti.FieldType.currency">
|
||||
<div
|
||||
v-else-if="
|
||||
col.fieldtype === costanti.FieldType.number ||
|
||||
col.fieldtype === costanti.FieldType.currency
|
||||
"
|
||||
>
|
||||
<div v-if="canEdit || isInModif">
|
||||
<div>
|
||||
<CInput
|
||||
v-model="myvalue"
|
||||
:label="
|
||||
col.visulabel ? t(col.label_trans) : visulabel ? addstrrequired + t(col.label_trans) : undefined
|
||||
col.visulabel
|
||||
? t(col.label_trans)
|
||||
: visulabel
|
||||
? addstrrequired + t(col.label_trans)
|
||||
: undefined
|
||||
"
|
||||
:dense="dense"
|
||||
@savedb="Savedb"
|
||||
@@ -404,7 +499,11 @@
|
||||
<CInput
|
||||
v-model="myvalue"
|
||||
:label="
|
||||
col.visulabel ? t(col.label_trans) : visulabel ? addstrrequired + t(col.label_trans) : undefined
|
||||
col.visulabel
|
||||
? t(col.label_trans)
|
||||
: visulabel
|
||||
? addstrrequired + t(col.label_trans)
|
||||
: undefined
|
||||
"
|
||||
:dense="dense"
|
||||
@savedb="changevalRec"
|
||||
@@ -460,10 +559,18 @@
|
||||
{{ t(col.label_trans ? col.label_trans : '') }}
|
||||
</span>
|
||||
<CGallery
|
||||
:imagebak="col.showpicprofile_ifnotset ? userStore.getImgByProfile(row['profile'], true) : ''"
|
||||
: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 }]"
|
||||
:imgGall="
|
||||
myvalue && myvalue.imagefile
|
||||
? [myvalue]
|
||||
: [{ imagefile: myvalue, vers_img: 1 }]
|
||||
"
|
||||
:edit="isviewfield()"
|
||||
:canModify="canModify"
|
||||
:isInModif="isInModif"
|
||||
@@ -524,10 +631,18 @@
|
||||
>
|
||||
</q-input>
|
||||
<CGallery
|
||||
:imagebak="col.showpicprofile_ifnotset ? userStore.getImgByProfile(row['profile'], true) : ''"
|
||||
: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 }]"
|
||||
:imgGall="
|
||||
myvalue && myvalue.imagefile
|
||||
? [myvalue]
|
||||
: [{ imagefile: myvalue, vers_img: 1 }]
|
||||
"
|
||||
:edit="isviewfield()"
|
||||
:canModify="canModify"
|
||||
:isInModif="isInModif"
|
||||
@@ -581,7 +696,11 @@
|
||||
{{ t('reg.photo') }}
|
||||
<CSelectImage
|
||||
v-bind="$attrs"
|
||||
:imagebak="col.showpicprofile_ifnotset ? userStore.getImgByProfile(row['profile'], true) : ''"
|
||||
: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]"
|
||||
@@ -648,7 +767,14 @@
|
||||
:pickup="pickup"
|
||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||
:optlab="fieldsTable.getLabelByTable(col.jointable)"
|
||||
:options="globalStore.getTableJoinByName(col.jointable, col.addall, col.addnone, col.filter)"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
col.jointable,
|
||||
col.addall,
|
||||
col.addnone,
|
||||
col.filter
|
||||
)
|
||||
"
|
||||
:useinput="false"
|
||||
:addstrrequired="addstrrequired"
|
||||
>
|
||||
@@ -674,7 +800,14 @@
|
||||
:pickup="pickup"
|
||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||
:optlab="fieldsTable.getLabelByTable(col.jointable)"
|
||||
:options="globalStore.getTableJoinByName(col.jointable, col.addall, col.addnone, col.filter)"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
col.jointable,
|
||||
col.addall,
|
||||
col.addnone,
|
||||
col.filter
|
||||
)
|
||||
"
|
||||
:useinput="false"
|
||||
:addstrrequired="addstrrequired"
|
||||
>
|
||||
@@ -737,10 +870,19 @@
|
||||
</div>
|
||||
<div v-else-if="col.fieldtype === costanti.FieldType.binary">
|
||||
<div v-if="isInModif">
|
||||
<span v-if="insertMode"> {{ col.label ? col.label : t(col.label_trans) }}: </span>
|
||||
<span v-if="insertMode">
|
||||
{{ col.label ? col.label : t(col.label_trans) }}:
|
||||
</span>
|
||||
<CMyToggleList
|
||||
:label="col.titlepopupedit ? col.titlepopupedit : undefined"
|
||||
:options="globalStore.getTableJoinByName(col.jointable, col.addall, col.addnone, col.filter)"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
col.jointable,
|
||||
col.addall,
|
||||
col.addnone,
|
||||
col.filter
|
||||
)
|
||||
"
|
||||
v-model:value="myvalue"
|
||||
@update:value="changevalRec"
|
||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||
@@ -754,7 +896,14 @@
|
||||
:type="costanti.FieldType.binary"
|
||||
:value="myvalue"
|
||||
@update:value="changevalRec"
|
||||
:options="globalStore.getTableJoinByName(col.jointable, col.addall, col.addnone, col.filter)"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
col.jointable,
|
||||
col.addall,
|
||||
col.addnone,
|
||||
col.filter
|
||||
)
|
||||
"
|
||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||
:optlab="fieldsTable.getLabelByTable(col.jointable)"
|
||||
:opticon="fieldsTable.getIconByTable(col.jointable)"
|
||||
@@ -771,7 +920,9 @@
|
||||
:row="row"
|
||||
:multiple="true"
|
||||
:withToggle="true"
|
||||
:label="col.label ? col.label : col?.label_trans ? t(col?.label_trans) : ''"
|
||||
:label="
|
||||
col.label ? col.label : col?.label_trans ? t(col?.label_trans) : ''
|
||||
"
|
||||
:filter_table="col.filter_table"
|
||||
:filter_field="col.filter_field"
|
||||
:value_extra="value_extra"
|
||||
@@ -784,7 +935,14 @@
|
||||
color="primary"
|
||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||
:optlab="fieldsTable.getLabelByTable(col.jointable)"
|
||||
:options="globalStore.getTableJoinByName(col.jointable, col.addall, col.addnone, col.filter)"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
col.jointable,
|
||||
col.addall,
|
||||
col.addnone,
|
||||
col.filter
|
||||
)
|
||||
"
|
||||
:sola_lettura="!isInModif"
|
||||
:useinput="col.allowNewValue"
|
||||
:newvaluefunc="addNewValue"
|
||||
@@ -831,7 +989,14 @@
|
||||
:label="title"
|
||||
@update:value="changevalRec"
|
||||
:value="myvalue"
|
||||
:options="globalStore.getTableJoinByName(col.jointable, col.addall, col.addnone, col.filter)"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
col.jointable,
|
||||
col.addall,
|
||||
col.addnone,
|
||||
col.filter
|
||||
)
|
||||
"
|
||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||
:optlab="fieldsTable.getLabelByTable(col.jointable)"
|
||||
:opticon="fieldsTable.getIconByTable(col.jointable)"
|
||||
@@ -863,12 +1028,20 @@
|
||||
v-model="myvalue"
|
||||
type="toggle"
|
||||
@update:model-value="changevalRec"
|
||||
:options="globalStore.getTableJoinByName(col.jointable, col.addall, col.addnone, col.filter)"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
col.jointable,
|
||||
col.addall,
|
||||
col.addnone,
|
||||
col.filter
|
||||
)
|
||||
"
|
||||
></q-option-group>
|
||||
</div>
|
||||
<div
|
||||
v-else-if="
|
||||
col.fieldtype === costanti.FieldType.select || col.fieldtype === costanti.FieldType.select_by_server
|
||||
col.fieldtype === costanti.FieldType.select ||
|
||||
col.fieldtype === costanti.FieldType.select_by_server
|
||||
"
|
||||
>
|
||||
<div v-if="isInModif">
|
||||
@@ -879,7 +1052,9 @@
|
||||
:label="col.label ? col.label : t(col.label_trans)"
|
||||
v-model:value="myvalue"
|
||||
:pickup="col.fieldtype === costanti.FieldType.select_by_server"
|
||||
:tablesel="col.fieldtype === costanti.FieldType.select_by_server ? tablesel : ''"
|
||||
:tablesel="
|
||||
col.fieldtype === costanti.FieldType.select_by_server ? tablesel : ''
|
||||
"
|
||||
@update:value="changevalRec"
|
||||
@update:model-value="Savedb"
|
||||
:newvaluefunc="addNewValue"
|
||||
@@ -889,7 +1064,14 @@
|
||||
:value_extra="value_extra"
|
||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||
:optlab="fieldsTable.getLabelByTable(col.jointable)"
|
||||
:options="globalStore.getTableJoinByName(col.jointable, col.addall, col.addnone, col.filter)"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
col.jointable,
|
||||
col.addall,
|
||||
col.addnone,
|
||||
col.filter
|
||||
)
|
||||
"
|
||||
:useinput="col.allowNewValue"
|
||||
:addstrrequired="addstrrequired"
|
||||
:dense="dense"
|
||||
@@ -915,7 +1097,14 @@
|
||||
:labelifblank="canEdit ? 'Selezionare' : ''"
|
||||
:filter_table="col.filter_table"
|
||||
:filter_field="col.filter_field"
|
||||
:options="globalStore.getTableJoinByName(col.jointable, col.addall, col.addnone, col.filter)"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
col.jointable,
|
||||
col.addall,
|
||||
col.addnone,
|
||||
col.filter
|
||||
)
|
||||
"
|
||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||
:optlab="fieldsTable.getLabelByTable(col.jointable)"
|
||||
:opticon="fieldsTable.getIconByTable(col.jointable)"
|
||||
@@ -944,7 +1133,14 @@
|
||||
color="primary"
|
||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||
:optlab="fieldsTable.getLabelByTable(col.jointable)"
|
||||
:options="globalStore.getTableJoinByName(col.jointable, col.addall, col.addnone, col.filter)"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
col.jointable,
|
||||
col.addall,
|
||||
col.addnone,
|
||||
col.filter
|
||||
)
|
||||
"
|
||||
:sola_lettura="!isInModif"
|
||||
:useinput="isInModif"
|
||||
:addstrrequired="addstrrequired"
|
||||
@@ -952,7 +1148,12 @@
|
||||
>
|
||||
</CMySelect>
|
||||
</div>
|
||||
<div v-else-if="col.fieldtype === costanti.FieldType.star5 || col.fieldtype === costanti.FieldType.star3">
|
||||
<div
|
||||
v-else-if="
|
||||
col.fieldtype === costanti.FieldType.star5 ||
|
||||
col.fieldtype === costanti.FieldType.star3
|
||||
"
|
||||
>
|
||||
<div v-if="isInModif">
|
||||
<CMySelect
|
||||
:type_out="col.field_outtype"
|
||||
@@ -966,7 +1167,14 @@
|
||||
:value_extra="value_extra"
|
||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||
:optlab="fieldsTable.getLabelByTable(col.jointable)"
|
||||
:options="globalStore.getTableJoinByName(col.jointable, col.addall, col.addnone, col.filter)"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
col.jointable,
|
||||
col.addall,
|
||||
col.addnone,
|
||||
col.filter
|
||||
)
|
||||
"
|
||||
:useinput="false"
|
||||
:addstrrequired="addstrrequired"
|
||||
:dense="dense"
|
||||
@@ -1122,7 +1330,11 @@
|
||||
ref="popupEditRef"
|
||||
v-if="!isInModif && canEdit && noPopupeditByCol(col)"
|
||||
v-model="myvalue"
|
||||
:disable="col.disable || disable || col.fieldtype === costanti.FieldType.image_and_filename"
|
||||
:disable="
|
||||
col.disable ||
|
||||
disable ||
|
||||
col.fieldtype === costanti.FieldType.image_and_filename
|
||||
"
|
||||
:readonly="col.disable || disable"
|
||||
:title="title ? title : col.titlepopupedit"
|
||||
buttons
|
||||
@@ -1147,13 +1359,23 @@
|
||||
v-model="scope.value"
|
||||
:label="t('dialog.condition')"
|
||||
:options="[
|
||||
{ label: 'Filtra se Tutti i criteri sono veri (AND)', value: costanti.OP_ANDOR.OP_AND },
|
||||
{ label: 'Filtra se almeno uno dei criteri è vero (OR)', value: costanti.OP_ANDOR.OP_OR },
|
||||
{
|
||||
label: 'Filtra se Tutti i criteri sono veri (AND)',
|
||||
value: costanti.OP_ANDOR.OP_AND,
|
||||
},
|
||||
{
|
||||
label: 'Filtra se almeno uno dei criteri è vero (OR)',
|
||||
value: costanti.OP_ANDOR.OP_OR,
|
||||
},
|
||||
]"
|
||||
emit-value
|
||||
map-options
|
||||
:color="scope.value === costanti.OP_ANDOR.OP_AND ? 'red' : 'green'"
|
||||
:icon="scope.value === costanti.OP_ANDOR.OP_AND ? 'fas fa-filter' : 'fas fa-sliders-h'"
|
||||
:icon="
|
||||
scope.value === costanti.OP_ANDOR.OP_AND
|
||||
? 'fas fa-filter'
|
||||
: 'fas fa-sliders-h'
|
||||
"
|
||||
@update:model-value="changevalRec"
|
||||
>
|
||||
</q-select>
|
||||
@@ -1164,7 +1386,9 @@
|
||||
v-model="scope.value.esito"
|
||||
type="radio"
|
||||
:icon="
|
||||
[costanti.VALIDATO.NO, costanti.VALIDATO.TO_RESOLV].includes(myvalue.esito)
|
||||
[costanti.VALIDATO.NO, costanti.VALIDATO.TO_RESOLV].includes(
|
||||
myvalue.esito
|
||||
)
|
||||
? 'fas fa-question-circle'
|
||||
: 'fas fa-check-circle'
|
||||
"
|
||||
@@ -1194,7 +1418,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-else-if="col.fieldtype === costanti.FieldType.string || col.fieldtype === costanti.FieldType.crypted"
|
||||
v-else-if="
|
||||
col.fieldtype === costanti.FieldType.string ||
|
||||
col.fieldtype === costanti.FieldType.crypted
|
||||
"
|
||||
>
|
||||
<q-input
|
||||
v-bind="$attrs"
|
||||
@@ -1225,7 +1452,13 @@
|
||||
>
|
||||
<CMyEditorAI
|
||||
v-model:value="scope.value"
|
||||
:title="col.visulabel ? t(col.label_trans) : visulabel ? addstrrequired + col.label : undefined"
|
||||
:title="
|
||||
col.visulabel
|
||||
? t(col.label_trans)
|
||||
: visulabel
|
||||
? addstrrequired + col.label
|
||||
: undefined
|
||||
"
|
||||
@keyup.enter.stop
|
||||
:showButtons="false"
|
||||
:canModify="canModify"
|
||||
@@ -1244,7 +1477,13 @@
|
||||
debounce="1000"
|
||||
:maxlength="col.maxlength ? col.maxlength : undefined"
|
||||
autofocus
|
||||
:label="col.visulabel ? t(col.label_trans) : visulabel ? addstrrequired + col.label : undefined"
|
||||
:label="
|
||||
col.visulabel
|
||||
? t(col.label_trans)
|
||||
: visulabel
|
||||
? addstrrequired + col.label
|
||||
: undefined
|
||||
"
|
||||
>
|
||||
</q-input>
|
||||
</div>
|
||||
@@ -1312,25 +1551,39 @@
|
||||
</div>
|
||||
<div
|
||||
v-else-if="
|
||||
col.fieldtype === costanti.FieldType.select || col.fieldtype === costanti.FieldType.select_by_server
|
||||
col.fieldtype === costanti.FieldType.select ||
|
||||
col.fieldtype === costanti.FieldType.select_by_server
|
||||
"
|
||||
>
|
||||
<CMySelect
|
||||
:type_out="col.field_outtype"
|
||||
:col="col"
|
||||
:row="row"
|
||||
:label="col.label ? col.label : col.label_trans ? t(col.label_trans) : undefined"
|
||||
:label="
|
||||
col.label ? col.label : col.label_trans ? t(col.label_trans) : undefined
|
||||
"
|
||||
v-model:value="scope.value"
|
||||
:pickup="col.fieldtype === costanti.FieldType.select_by_server"
|
||||
:addnone="col?.addnone"
|
||||
:tablesel="col.fieldtype === costanti.FieldType.select_by_server ? tablesel : undefined"
|
||||
:tablesel="
|
||||
col.fieldtype === costanti.FieldType.select_by_server
|
||||
? tablesel
|
||||
: undefined
|
||||
"
|
||||
:filter_table="col.filter_table"
|
||||
:filter_field="col.filter_field"
|
||||
:value_extra="value_extra"
|
||||
:newvaluefunc="addNewValue"
|
||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||
:optlab="fieldsTable.getLabelByTable(col.jointable)"
|
||||
:options="globalStore.getTableJoinByName(col.jointable, col.addall, col.addnone, col.filter)"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
col.jointable,
|
||||
col.addall,
|
||||
col.addnone,
|
||||
col.filter
|
||||
)
|
||||
"
|
||||
:useinput="col.allowNewValue"
|
||||
:addstrrequired="addstrrequired"
|
||||
:dense="dense"
|
||||
@@ -1358,7 +1611,14 @@
|
||||
color="primary"
|
||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||
:optlab="fieldsTable.getLabelByTable(col.jointable)"
|
||||
:options="globalStore.getTableJoinByName(col.jointable, col.addall, col.addnone, col.filter)"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
col.jointable,
|
||||
col.addall,
|
||||
col.addnone,
|
||||
col.filter
|
||||
)
|
||||
"
|
||||
:useinput="true"
|
||||
:addstrrequired="addstrrequired"
|
||||
:dense="dense"
|
||||
@@ -1384,7 +1644,14 @@
|
||||
color="primary"
|
||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||
:optlab="fieldsTable.getLabelByTable(col.jointable)"
|
||||
:options="globalStore.getTableJoinByName(col.jointable, col.addall, col.addnone, col.filter)"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
col.jointable,
|
||||
col.addall,
|
||||
col.addnone,
|
||||
col.filter
|
||||
)
|
||||
"
|
||||
:sola_lettura="!isInModif"
|
||||
:useinput="col.allowNewValue"
|
||||
:newvaluefunc="addNewValue"
|
||||
@@ -1503,7 +1770,11 @@
|
||||
</div>
|
||||
<div v-else-if="col.fieldtype === costanti.FieldType.onlydate">
|
||||
<CDateTime
|
||||
:label="col.label ? addstrrequired + col.label : addstrrequired + t(col.label_trans)"
|
||||
:label="
|
||||
col.label
|
||||
? addstrrequired + col.label
|
||||
: addstrrequired + t(col.label_trans)
|
||||
"
|
||||
:class="{ 'cursor-pointer': canEdit }"
|
||||
:valueDate="myvalue"
|
||||
v-model:value="myvalue"
|
||||
@@ -1519,7 +1790,14 @@
|
||||
<div v-else-if="col.fieldtype === costanti.FieldType.binary">
|
||||
<CMyToggleList
|
||||
:label="col.titlepopupedit ? col.titlepopupedit : undefined"
|
||||
:options="globalStore.getTableJoinByName(col.jointable, col.addall, col.addnone, col.filter)"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
col.jointable,
|
||||
col.addall,
|
||||
col.addnone,
|
||||
col.filter
|
||||
)
|
||||
"
|
||||
v-model:value="scope.value"
|
||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||
:optlab="fieldsTable.getLabelByTable(col.jointable)"
|
||||
@@ -1539,7 +1817,12 @@
|
||||
>
|
||||
</q-input>
|
||||
</div>
|
||||
<div v-else-if="col.fieldtype === costanti.FieldType.star5 || col.fieldtype === costanti.FieldType.star3">
|
||||
<div
|
||||
v-else-if="
|
||||
col.fieldtype === costanti.FieldType.star5 ||
|
||||
col.fieldtype === costanti.FieldType.star3
|
||||
"
|
||||
>
|
||||
<CMySelect
|
||||
:type_out="col.field_outtype"
|
||||
:col="col"
|
||||
@@ -1548,7 +1831,14 @@
|
||||
v-model:value="scope.value"
|
||||
:optval="fieldsTable.getKeyByTable(col.jointable)"
|
||||
:optlab="fieldsTable.getLabelByTable(col.jointable)"
|
||||
:options="globalStore.getTableJoinByName(col.jointable, col.addall, col.addnone, col.filter)"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
col.jointable,
|
||||
col.addall,
|
||||
col.addnone,
|
||||
col.filter
|
||||
)
|
||||
"
|
||||
:useinput="false"
|
||||
:addstrrequired="addstrrequired"
|
||||
>
|
||||
@@ -1591,10 +1881,18 @@
|
||||
>
|
||||
</q-input>
|
||||
<CGallery
|
||||
:imagebak="col.showpicprofile_ifnotset ? userStore.getImgByProfile(row['profile'], true) : ''"
|
||||
: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 }]"
|
||||
:imgGall="
|
||||
myvalue && myvalue.imagefile
|
||||
? [myvalue]
|
||||
: [{ imagefile: myvalue, vers_img: 1 }]
|
||||
"
|
||||
:edit="isviewfield()"
|
||||
:canModify="canModify"
|
||||
:isInModif="isInModif"
|
||||
|
||||
Reference in New Issue
Block a user