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,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -550,6 +550,7 @@
|
||||
@save="SaveValue"
|
||||
@show="selItem(row, col)"
|
||||
@showandsave="showandsel"
|
||||
|
||||
>
|
||||
</CMyPopupEdit>
|
||||
</div>
|
||||
@@ -1194,6 +1195,7 @@
|
||||
@show="selItem(rowclicksel, mycol)"
|
||||
@showandsave="showandsel"
|
||||
@annulla="annulla"
|
||||
@update_col="update_col"
|
||||
>
|
||||
</CMyPopupEdit>
|
||||
</div>
|
||||
@@ -1214,6 +1216,7 @@
|
||||
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
||||
</q-bar>
|
||||
<q-card-section class="inset-shadow">
|
||||
newRecord: {{newRecord}}
|
||||
<div
|
||||
:class="$q.screen.lt.sm ? `` : `row` + ` text-blue `"
|
||||
v-for="col in mycolumns"
|
||||
@@ -1252,6 +1255,7 @@
|
||||
@save="SaveValue"
|
||||
@show="selItem(newRecord, col)"
|
||||
@showandsave="showandsel"
|
||||
@update_col="update_col"
|
||||
>
|
||||
</CMyPopupEdit>
|
||||
</div>
|
||||
@@ -1390,6 +1394,7 @@
|
||||
@save="SaveValue"
|
||||
@show="selItem(recModif, col, true)"
|
||||
@showandsave="showandsel"
|
||||
@update_col="update_col"
|
||||
>
|
||||
</CMyPopupEdit>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user