Aggiunte opzioni per il Gestore: richiede che l'invitante confermi la Reg, Notifica sul BOT , Notifica all'Admin la Reg.
This commit is contained in:
@@ -1106,6 +1106,9 @@ export const colTableSites = [
|
||||
AddCol({ name: 'domain_provider', label_trans: 'sites.domain_provider', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'domain_expiring', label_trans: 'reg.domain_expiring', fieldtype: costanti.FieldType.onlydate }),
|
||||
AddCol({ name: 'next_payment', label_trans: 'reg.next_payment', fieldtype: costanti.FieldType.onlydate }),
|
||||
// Configuration
|
||||
// AddCol({ name: 'confsite.notif_reg', field: 'confsite', subfield: 'notif_reg', label_trans: 'reg.notif_reg', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'confsite.options', field: 'confsite', subfield: 'options', label_trans: 'reg.options', fieldtype: costanti.FieldType.binary, jointable: 'confsite_opt', }),
|
||||
AddCol(DeleteRec),
|
||||
AddCol(DuplicateRec),
|
||||
]
|
||||
@@ -2402,6 +2405,15 @@ export const fieldsTable = {
|
||||
colicon: 'icon',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: 'sites',
|
||||
label: 'Siti',
|
||||
columns: colTableSites,
|
||||
colkey: '_id',
|
||||
collabel: 'name',
|
||||
colicon: 'icon',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: 'bottype',
|
||||
label: 'Tipo di Bot',
|
||||
@@ -2411,6 +2423,15 @@ export const fieldsTable = {
|
||||
colicon: 'icon',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: 'confsite_opt',
|
||||
label: 'Configura Opzioni Sito',
|
||||
columns: colTableGeneric,
|
||||
colkey: 'value',
|
||||
collabel: 'label',
|
||||
colicon: 'icon',
|
||||
noshow: true,
|
||||
},
|
||||
{
|
||||
value: 'users',
|
||||
label: 'Utenti',
|
||||
|
||||
@@ -241,6 +241,22 @@ export const tools = {
|
||||
},
|
||||
],
|
||||
|
||||
ConfSiteOpt: [
|
||||
{
|
||||
label: 'Richiede che Invitante confermi la Reg',
|
||||
value: shared_consts.ConfSite.Need_Aportador_On_DataReg_To_Verify_Reg,
|
||||
},
|
||||
{
|
||||
label: 'Notif Reg sul BOT (all\'Invitante)',
|
||||
value: shared_consts.ConfSite.Notif_Reg_Bot,
|
||||
},
|
||||
{
|
||||
label: 'Notif Reg Push (Admin)',
|
||||
value: shared_consts.ConfSite.Notif_Reg_Push_Admin,
|
||||
},
|
||||
|
||||
],
|
||||
|
||||
SelectMetodiPagamento: [
|
||||
{
|
||||
id: 0,
|
||||
@@ -5044,6 +5060,10 @@ export const tools = {
|
||||
|
||||
const userStore = useUserStore()
|
||||
|
||||
//if (tools.isTest() && (userStore.isAdmin || userStore.isManager))
|
||||
if ((userStore.isAdmin || userStore.isManager))
|
||||
return true
|
||||
|
||||
if (tablesel === toolsext.TABMYGROUPS) {
|
||||
// is Admin ?
|
||||
if (rec.admins) {
|
||||
@@ -5065,8 +5085,6 @@ export const tools = {
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
// if (userStore.isAdmin || userStore.isManager)
|
||||
// return true
|
||||
},
|
||||
|
||||
getToByCol(col: IColGridTable, table: string, rec: any) {
|
||||
|
||||
@@ -809,6 +809,40 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
})
|
||||
},
|
||||
|
||||
async caricaTabella(table: string, extrapar: string) {
|
||||
|
||||
let myarr = []
|
||||
const sortBy = 'descr'
|
||||
const descending = 1
|
||||
const myobj: any = {}
|
||||
if (descending)
|
||||
myobj[sortBy] = -1
|
||||
else
|
||||
myobj[sortBy] = 1
|
||||
|
||||
const params: IParamsQuery = {
|
||||
table: '',
|
||||
startRow: 0,
|
||||
endRow: 10000,
|
||||
filter: '',
|
||||
filterand: '',
|
||||
filtersearch: '',
|
||||
filtersearch2: '',
|
||||
filtercustom: '',
|
||||
sortBy: myobj,
|
||||
descending,
|
||||
userId: '',
|
||||
extrapar
|
||||
}
|
||||
|
||||
params.table = table
|
||||
return this.loadTable(params).then((data) => {
|
||||
return data
|
||||
}).catch((e) => {
|
||||
return []
|
||||
})
|
||||
},
|
||||
|
||||
async loadPage(path: string) {
|
||||
const userStore = useUserStore()
|
||||
|
||||
@@ -1482,6 +1516,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
else if (table === 'accepted') myarr = [shared_consts.Accepted.CHECK_READ_GUIDELINES, shared_consts.Accepted.CHECK_SEE_VIDEO_PRINCIPI]
|
||||
else if (table === 'fieldstype') myarr = costanti.FieldTypeArr
|
||||
else if (table === 'metodo_pagamento') myarr = tools.SelectMetodiPagamento
|
||||
else if (table === 'confsite_opt') myarr = tools.ConfSiteOpt
|
||||
else if (table === 'bottype') myarr = shared_consts.BotType
|
||||
else if (table === 'visibility') myarr = shared_consts.Visibility
|
||||
else if (table === 'visibilGroup') myarr = shared_consts.VisibilGroup
|
||||
|
||||
Reference in New Issue
Block a user