- Aggiornate tutte le categorie ottimizzandole.
- Migrazione delle vecchie categ. con quelle nuove. - Create le Categorie e sottocategorie degli Eventi (a parte). - Aggiornato la card dell'Ospitalità
This commit is contained in:
@@ -306,7 +306,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function getFilterGoods(recGood: any, index: number, arr: any) {
|
||||
const recsectorGoods: any = searchList.value.find((rec) => rec.table === 'sectorgoods')
|
||||
const recsectorGoods: any = searchList.value.find((rec) => rec.table === toolsext.TABSECTORGOODS)
|
||||
// console.log('getFilterSkills', recSkill.idSector, recsectors.value)
|
||||
if (recsectorGoods && recGood.idSectorGood) {
|
||||
return recGood.idSectorGood.includes(recsectorGoods.value)
|
||||
@@ -314,6 +314,15 @@ export default defineComponent({
|
||||
return true
|
||||
}
|
||||
}
|
||||
function getFilterBachecas(recBacheca: any, index: number, arr: any) {
|
||||
const recsectorBachecas: any = searchList.value.find((rec) => rec.table === toolsext.TABSECTORBACHECAS)
|
||||
// console.log('getFilterSkills', recSkill.idSector, recsectors.value)
|
||||
if (recsectorBachecas && recBacheca.idSectorBacheca) {
|
||||
return recBacheca.idSectorBacheca.includes(recsectorBachecas.value)
|
||||
} else {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
function getFilterSubSkills(recSubSkill: any, index: number, arr: any) {
|
||||
const recskills: any = searchList.value.find((rec) => rec.table === 'skills')
|
||||
@@ -614,9 +623,9 @@ export default defineComponent({
|
||||
{
|
||||
visible: true,
|
||||
label: 'Settore',
|
||||
table: toolsext.TABSECTORS,
|
||||
key: 'idSector',
|
||||
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + toolsext.TABSECTORS, 0, true),
|
||||
table: toolsext.TABSECTORBACHECAS,
|
||||
key: 'idSectorBacheca',
|
||||
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + toolsext.TABSECTORBACHECAS, 0, true),
|
||||
arrvalue: [],
|
||||
type: costanti.FieldType.select,
|
||||
filter: null,
|
||||
@@ -624,6 +633,19 @@ export default defineComponent({
|
||||
notinsearch: false,
|
||||
useinput: false,
|
||||
},
|
||||
{
|
||||
visible: true,
|
||||
label: 'Categoria',
|
||||
table: 'bachecas',
|
||||
key: 'idBacheca',
|
||||
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + tools.getCookie(tools.COOK_SEARCH + toolsext.TABSECTORBACHECAS, costanti.FILTER_TUTTI), costanti.FILTER_TUTTI, true),
|
||||
arrvalue: [],
|
||||
type: costanti.FieldType.select,
|
||||
addall: true,
|
||||
filter: getFilterBachecas,
|
||||
showcount: true,
|
||||
useinput: false,
|
||||
},
|
||||
{
|
||||
visible: true,
|
||||
label: 'Data Inizio',
|
||||
@@ -898,7 +920,7 @@ export default defineComponent({
|
||||
{
|
||||
visible: true,
|
||||
label: 'Settore',
|
||||
table: 'sectorgoods',
|
||||
table: toolsext.TABSECTORGOODS,
|
||||
key: 'idSectorGood',
|
||||
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + toolsext.TABSECTORGOODS, 0, true),
|
||||
arrvalue: [],
|
||||
@@ -911,7 +933,7 @@ export default defineComponent({
|
||||
{
|
||||
visible: true,
|
||||
label: 'Categoria',
|
||||
table: 'goods',
|
||||
table: toolsext.TABGOODS,
|
||||
key: 'idGood',
|
||||
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + tools.getCookie(tools.COOK_SEARCH + toolsext.TABSECTORGOODS, costanti.FILTER_TUTTI), costanti.FILTER_TUTTI, true),
|
||||
arrvalue: [],
|
||||
|
||||
Reference in New Issue
Block a user