Filtri avanzati a scomparsa

This commit is contained in:
paoloar77
2022-02-14 11:30:53 +01:00
parent 86cf158e27
commit cac35f9243
15 changed files with 99 additions and 50 deletions

View File

@@ -426,6 +426,8 @@ export default defineComponent({
let myarr: any = []
let mystr = val.toLocaleLowerCase()
myarr = updateArrOptions()
if (!fieldsTable.tableRemotePickup.includes(props.tablesel)) {
if (myarr && myarr.length > 0) {
@@ -435,6 +437,16 @@ export default defineComponent({
valori.value = []
}
}
if (!props.multiple && !props.multiselect_by_server) {
if (val === '') {
valori.value = myarr
} else {
valori.value = myarr.filter((v: any) => v[`${props.optlab}`].toLowerCase().indexOf(mystr) > -1)
}
}
return
}
@@ -444,8 +456,6 @@ export default defineComponent({
return
}
let mystr = val.toLocaleLowerCase()
// console.log('props.tablesel', props.tablesel)
if (fieldsTable.tableRemotePickup.includes(props.tablesel)) {