- nella lista circuiti ora si vedono tutti gli annunci del circuito stesso

This commit is contained in:
Surya Paolo
2025-01-15 15:39:58 +01:00
parent e2dbe08139
commit 7160eee734
20 changed files with 323 additions and 53 deletions

View File

@@ -51,6 +51,11 @@ export default defineComponent({
required: false,
default: '',
},
filtrocircuito: {
type: String,
required: false,
default: '',
},
selector: {
type: Object,
required: false,
@@ -343,11 +348,12 @@ export default defineComponent({
searchList_Servizi.value = [
{
visible: true,
label: 'Regione',
table: 'regions',
key: 'idReg',
type: costanti.FieldType.select,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'regions', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? costanti.FILTER_TUTTI : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'regions', costanti.FILTER_TUTTI),
addall: true,
arrvalue: [],
filter: null,
@@ -355,11 +361,12 @@ export default defineComponent({
icon: 'fas fa-globe-europe'
},
{
visible: true,
label: 'Provincia',
table: 'provinces',
key: 'idProvince',
type: costanti.FieldType.select,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'provinces', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? costanti.FILTER_TUTTI : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'provinces', costanti.FILTER_TUTTI),
addall: true,
arrvalue: [],
filter: getFilterProvinceByRegion,
@@ -368,11 +375,12 @@ export default defineComponent({
tablesel: 'provinces',
},
{
visible: props.filtrocircuito ? false : true,
label: 'Circuito',
table: 'circuits',
key: 'profile.mycircuits.circuitname',
type: costanti.FieldType.select,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'circuits', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? props.filtrocircuito : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'circuits', costanti.FILTER_TUTTI),
addall: true,
arrvalue: [],
filter: null,
@@ -380,11 +388,12 @@ export default defineComponent({
icon: 'fas fa-globe-europe'
},
{
visible: true,
label: 'Comune',
table: 'cities',
key: 'idCity',
type: costanti.FieldType.select_by_server,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'cities', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? costanti.FILTER_TUTTI : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'cities', costanti.FILTER_TUTTI),
addall: true,
arrvalue: [],
useinput: true,
@@ -406,6 +415,7 @@ export default defineComponent({
filter: null,
},*/
{
visible: true,
label: 'Settore',
table: toolsext.TABSECTORS,
key: 'idSector',
@@ -430,6 +440,7 @@ export default defineComponent({
useinput: false,
},*/
{
visible: true,
label: 'Offro/Cerco',
table: 'adtypes',
key: 'adType',
@@ -475,6 +486,7 @@ export default defineComponent({
*/
{
visible: true,
label: 'Disponibile',
table: 'statusSkills',
key: 'idStatusSkill',
@@ -487,6 +499,7 @@ export default defineComponent({
filteradv: true,
},
{
visible: true,
label: 'In cambio di',
table: 'contribtypes',
key: 'idContribType',
@@ -500,6 +513,7 @@ export default defineComponent({
//icon: 'swap_horizontal_circle',
},
{
visible: true,
label: '',
table: '',
key: '',
@@ -530,11 +544,12 @@ export default defineComponent({
filteradv: false,
},*/
{
visible: true,
label: 'Regione',
table: 'regions',
key: 'idReg',
type: costanti.FieldType.select,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'regions', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? costanti.FILTER_TUTTI : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'regions', costanti.FILTER_TUTTI),
addall: true,
arrvalue: [],
filter: null,
@@ -542,11 +557,12 @@ export default defineComponent({
icon: 'fas fa-globe-europe'
},
{
visible: true,
label: 'Provincia',
table: 'provinces',
key: 'idProvince',
type: costanti.FieldType.select,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'provinces', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? costanti.FILTER_TUTTI : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'provinces', costanti.FILTER_TUTTI),
addall: true,
arrvalue: [],
filter: getFilterProvinceByRegion,
@@ -554,11 +570,12 @@ export default defineComponent({
icon: 'flag',
},
{
visible: props.filtrocircuito ? false : true,
label: 'Circuito',
table: 'circuits',
key: 'profile.mycircuits.circuitname',
type: costanti.FieldType.select,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'circuits', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? props.filtrocircuito : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'circuits', costanti.FILTER_TUTTI),
addall: true,
arrvalue: [],
filter: null,
@@ -566,11 +583,12 @@ export default defineComponent({
icon: 'fas fa-globe-europe'
},
{
visible: true,
label: 'Comune',
table: 'cities',
key: 'idCity',
type: costanti.FieldType.select_by_server,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'cities', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? costanti.FILTER_TUTTI : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'cities', costanti.FILTER_TUTTI),
addall: true,
arrvalue: [],
useinput: true,
@@ -593,6 +611,7 @@ export default defineComponent({
tablesel: 'pub_to_share',
},*/
{
visible: true,
label: 'Settore',
table: toolsext.TABSECTORS,
key: 'idSector',
@@ -605,6 +624,7 @@ export default defineComponent({
useinput: false,
},
{
visible: true,
label: 'Data Inizio',
table: 'caldate',
key: 'dateTimeStart',
@@ -629,6 +649,7 @@ export default defineComponent({
useinput: false,
},*/
{
visible: true,
label: 'In cambio di',
table: 'contribtypes',
key: 'idContribType',
@@ -642,6 +663,7 @@ export default defineComponent({
//icon: 'swap_horizontal_circle',
},
{
visible: true,
label: '',
table: '',
key: '',
@@ -660,11 +682,12 @@ export default defineComponent({
searchList_Hosp.value = [
{
visible: true,
label: 'Regione',
table: 'regions',
key: 'idReg',
type: costanti.FieldType.select,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'regions', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? costanti.FILTER_TUTTI : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'regions', costanti.FILTER_TUTTI),
keycookie: '_hosp',
addall: true,
arrvalue: [],
@@ -673,11 +696,12 @@ export default defineComponent({
icon: 'fas fa-globe-europe'
},
{
visible: true,
label: 'Provincia',
table: 'provinces',
key: 'idProvince',
type: costanti.FieldType.select,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'provinces', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? costanti.FILTER_TUTTI : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'provinces', costanti.FILTER_TUTTI),
keycookie: '_hosp',
addall: true,
arrvalue: [],
@@ -686,11 +710,12 @@ export default defineComponent({
icon: 'flag',
},
{
visible: props.filtrocircuito ? false : true,
label: 'Circuito',
table: 'circuits',
key: 'profile.mycircuits.circuitname',
type: costanti.FieldType.select,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'circuits', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? props.filtrocircuito : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'circuits', costanti.FILTER_TUTTI),
addall: true,
arrvalue: [],
filter: null,
@@ -702,7 +727,7 @@ export default defineComponent({
table: 'cities',
key: 'idCity',
type: costanti.FieldType.select_by_server,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'cities', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? costanti.FILTER_TUTTI : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'cities', costanti.FILTER_TUTTI),
keycookie: '_hosp',
addall: true,
arrvalue: [],
@@ -712,6 +737,7 @@ export default defineComponent({
// param1: shared_consts.PARAM_SHOW_PROVINCE,
tablesel: 'cities',
filteradv: true,
visible: true,
},
{
label: 'Offro/Cerco',
@@ -724,6 +750,7 @@ export default defineComponent({
filter: null,
useinput: false,
filteradv: true,
visible: true,
},
{
label: 'Tipologia',
@@ -737,6 +764,7 @@ export default defineComponent({
useinput: false,
icon: 'flag',
filteradv: true,
visible: true,
},
{
label: 'N° max Ospiti',
@@ -750,6 +778,7 @@ export default defineComponent({
useinput: false,
icon: 'fas fa-users',
filteradv: true,
visible: true,
},
{
label: 'Preferenze',
@@ -763,6 +792,7 @@ export default defineComponent({
useinput: false,
icon: 'fas fa-asterisk',
filteradv: true,
visible: true,
},
{
label: 'In cambio di',
@@ -775,6 +805,7 @@ export default defineComponent({
useinput: false,
icon: 'fas fa-hand-holding',
filteradv: true,
visible: true,
//icon: 'swap_horizontal_circle',
},
{
@@ -790,29 +821,32 @@ export default defineComponent({
useinput: false,
notinsearch: true,
icon: '',
visible: true,
},
]
searchList_Beni.value = [
{
visible: true,
label: 'Regione',
table: 'regions',
key: 'idReg',
type: costanti.FieldType.select,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'regions', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? costanti.FILTER_TUTTI : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'regions', costanti.FILTER_TUTTI),
addall: true,
arrvalue: [],
filter: null,
useinput: false,
icon: 'fas fa-globe-europe'
icon: 'fas fa-globe-europe',
},
{
visible: true,
label: 'Provincia',
table: 'provinces',
key: 'idProvince',
type: costanti.FieldType.select,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'provinces', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? costanti.FILTER_TUTTI : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'provinces', costanti.FILTER_TUTTI),
addall: true,
arrvalue: [],
filter: getFilterProvinceByRegion,
@@ -820,23 +854,25 @@ export default defineComponent({
icon: 'flag',
},
{
visible: props.filtrocircuito ? false : true,
label: 'Circuito',
table: 'circuits',
key: 'profile.mycircuits.circuitname',
type: costanti.FieldType.select,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'circuits', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? props.filtrocircuito : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'circuits', costanti.FILTER_TUTTI),
addall: true,
arrvalue: [],
filter: null,
useinput: false,
icon: 'fas fa-globe-europe'
icon: 'fas fa-globe-europe',
},
{
visible: true,
label: 'Comune',
table: 'cities',
key: 'idCity',
type: costanti.FieldType.select_by_server,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'cities', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? costanti.FILTER_TUTTI : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'cities', costanti.FILTER_TUTTI),
addall: true,
arrvalue: [],
useinput: true,
@@ -859,6 +895,7 @@ export default defineComponent({
tablesel: 'pub_to_share',
},*/
{
visible: true,
label: 'Settore',
table: 'sectorgoods',
key: 'idSectorGood',
@@ -871,6 +908,7 @@ export default defineComponent({
useinput: false,
},
{
visible: true,
label: 'Categoria',
table: 'goods',
key: 'idGood',
@@ -883,6 +921,7 @@ export default defineComponent({
useinput: false,
},
{
visible: true,
label: 'Offro/Cerco',
table: 'adtypes',
key: 'adType',
@@ -940,6 +979,7 @@ export default defineComponent({
*/
{
visible: true,
label: 'In cambio di',
table: 'contribtypes',
key: 'idContribType',
@@ -953,6 +993,7 @@ export default defineComponent({
//icon: 'swap_horizontal_circle',
},
{
visible: true,
label: 'Altri Filtri',
table: 'otherfilters',
key: 'otherfilters',
@@ -966,6 +1007,7 @@ export default defineComponent({
filteradv: true,
},
{
visible: true,
label: '',
table: '',
key: '',
@@ -984,6 +1026,7 @@ export default defineComponent({
searchList_MyCircuits.value = [
{
visible: true,
label: 'Regione',
table: 'regions',
key: 'idReg',
@@ -996,6 +1039,7 @@ export default defineComponent({
icon: 'fas fa-globe-europe'
},
{
visible: true,
label: 'Provincia',
table: 'provinces',
key: 'idProvince',
@@ -1008,6 +1052,7 @@ export default defineComponent({
icon: 'flag',
},
{
visible: true,
label: 'Comune',
table: 'cities',
key: 'idCity',
@@ -1025,6 +1070,7 @@ export default defineComponent({
searchList_Attivita.value = [
{
visible: true,
label: 'Regione',
table: 'regions',
key: 'idReg',
@@ -1037,6 +1083,7 @@ export default defineComponent({
icon: 'fas fa-globe-europe'
},
{
visible: true,
label: 'Provincia',
table: 'provinces',
key: 'idProvince',
@@ -1049,6 +1096,7 @@ export default defineComponent({
icon: 'flag',
},
{
visible: true,
label: 'Comune',
table: 'cities',
key: 'idCity',
@@ -1063,6 +1111,7 @@ export default defineComponent({
tablesel: 'cities',
},
{
visible: true,
label: '',
table: '',
key: '',
@@ -1080,6 +1129,7 @@ export default defineComponent({
searchList_MyGroups.value = [
{
visible: true,
label: 'Regione',
table: 'regions',
key: 'idReg',
@@ -1092,6 +1142,7 @@ export default defineComponent({
icon: 'fas fa-globe-europe'
},
{
visible: true,
label: 'Provincia',
table: 'provinces',
key: 'idProvince',
@@ -1104,6 +1155,7 @@ export default defineComponent({
icon: 'flag',
},
{
visible: true,
label: 'Comune',
table: 'cities',
key: 'idCity',
@@ -1120,11 +1172,12 @@ export default defineComponent({
filteradv: true,
},
{
visible: props.filtrocircuito ? false : true,
label: 'Circuito',
table: 'circuits',
key: 'profile.mycircuits.circuitname',
type: costanti.FieldType.select,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'circuits', costanti.FILTER_TUTTI),
value: props.filtrocircuito ? props.filtrocircuito : tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + props.table + costanti.FILTER_SEP + 'circuits', costanti.FILTER_TUTTI),
addall: true,
arrvalue: [],
filter: null,
@@ -1132,6 +1185,7 @@ export default defineComponent({
icon: 'fas fa-globe-europe'
},
{
visible: true,
label: 'Categorie',
table: 'catgrps',
key: 'idCatGrp',
@@ -1144,6 +1198,7 @@ export default defineComponent({
icon: 'engineering',
},
{
visible: true,
label: 'Visiblità',
table: 'visibilGroup',
key: 'visibility',
@@ -1156,6 +1211,7 @@ export default defineComponent({
tablesel: 'visibility',
},
{
visible: true,
label: '',
table: '',
key: '',