- fix: Errore se premevo "Aggiungi" e poi "Annulla" poi la tabella non si aggiornava piu.
This commit is contained in:
@@ -652,6 +652,17 @@ export default defineComponent({
|
||||
// param1: shared_consts.PARAM_SHOW_PROVINCE,
|
||||
tablesel: 'cities',
|
||||
},
|
||||
{
|
||||
label: 'Offro/Cerco',
|
||||
table: 'adtypes',
|
||||
key: 'adType',
|
||||
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'adtypes', costanti.FILTER_TUTTI, true),
|
||||
arrvalue: [],
|
||||
addall: true,
|
||||
type: costanti.FieldType.select,
|
||||
filter: null,
|
||||
useinput: false,
|
||||
},
|
||||
{
|
||||
label: 'Tipologia',
|
||||
table: toolsext.TABTYPEHOSP,
|
||||
|
||||
@@ -341,10 +341,10 @@ export default defineComponent({
|
||||
const newRecordBool = ref(false)
|
||||
const newRecordBoolOld = ref(false)
|
||||
const editRecordBool = ref(false)
|
||||
const newRecord: any = ref({})
|
||||
const recSaved: any = ref({})
|
||||
const recModif: any = ref({})
|
||||
const showInnerDialog: any = ref(false)
|
||||
const newRecord = ref(<any>{})
|
||||
const recSaved = ref(<any>{})
|
||||
const recModif = ref(<any>{})
|
||||
const showInnerDialog = ref(false)
|
||||
|
||||
const mytable = ref('')
|
||||
const mytitle = ref('')
|
||||
@@ -1231,7 +1231,11 @@ export default defineComponent({
|
||||
// fetch data from "server"
|
||||
return fetchFromServer(startRow, endRow, myfilternow, myfilterandnow, sortBy, descending).then((ris: any) => {
|
||||
|
||||
pagination.value.rowsNumber = getRowsNumberCount()
|
||||
try {
|
||||
pagination.value.rowsNumber = getRowsNumberCount()
|
||||
} catch (e) {
|
||||
console.error('Err', e)
|
||||
}
|
||||
// console.log(' ...rowsNumber', pagination.value.rowsNumber)
|
||||
|
||||
if (!returnedData.value || returnedData.value.length === 0) {
|
||||
@@ -1472,7 +1476,8 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
*/
|
||||
newRecord.value = null
|
||||
newRecordBool.value = false
|
||||
newRecord.value = {}
|
||||
}
|
||||
|
||||
function SaveValue(newVal: any, valinitial: any) {
|
||||
@@ -1576,6 +1581,7 @@ export default defineComponent({
|
||||
newRecord.value = tools.getdefaultnewrec(mytable.value, { groupname: props.groupname })
|
||||
}
|
||||
if (!newRecord.value) {
|
||||
newRecordBool.value = false
|
||||
newRecord.value = {}
|
||||
}
|
||||
newRecord.value.userId = userStore.my._id
|
||||
@@ -2153,8 +2159,9 @@ export default defineComponent({
|
||||
else
|
||||
serverData.value = [ris, ...serverData.value]
|
||||
|
||||
newRecord.value = null
|
||||
|
||||
newRecord.value = {}
|
||||
newRecordBool.value = false
|
||||
|
||||
tools.showPositiveNotif($q, t('db.recupdated'))
|
||||
// refresh()
|
||||
} else {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div v-if="tools.isDebugOn()"></div>
|
||||
newrecord: {{newRecord}}
|
||||
<div :class="$q.screen.lt.sm ? `` : `q-pa-xs`" v-if="isfinishLoading">
|
||||
<q-toggle
|
||||
v-if="tools.isManager() && !showMap"
|
||||
|
||||
Reference in New Issue
Block a user