Members, Circuits

This commit is contained in:
Paolo Arena
2022-10-21 21:25:54 +02:00
parent 9d40649af3
commit 6c306b36f3
73 changed files with 4424 additions and 93 deletions

View File

@@ -1495,11 +1495,13 @@ export const useGlobalStore = defineStore('GlobalStore', {
}
},
getValueByTableSingle(table: string, val: any) {
getValueByTableSingle(table: string, val: any, lab?: any) {
if (table) {
const mylist = this.getTableJoinByName(table)
const key = fieldsTable.getKeyByTable(table)
const collab = fieldsTable.getLabelByTable(table)
let collab = lab
if (!lab)
collab = fieldsTable.getLabelByTable(table)
// console.table(mylist)
let risultato = ''
@@ -1622,6 +1624,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
else if (table === 'visibility') myarr = shared_consts.Visibility
else if (table === 'pub_to_share') myarr = shared_consts.Pub_to_Share
else if (table === 'visibilGroup') myarr = shared_consts.VisibilGroup
else if (table === 'statuscircuit') myarr = shared_consts.StatusCircuit
else if (table === 'lang') myarr = shared_consts.Lang
else if (table === 'regions') myarr = shared_consts.Regions
else if (table === 'shippings') myarr = shared_consts.Shippings