Quando si inserisce un evento, su giunge alla fine, si salva, NON SI MEMORIZZANO foto, data e orario!
This commit is contained in:
@@ -1447,7 +1447,7 @@ export default defineComponent({
|
||||
// @ts-ignore
|
||||
newRecord.value = props.defaultnewrec
|
||||
} else {
|
||||
newRecord.value = tools.getdefaultnewrec(mytable.value, {groupname: props.groupname})
|
||||
newRecord.value = tools.getdefaultnewrec(mytable.value, { groupname: props.groupname })
|
||||
}
|
||||
if (!newRecord.value) {
|
||||
newRecord.value = {}
|
||||
@@ -1862,9 +1862,11 @@ export default defineComponent({
|
||||
|
||||
const showmsg = true
|
||||
|
||||
let myrec = recModif.value
|
||||
let myrec = null
|
||||
if (newrec) {
|
||||
myrec = newRecord.value
|
||||
myrec = { ...newRecord.value }
|
||||
} else {
|
||||
myrec = { ...recModif.value }
|
||||
}
|
||||
|
||||
// mycolumns.value.forEach((col: IColGridTable) => {
|
||||
@@ -2237,6 +2239,19 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
function update_col(col: string, value: string) {
|
||||
console.log('update_col', col, value)
|
||||
|
||||
if (col) {
|
||||
if (newRecordBool.value) {
|
||||
newRecord.value[col] = value
|
||||
} else {
|
||||
recModif.value[col] = value
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/*function showNotification() {
|
||||
$router.push('/notifs')
|
||||
} */
|
||||
@@ -2344,6 +2359,7 @@ export default defineComponent({
|
||||
rowsel,
|
||||
showInnerDialog,
|
||||
lengthopt,
|
||||
update_col,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user