versione 0.3.16:

- Aggiunto bottone "Scambio Ospitalità" (nuova tabella)
This commit is contained in:
Paolo Arena
2022-05-06 19:51:33 +02:00
parent 171b99c34d
commit 200ac47035
25 changed files with 322 additions and 68 deletions

View File

@@ -60,7 +60,7 @@ export const costanti = {
title: 'Scambio Ospitalità',
strsingolo: 'Scambio Ospitalità',
to: '/hosps',
icon: 'fas fa-taxi',
icon: 'fas fa-bed',
color: 'lime-6',
textcolor: '',
hint: '',

View File

@@ -988,6 +988,18 @@ export const colmyHosp = [
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView,
sortable: false,
}),
AddCol({
name: 'preferences',
label_trans: 'hosps.preferences',
fieldtype: costanti.FieldType.multiselect,
jointable: toolsext.TABPREF,
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InPage + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
noshowlabel: true,
icon: 'fas fa-asterisk',
//icon: 'fas fa-hands-helping',
isadvanced_field: false,
sortable: false,
}),
AddCol({
name: 'idCity',
@@ -1043,6 +1055,11 @@ export const colmyHosp = [
sortable: false,
}),
//**ADDFIELD_MYBACHECAS
AddCol({
name: 'link_maplocation', label_trans: 'reg.link_maplocation', isadvanced_field: true, fieldtype: costanti.FieldType.link,
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
sortable: false,
}),
AddCol({
name: 'website', label_trans: 'reg.website', isadvanced_field: true, fieldtype: costanti.FieldType.link,
showWhen: costanti.showWhen.NewRec + costanti.showWhen.InEdit + costanti.showWhen.InView_OnlyifExist,
@@ -2918,6 +2935,15 @@ export const fieldsTable = {
colicon: 'icon',
noshow: true,
},
{
value: toolsext.TABPREF,
label: 'Preferenze',
columns: colTableGeneric,
colkey: 'value',
collabel: 'label',
colicon: 'icon',
noshow: true,
},
],
}

View File

@@ -88,6 +88,7 @@ export const toolsext = {
TABTYPEHOSP: 'typehosps',
TABTYPEACCOM: 'typeaccoms',
TABLOCACCOM: 'locaccoms',
TABPREF: 'hosps_preferences',
TABPEOPLE: 'people',
SERVKEY_VERS: 'vers',

View File

@@ -1551,6 +1551,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
else if (table === toolsext.TABPEOPLE) myarr = shared_consts.People
else if (table === toolsext.TABTYPEACCOM) myarr = shared_consts.TypeAccom
else if (table === toolsext.TABLOCACCOM) myarr = shared_consts.LocationAccom
else if (table === toolsext.TABPREF) myarr = shared_consts.Preferences
else myarr = this.getListByTable(table)
if (costanti.TABLES_ARRAY.includes(table)) {