Filtra Ricerca...

This commit is contained in:
Surya Paolo
2023-06-05 16:36:06 +02:00
parent e805088da7
commit bd3a9557e2
13 changed files with 1604 additions and 1528 deletions

View File

@@ -20,6 +20,7 @@ import { lists } from '@store/Modules/lists'
import { IParamsQuery } from 'model'
import { CMyPopupEdit } from '../CMyPopupEdit'
import { CMyFriends } from '../CMyFriends'
import { CNotifSettings } from '../CNotifSettings'
import { CMyUser } from '../CMyUser'
import { CMyGroups } from '../CMyGroups'
import { CMyFieldDb } from '../CMyFieldDb'
@@ -293,7 +294,7 @@ export default defineComponent({
components: {
CMyPopupEdit, CTitleBanner, CMyFieldDb, CMySelect, CMyFriends, CMyGroups,
CMyUser, CMyRecCard, CMyCardPopup, CMyRecGrpCard, CMyCardGrpPopup, CMyCardCircuitPopup,
CMyRecCircuitCard, CMyCardService
CMyRecCircuitCard, CMyCardService, CNotifSettings
},
setup(props, { emit }) {
const $q = useQuasar()
@@ -312,6 +313,7 @@ export default defineComponent({
const newRecord: any = ref({})
const recSaved: any = ref({})
const recModif: any = ref({})
const showInnerDialog: any = ref(false)
const mytable = ref('')
const mytitle = ref('')
@@ -321,6 +323,7 @@ export default defineComponent({
const tablesel = ref('')
const showSpin = ref(false)
const showNotification = ref(false)
const loading = ref(false)
const editOn = computed({
@@ -387,6 +390,11 @@ export default defineComponent({
// console.log('valoriopt', item.table)
return globalStore.getTableJoinByName(item.table, addall, addnone, item.filter)
})
const lengthopt = computed(() => (item: any, addall: boolean, addnone: boolean) => {
// console.log('valoriopt', item.table)
const valori = globalStore.getTableJoinByName(item.table, addall, addnone, item.filter)
return (valori ? valori.length : 0)
})
const labelcombo = computed(() => (item: any) => {
let lab = item.label
@@ -2150,6 +2158,7 @@ export default defineComponent({
}
function onLoadScroll(index: number, done: any) {
if (index > 1) {
// console.log('onLoadScroll', index, 'RECLOAD', numRecLoaded.value, 'ROWS: ', pagination.value.rowsNumber, 'PAGE: ', pagination.value.page)
if (numRecLoaded.value < pagination.value.rowsNumber || (pagination.value.rowsNumber <= 0 && clickbuttsearch.value)) {
@@ -2228,9 +2237,9 @@ export default defineComponent({
}
}
function showNotification() {
/*function showNotification() {
$router.push('/notifs')
}
} */
created()
mounted()
@@ -2333,6 +2342,8 @@ export default defineComponent({
ordinam_desc,
getNumFilterSelected,
rowsel,
showInnerDialog,
lengthopt,
}
}
})