Aggiornamento cataloghi...
This commit is contained in:
@@ -240,6 +240,8 @@ export default defineComponent({
|
||||
|
||||
const loaded = ref(false)
|
||||
|
||||
const popupEditRef = ref(null)
|
||||
|
||||
const addstrrequired = ref('')
|
||||
|
||||
const col = ref(<IColGridTable>{
|
||||
@@ -287,7 +289,6 @@ export default defineComponent({
|
||||
if (props.filter)
|
||||
col.value.filter = props.filter
|
||||
col.value.fieldtype = props.type
|
||||
col.value.label = props.title
|
||||
|
||||
if (props.type === costanti.FieldType.image) {
|
||||
myImgGall.value = [{
|
||||
@@ -412,6 +413,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function changevalRecOrig(newval: any, subcol: string = '') {
|
||||
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)
|
||||
@@ -459,6 +461,7 @@ export default defineComponent({
|
||||
if (props.isInModif)
|
||||
OpenEdit()
|
||||
|
||||
emit('save', newval)
|
||||
|
||||
// }
|
||||
}
|
||||
@@ -908,6 +911,20 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
function handleCancel() {
|
||||
// Gestisci la chiusura del q-popup-edit
|
||||
console.log("Chiusura di q-popup-edit");
|
||||
}
|
||||
function handleKeydown(event) {
|
||||
// Interrompi la propagazione del tasto ESC
|
||||
if (event.key === "Escape") {
|
||||
event.stopPropagation();
|
||||
console.log("Tasto ESC intercettato e bloccato");
|
||||
|
||||
popupEditRef.value.hide();
|
||||
}
|
||||
}
|
||||
|
||||
onBeforeMount(mounted)
|
||||
|
||||
|
||||
@@ -951,6 +968,10 @@ export default defineComponent({
|
||||
mypath,
|
||||
changeValRecCoordAddr,
|
||||
addstrrequired,
|
||||
t,
|
||||
handleKeydown,
|
||||
handleCancel,
|
||||
popupEditRef,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user