- Aggiunto Filtri
- Finder
This commit is contained in:
@@ -8,6 +8,8 @@ export const costanti = {
|
||||
CONFIG_ID_STATE_CONN: '2',
|
||||
CONFIG_ID_SHOW_TYPE_TODOS: '3',
|
||||
|
||||
FILTER_TUTTI: -100,
|
||||
|
||||
FuncDialog: {
|
||||
CANCEL_BOOKING: 1,
|
||||
},
|
||||
|
||||
@@ -339,9 +339,12 @@ export const colSkills = [
|
||||
]
|
||||
|
||||
export const colmySkills = [
|
||||
//AddCol({
|
||||
// name: 'userId', label_trans: 'order.users', fieldtype: costanti.FieldType.select, jointable: 'users',
|
||||
//}),
|
||||
AddCol({
|
||||
name: 'userId', label_trans: 'order.users', fieldtype: costanti.FieldType.select, jointable: 'users',
|
||||
}),
|
||||
//AddCol({ name: 'name', label_trans: 'reg.name', fieldtype: costanti.FieldType.string }),
|
||||
//AddCol({ name: 'surname', label_trans: 'reg.surname', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'username', label_trans: 'reg.username', foredit: false }),
|
||||
AddCol({
|
||||
name: 'idSkill',
|
||||
label_trans: 'skill.name',
|
||||
|
||||
@@ -62,6 +62,7 @@ export const tools = {
|
||||
IDAPP_AYNI: '7',
|
||||
IDAPP_SIP: '9',
|
||||
IDAPP_CNM: '10',
|
||||
IDAPP_FREEPLANET: '1',
|
||||
|
||||
TipoMsg: {
|
||||
SEND_LINK_CHAT_DONATORI: 1,
|
||||
|
||||
@@ -1250,12 +1250,24 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
return ''
|
||||
},
|
||||
|
||||
getTableJoinByName(table: string) {
|
||||
getTableJoinByName(table: string, addall?: boolean) {
|
||||
if (table === 'permissions') return [shared_consts.Permissions.Admin, shared_consts.Permissions.Manager, shared_consts.Permissions.Teacher, shared_consts.Permissions.Tutor, shared_consts.Permissions.Editor, shared_consts.Permissions.Zoomeri, shared_consts.Permissions.Department]
|
||||
if (table === 'accepted') return [shared_consts.Accepted.CHECK_READ_GUIDELINES, shared_consts.Accepted.CHECK_SEE_VIDEO_PRINCIPI]
|
||||
if (table === 'fieldstype') return costanti.FieldTypeArr
|
||||
if (table === 'metodo_pagamento') return tools.SelectMetodiPagamento
|
||||
return this.getListByTable(table)
|
||||
|
||||
let myarr = this.getListByTable(table)
|
||||
|
||||
// if (addall)
|
||||
// myarr = [costanti.FILTER_TUTTI, ...myarr]
|
||||
|
||||
if (!addall) {
|
||||
if (table === 'skills') {
|
||||
myarr = myarr.filter((rec: any) => rec._id > 0)
|
||||
}
|
||||
}
|
||||
|
||||
return myarr
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user