Il link di un gruppo non può contenere la barra... o altri caratteri speciali
This commit is contained in:
@@ -1120,7 +1120,7 @@ export default defineComponent({
|
||||
|
||||
|
||||
function showandsel(row: any, col: any, newval: any, valinitial: any) {
|
||||
console.log('showandsel CGridTable', row, col, newval)
|
||||
// console.log('showandsel CGridTable', row, col, newval)
|
||||
rowsel = row
|
||||
colsel.value = col
|
||||
idsel = row._id
|
||||
@@ -1130,7 +1130,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function annulla(val: any) {
|
||||
console.log('GridTable annulla')
|
||||
// console.log('GridTable annulla')
|
||||
/*
|
||||
if (newRecord.value) {
|
||||
globalStore.DeleteRec({ table: mytable.value, id: newRecord.value._id })
|
||||
@@ -1260,7 +1260,7 @@ export default defineComponent({
|
||||
|
||||
createNewRecordDialog()
|
||||
|
||||
console.log('newRecord.value', newRecord.value)
|
||||
// console.log('newRecord.value', newRecord.value)
|
||||
|
||||
// serverData.value.push(newRecord.value)
|
||||
pagination.value.rowsNumber++
|
||||
@@ -1732,6 +1732,13 @@ export default defineComponent({
|
||||
if (col.notsave) {
|
||||
delete myobj[col.name]
|
||||
}
|
||||
// Add the column
|
||||
if (col.field_toduplicate_nospace) {
|
||||
//
|
||||
let trovato = tools.removespecial_chars(myobj[col.name])
|
||||
myobj[col.field_toduplicate_nospace] = trovato
|
||||
// console.log('trovato', trovato, 'name', myobj[col.name], 'duplicate:', myobj[col.field_toduplicate_nospace], 'orig', myobj[col.name])
|
||||
}
|
||||
})
|
||||
|
||||
mydata.data = myobj
|
||||
|
||||
@@ -301,12 +301,12 @@ export default defineComponent({
|
||||
// console.log('OBJ:', obj)
|
||||
if (true) {
|
||||
|
||||
console.log(' CAMPO', props.field + '.' + props.subfield)
|
||||
// console.log(' CAMPO', props.field + '.' + props.subfield)
|
||||
let myval = tools.getLabelFooterByRow(myrow.value, props.field + '.' + props.subfield, props.table)
|
||||
if (myval)
|
||||
myvalue.value = myval
|
||||
console.log(' RECORD INPUT', myrow.value)
|
||||
console.log(' VALORE OUTPUT: ', myvalue.value)
|
||||
// console.log(' RECORD INPUT', myrow.value)
|
||||
// console.log(' VALORE OUTPUT: ', myvalue.value)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -770,11 +770,17 @@ export default defineComponent({
|
||||
|
||||
}
|
||||
|
||||
function nameKeydown(e: any, col: any) {
|
||||
if (col.allowchar === costanti.ALLOWCHAR_CODE) {
|
||||
|
||||
if (/^\W$/.test(e.key)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onBeforeMount(mounted)
|
||||
|
||||
|
||||
|
||||
return {
|
||||
myvalue,
|
||||
countryname,
|
||||
@@ -810,6 +816,7 @@ export default defineComponent({
|
||||
getTitleEditor,
|
||||
myrow,
|
||||
shared_consts,
|
||||
nameKeydown,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -142,6 +142,7 @@
|
||||
? `password`
|
||||
: `text`
|
||||
"
|
||||
@keydown="nameKeydown($event, col)"
|
||||
@keyup.enter.stop
|
||||
@update:model-value="changevalRec"
|
||||
autofocus
|
||||
|
||||
Reference in New Issue
Block a user