FILTRO CITTA Sopra ogni pagina !

This commit is contained in:
Surya Paolo
2022-12-01 16:55:22 +01:00
parent 9010c0ff37
commit bf1e9fc982
26 changed files with 900 additions and 74 deletions

View File

@@ -1,6 +1,6 @@
import {
computed,
defineComponent, onBeforeMount, onBeforeUnmount, onMounted, ref, toRef, toRefs, watch,
provide, defineComponent, onBeforeMount, onBeforeUnmount, onMounted, ref, toRef, toRefs, watch,
} from 'vue'
import { tools } from '@store/Modules/tools'
@@ -9,6 +9,7 @@ import { costanti } from '@costanti'
import { useGlobalStore } from '@store/globalStore'
import { useUserStore } from '@store/UserStore'
import { CTitlePage } from '@/components/CTitlePage'
import { CGridTableRec } from '@/components/CGridTableRec'
import { IColGridTable, IMyBacheca, IMySkill, ISearchList, ISkill } from 'model'
import { shared_consts } from '@/common/shared_vuejs'
@@ -27,13 +28,18 @@ export default defineComponent({
showFilterPersonal: {
type: Boolean,
required: false,
default: true,
default: false,
},
noButtAdd: {
type: Boolean,
required: false,
default: false,
},
selector: {
type: Object,
required: false,
default: null,
},
ind: {
type: Number,
required: false,
@@ -41,7 +47,7 @@ export default defineComponent({
}
},
components: {
CMyFieldDb, CGridTableRec,
CMyFieldDb, CGridTableRec, CTitlePage,
},
setup(props, { attrs, slots, emit }) {
const { t } = useI18n()
@@ -49,6 +55,10 @@ export default defineComponent({
const globalStore = useGlobalStore()
const userStore = useUserStore()
const myselector = ref({})
provide('myselector', myselector)
const arrfilterand: any = ref([])
const filtercustom: any = ref([])
const searchList_Servizi = ref(<ISearchList[]>[])
@@ -245,11 +255,13 @@ export default defineComponent({
]
} else {
/*
myoptions.value = [
{ label: '🌎 Tutti', value: tools.FILTER_ALL },
{ label: '👤 Personali', value: tools.FILTER_MYREC },
// {label: 'Seguo', value: tools.FILTER_MYFOLLOW},
]
*/
}
function getFilterSkills(recSkill: any, index: number, arr: any) {