- Aggiungere un campo "Vagliato dall'Editore" e aggiungere anche il campo "chi" e delle Note
This commit is contained in:
@@ -537,6 +537,14 @@ export default defineComponent({
|
||||
}
|
||||
// console.log('props.field', props.field, 'props.subfield', props.subfield, 'myvalue: ', myvalue)
|
||||
}
|
||||
|
||||
if (props.type === costanti.FieldType.verifica && !myvalue.value) {
|
||||
myvalue.value = {
|
||||
esito: costanti.VALIDATO.NO,
|
||||
username: '',
|
||||
note: '',
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
}
|
||||
@@ -631,6 +639,11 @@ export default defineComponent({
|
||||
|
||||
console.log('SaveValueInt', newVal, valinitial)
|
||||
|
||||
if (col.value.fieldtype === costanti.FieldType.verifica) {
|
||||
newVal.username = userStore.my.username
|
||||
newVal.data = tools.getDateNow()
|
||||
}
|
||||
|
||||
if (props.tablesel) {
|
||||
if (true) {
|
||||
|
||||
@@ -949,6 +962,14 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
function updateValidazione(esito: any) {
|
||||
myvalue.value.esito = esito
|
||||
myvalue.value.data = tools.getDateNow()
|
||||
myvalue.value.username = userStore.my.username
|
||||
changevalRec(myvalue.value)
|
||||
Savedb(myvalue.value, '')
|
||||
}
|
||||
|
||||
|
||||
onBeforeMount(mounted)
|
||||
|
||||
@@ -998,6 +1019,7 @@ export default defineComponent({
|
||||
handleCancel,
|
||||
popupEditRef,
|
||||
copyToClipboard,
|
||||
updateValidazione,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -213,6 +213,46 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else-if="col.fieldtype === costanti.FieldType.verifica">
|
||||
<div>
|
||||
<div>
|
||||
<q-chip
|
||||
dense
|
||||
class="q-ma-xs q-pa-xs"
|
||||
:color="
|
||||
myvalue.esito === costanti.VALIDATO.SI
|
||||
? 'green'
|
||||
: myvalue.esito === costanti.VALIDATO.TO_RESOLV
|
||||
? 'red'
|
||||
: 'grey-7'
|
||||
"
|
||||
text-color="white"
|
||||
:icon="
|
||||
myvalue.esito === costanti.VALIDATO.NO
|
||||
? 'fas fa-question-circle'
|
||||
: myvalue.esito === costanti.VALIDATO.SI
|
||||
? 'fas fa-check-circle'
|
||||
: 'fas fa-exclamation-circle'
|
||||
"
|
||||
:label="
|
||||
myvalue.esito === costanti.VALIDATO.NO
|
||||
? $t('validazione.NO')
|
||||
: myvalue.esito === costanti.VALIDATO.SI
|
||||
? $t('validazione.SI')
|
||||
: $t('validazione.TO_RESOLV')
|
||||
"
|
||||
></q-chip>
|
||||
</div>
|
||||
<div v-if="myvalue.username">
|
||||
<span>(Utente: {{ myvalue.username }} - in Data: {{ tools.getstrDateTime(myvalue.data) }})</span>
|
||||
</div>
|
||||
|
||||
<div v-if="myvalue.note">
|
||||
<span>Note: {{ myvalue.note }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-else-if="col.fieldtype === costanti.FieldType.string || col.fieldtype === costanti.FieldType.crypted">
|
||||
<div
|
||||
v-if="isInModif"
|
||||
@@ -1118,6 +1158,41 @@
|
||||
>
|
||||
</q-select>
|
||||
</div>
|
||||
<div v-else-if="col.fieldtype === costanti.FieldType.verifica">
|
||||
<div>
|
||||
<q-option-group
|
||||
v-model="scope.value.esito"
|
||||
type="radio"
|
||||
:icon="
|
||||
[costanti.VALIDATO.NO, costanti.VALIDATO.TO_RESOLV].includes(myvalue.esito)
|
||||
? 'fas fa-question-circle'
|
||||
: 'fas fa-check-circle'
|
||||
"
|
||||
:color="
|
||||
myvalue.esito === costanti.VALIDATO.SI
|
||||
? 'green'
|
||||
: myvalue.esito === costanti.VALIDATO.TO_RESOLV
|
||||
? 'red'
|
||||
: 'grey-7'
|
||||
"
|
||||
inline
|
||||
:options="[
|
||||
{ label: '[Non verificato]', value: costanti.VALIDATO.NO },
|
||||
{ label: 'Validato', value: costanti.VALIDATO.SI },
|
||||
{ label: 'Da Risolvere', value: costanti.VALIDATO.TO_RESOLV },
|
||||
]"
|
||||
></q-option-group>
|
||||
Username: {{ scope.value.username }}
|
||||
<q-input
|
||||
v-model="scope.value.note"
|
||||
type="text"
|
||||
icon="fas fa-sticky-note"
|
||||
label="Nota"
|
||||
:autogrow="true"
|
||||
>
|
||||
</q-input>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-else-if="col.fieldtype === costanti.FieldType.string || col.fieldtype === costanti.FieldType.crypted"
|
||||
>
|
||||
@@ -1146,9 +1221,9 @@
|
||||
<div v-else-if="col.fieldtype === costanti.FieldType.editor_nohtml">
|
||||
<div
|
||||
class="q-pa-md"
|
||||
style="min-width: 600px;"
|
||||
style="min-width: 600px"
|
||||
>
|
||||
<CMyEditorAI
|
||||
<CMyEditorAI
|
||||
v-model:value="scope.value"
|
||||
:title="col.visulabel ? t(col.label_trans) : visulabel ? addstrrequired + col.label : undefined"
|
||||
@keyup.enter.stop
|
||||
|
||||
Reference in New Issue
Block a user