- Corretto campo "Comune di Residenza".
- Aggiornato Completamento Profilo: Comune di Residenza. - Registrazione
This commit is contained in:
@@ -121,6 +121,21 @@ export default defineComponent({
|
||||
required: false,
|
||||
default: '',
|
||||
},
|
||||
label_trans: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: '',
|
||||
},
|
||||
subfield_to_see: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: '',
|
||||
},
|
||||
fieldsel_tosee: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: '',
|
||||
},
|
||||
subfield2: {
|
||||
type: String,
|
||||
required: false,
|
||||
@@ -261,6 +276,7 @@ export default defineComponent({
|
||||
const userStore = useUserStore();
|
||||
const globalStore = useGlobalStore();
|
||||
|
||||
const myvaltosee = ref(null as any);
|
||||
const myvalue = ref(null as any);
|
||||
const myvalue2 = ref(null as any);
|
||||
const myvalueprec = ref('false');
|
||||
@@ -276,6 +292,7 @@ export default defineComponent({
|
||||
const $router = useRouter();
|
||||
|
||||
const loaded = ref(false);
|
||||
const modeEdit = ref(false);
|
||||
|
||||
const myColor = ref('#FF00AA55'); // Colore con trasparenza iniziale
|
||||
|
||||
@@ -357,6 +374,7 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
col.value.jointable = props.jointable;
|
||||
col.value.label_trans = props.label_trans;
|
||||
if (props.filter) col.value.filter = props.filter;
|
||||
col.value.fieldtype = props.type;
|
||||
|
||||
@@ -519,7 +537,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function changevalRecOrig(newval: any, subcol: string = '') {
|
||||
console.log('changevalRec', newval)
|
||||
console.log('changevalRec', newval);
|
||||
// if (!props.insertMode || (props.insertMode && col.value.fieldtype !== costanti.FieldType.multioption)) {
|
||||
if (col.value && col.value.allowchar === costanti.ALLOWCHAR_CODE) {
|
||||
newval = tools.removespaces_slash(newval);
|
||||
@@ -537,7 +555,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
if (props.type === costanti.FieldType.imgfile_sfuso) {
|
||||
newval = newval?.imagefile
|
||||
newval = newval?.imagefile;
|
||||
}
|
||||
|
||||
if (props.notAllowAtChar) {
|
||||
@@ -635,8 +653,11 @@ export default defineComponent({
|
||||
note: '',
|
||||
};
|
||||
}
|
||||
} catch (e) { }
|
||||
} catch (e) {}
|
||||
|
||||
if (props.subfield_to_see) {
|
||||
myvaltosee.value = myrow.value[props.field][props.subfield_to_see];
|
||||
}
|
||||
|
||||
// console.log('popupedit: myvalue.value', myvalue.value)
|
||||
|
||||
@@ -740,7 +761,6 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (col.value.fieldtype === costanti.FieldType.verifica) {
|
||||
newVal.username = userStore.my.username;
|
||||
newVal.data = tools.getDateNow();
|
||||
@@ -793,6 +813,11 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
if (props.fieldsel_tosee) {
|
||||
const mystrcol = props.fieldsel_tosee;
|
||||
myvaltosee.value = copynewval[mystrcol];
|
||||
}
|
||||
|
||||
console.log('SaveValueInt', newVal, valinitial);
|
||||
|
||||
emit('save', newVal, valinitial, copynewval.which!);
|
||||
@@ -836,6 +861,25 @@ export default defineComponent({
|
||||
);
|
||||
}
|
||||
}
|
||||
async function savefieldtosee(value: any, initialval: any, myq: any) {
|
||||
if (!props.insertMode) {
|
||||
let ret = null;
|
||||
myvalue2.value = value;
|
||||
return tools.saveInDBForTypes(
|
||||
myq,
|
||||
props.field2,
|
||||
myvalue2.value,
|
||||
props.type,
|
||||
props.serv,
|
||||
props.table,
|
||||
props.fieldsel_tosee,
|
||||
props.id,
|
||||
props.indrec,
|
||||
props.mysubsubkey,
|
||||
props.specialField
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function annulla(val: any) {
|
||||
emit('annulla', true);
|
||||
@@ -889,7 +933,7 @@ export default defineComponent({
|
||||
myvalue.value = '';
|
||||
} else {
|
||||
myvalue.value = newVal.imagefile;
|
||||
newVal = tools.getDirUpload() + mypath.value + myvalue.value
|
||||
newVal = tools.getDirUpload() + mypath.value + myvalue.value;
|
||||
}
|
||||
} else if (col.value.fieldtype === costanti.FieldType.imgcard) {
|
||||
console.log('newVal.imagefile', newVal);
|
||||
@@ -1204,6 +1248,8 @@ export default defineComponent({
|
||||
colorPicker,
|
||||
myColor,
|
||||
hoverPreview,
|
||||
myvaltosee,
|
||||
modeEdit,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user