Circuit table...
This commit is contained in:
@@ -49,6 +49,7 @@ export default defineComponent({
|
||||
const searchList_Servizi = ref(<ISearchList[]>[])
|
||||
const searchList_Beni = ref(<ISearchList[]>[])
|
||||
const searchList_MyGroups = ref(<ISearchList[]>[])
|
||||
const searchList_MyCircuits = ref(<ISearchList[]>[])
|
||||
const searchList_Events = ref(<ISearchList[]>[])
|
||||
const searchList_Hosp = ref(<ISearchList[]>[])
|
||||
|
||||
@@ -89,6 +90,12 @@ export default defineComponent({
|
||||
$elemMatch: { username: { $eq: userStore.my.username } }
|
||||
},
|
||||
}]
|
||||
} else if (props.table === toolsext.TABCIRCUITS) {
|
||||
filtercustom.value = [{
|
||||
'admins': {
|
||||
$elemMatch: { username: { $eq: userStore.my.username } }
|
||||
},
|
||||
}]
|
||||
|
||||
} else {
|
||||
filtercustom.value = [{ userId: userStore.my._id }]
|
||||
@@ -118,6 +125,8 @@ export default defineComponent({
|
||||
return searchList_Servizi.value
|
||||
else if (props.table === toolsext.TABMYGROUPS)
|
||||
return searchList_MyGroups.value
|
||||
else if (props.table === toolsext.TABCIRCUITS)
|
||||
return searchList_MyCircuits.value
|
||||
else if (props.table === toolsext.TABMYBACHECAS)
|
||||
return searchList_Events.value
|
||||
else if (props.table === toolsext.TABMYHOSPS)
|
||||
@@ -133,6 +142,8 @@ export default defineComponent({
|
||||
return costanti.SHOW_MYCARD
|
||||
else if (props.table === toolsext.TABMYGROUPS)
|
||||
return costanti.SHOW_MYCARD
|
||||
else if (props.table === toolsext.TABCIRCUITS)
|
||||
return costanti.SHOW_MYCARD
|
||||
|
||||
return costanti.SHOW_MYCARD
|
||||
})
|
||||
@@ -144,6 +155,8 @@ export default defineComponent({
|
||||
return 'nome del Servizio o settore da cercare'
|
||||
else if (props.table === toolsext.TABMYGROUPS)
|
||||
return 'nome del Gruppo da cercare'
|
||||
else if (props.table === toolsext.TABCIRCUITS)
|
||||
return 'nome del Circuito da cercare'
|
||||
else if (props.table === toolsext.TABMYBACHECAS)
|
||||
return 'nome dell\'Evento da cercare'
|
||||
else if (props.table === toolsext.TABMYHOSPS)
|
||||
@@ -172,6 +185,8 @@ export default defineComponent({
|
||||
return 'Nessun Servizio trovato con i filtri selezionati'
|
||||
else if (props.table === toolsext.TABMYGROUPS)
|
||||
return 'Nessun Gruppo trovato con i filtri selezionati'
|
||||
else if (props.table === toolsext.TABCIRCUITS)
|
||||
return 'Nessun Circuito trovato con i filtri selezionati'
|
||||
else if (props.table === toolsext.TABMYBACHECAS)
|
||||
return 'Nessun Evento trovato con i filtri selezionati'
|
||||
else if (props.table === toolsext.TABMYHOSPS)
|
||||
@@ -817,6 +832,21 @@ export default defineComponent({
|
||||
|
||||
]
|
||||
|
||||
searchList_MyCircuits.value = [
|
||||
{
|
||||
label: 'Regione',
|
||||
table: 'regions',
|
||||
key: 'idReg',
|
||||
type: costanti.FieldType.select,
|
||||
value: tools.getCookie(tools.COOK_SEARCH + 'regions', costanti.FILTER_TUTTI),
|
||||
addall: true,
|
||||
arrvalue: [],
|
||||
filter: null,
|
||||
useinput: false,
|
||||
icon: 'fas fa-globe-europe'
|
||||
},
|
||||
]
|
||||
|
||||
searchList_MyGroups.value = [
|
||||
{
|
||||
label: 'Regione',
|
||||
@@ -1247,6 +1277,8 @@ export default defineComponent({
|
||||
return tools.getdefaultnewrec_MyGoods()
|
||||
} else if (props.table === toolsext.TABMYGROUPS) {
|
||||
return tools.getdefaultnewrec_MyGroup()
|
||||
} else if (props.table === toolsext.TABCIRCUITS) {
|
||||
return tools.getdefaultnewrec_Circuit()
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user