- Aggiunto le Statistiche di visualizzazione delle pagine.
- Aggiunto il componente per visualizzare le statistiche
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
export const shared_consts = {
|
||||
Accepted: {
|
||||
CHECK_READ_GUIDELINES: {
|
||||
@@ -173,6 +172,7 @@ export const shared_consts = {
|
||||
CATALOGLIST: 420,
|
||||
SEARCHPRODUCT: 430,
|
||||
RACCOLTE_CATALOGHI: 450,
|
||||
STAT_PAGES: 460,
|
||||
},
|
||||
|
||||
QUERYTYPE_MYGROUP: 1,
|
||||
@@ -291,12 +291,7 @@ export const shared_consts = {
|
||||
|
||||
PARAM_SHOW_PROVINCE: 1,
|
||||
|
||||
TABLES_ID_STRING: [
|
||||
'circuits',
|
||||
'accounts',
|
||||
'movements',
|
||||
'mygroups',
|
||||
],
|
||||
TABLES_ID_STRING: ['circuits', 'accounts', 'movements', 'mygroups'],
|
||||
|
||||
TABLES_ID_NUMBER: [
|
||||
'permissions',
|
||||
@@ -359,7 +354,6 @@ export const shared_consts = {
|
||||
label: 'Con Provincia inserita',
|
||||
value: 16777216, //FILTER_USER_PROVINCE:
|
||||
},
|
||||
|
||||
],
|
||||
|
||||
RECFILTRI_UTENTE_FACIL: [
|
||||
@@ -368,7 +362,7 @@ export const shared_consts = {
|
||||
value: 4294967296, //FILTER_FACILITATORE: ,:
|
||||
},
|
||||
{
|
||||
label: 'Non ancora approvati dall\'invitante',
|
||||
label: "Non ancora approvati dall'invitante",
|
||||
value: 2097152, // shared_consts.FILTER_USER_NO_VERIFIED_APORTADOR
|
||||
},
|
||||
{
|
||||
@@ -397,22 +391,19 @@ export const shared_consts = {
|
||||
},
|
||||
],
|
||||
|
||||
MYTABS: [{ id: 0, table: 'none' },
|
||||
{ id: 1, table: 'myskills' },
|
||||
{ id: 2, table: 'mybachecas' },
|
||||
{ id: 3, table: 'myhosps' },
|
||||
{ id: 4, table: 'mygoods' },
|
||||
{ id: 5, table: 'myevents' },
|
||||
{ id: 6, table: 'attivitas' }],
|
||||
MYTABS: [
|
||||
{ id: 0, table: 'none' },
|
||||
{ id: 1, table: 'myskills' },
|
||||
{ id: 2, table: 'mybachecas' },
|
||||
{ id: 3, table: 'myhosps' },
|
||||
{ id: 4, table: 'mygoods' },
|
||||
{ id: 5, table: 'myevents' },
|
||||
{ id: 6, table: 'attivitas' },
|
||||
],
|
||||
|
||||
// Condivise
|
||||
TABLES_FAVORITE_BOOKMARK: ['myskills', 'mygoods', 'mybachecas', 'myhosps', 'attivitas'],
|
||||
TABLEFORUSERS: [
|
||||
'myskills',
|
||||
'mygoods',
|
||||
'mybachecas',
|
||||
'myhosps',
|
||||
],
|
||||
TABLEFORUSERS: ['myskills', 'mygoods', 'mybachecas', 'myhosps'],
|
||||
|
||||
// Solo per VUE.JS
|
||||
|
||||
@@ -423,14 +414,30 @@ export const shared_consts = {
|
||||
COL_WITH_ARRFILTER_IN_AND: ['preferences'],
|
||||
TABLES_WITH_DATE: ['mybachecas', 'myhosps'], // 'mybachecas'
|
||||
TABLES_WITH_SORTING: ['mybachecas', 'myhosps'],
|
||||
TABLES_REC_ID: ['skills', 'goods', 'subskills', 'myskills', 'mybachecas', 'myhosps', 'mygoods'],
|
||||
TABLES_REC_ID: [
|
||||
'skills',
|
||||
'goods',
|
||||
'subskills',
|
||||
'myskills',
|
||||
'mybachecas',
|
||||
'myhosps',
|
||||
'mygoods',
|
||||
],
|
||||
|
||||
// costanti.VISUTABLE_SCHEDA_USER, VISUTABLE_SCHEDA_GROUP, VISUTABLE_USER_TABGROUP, VISUTABLE_USER_TABCIRCUIT, VISUTABLE_GROUP_CIRCUIT, VISUTABLE_
|
||||
VERTIC_SHOW_GRID: [-1, 2, -3, -4, -5, -6, -10],
|
||||
|
||||
TABLES_UPDATE_LASTIFIED: ['myskills', 'mybachecas', 'myhosps', 'mygoods', 'bots'],
|
||||
TABLES_FINDER: ['myskills', 'mybachecas', 'myhosps', 'mygoods', 'mygroups'],
|
||||
TABLES_VISU_CMYSRECCARD: ['myskills', 'mybachecas', 'myhosps', 'mygoods', 'mygroups', 'catalogs', 'raccoltacataloghis'],
|
||||
TABLES_VISU_CMYSRECCARD: [
|
||||
'myskills',
|
||||
'mybachecas',
|
||||
'myhosps',
|
||||
'mygoods',
|
||||
'mygroups',
|
||||
'catalogs',
|
||||
'raccoltacataloghis',
|
||||
],
|
||||
TABLES_SHOW_ADTYPE: ['myskills', 'mygoods', 'myhosps'],
|
||||
|
||||
TABLES_VISU_LISTA_USER: ['myskills', 'mybachecas', 'myhosps', 'mygoods', 'users'],
|
||||
@@ -575,7 +582,7 @@ export const shared_consts = {
|
||||
{
|
||||
value: 2,
|
||||
label: 'Ospitalità',
|
||||
}
|
||||
},
|
||||
],
|
||||
|
||||
TipoDiAttivita: [
|
||||
@@ -672,7 +679,7 @@ export const shared_consts = {
|
||||
},
|
||||
{
|
||||
value: 7,
|
||||
label: 'Casetta sull\'Albero',
|
||||
label: "Casetta sull'Albero",
|
||||
},
|
||||
{
|
||||
value: 8,
|
||||
@@ -688,7 +695,6 @@ export const shared_consts = {
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
People: [
|
||||
{
|
||||
value: 0,
|
||||
@@ -763,7 +769,7 @@ export const shared_consts = {
|
||||
},
|
||||
{
|
||||
value: 4,
|
||||
label: 'E\' consentito fumare in casa',
|
||||
label: "E' consentito fumare in casa",
|
||||
},
|
||||
{
|
||||
value: 5,
|
||||
@@ -807,7 +813,7 @@ export const shared_consts = {
|
||||
},
|
||||
{
|
||||
value: 15,
|
||||
label: 'Doccia all\'aperto',
|
||||
label: "Doccia all'aperto",
|
||||
},
|
||||
{
|
||||
value: 16,
|
||||
@@ -930,7 +936,7 @@ export const shared_consts = {
|
||||
},
|
||||
{
|
||||
value: 'VDA',
|
||||
label: 'Valle d\'Aosta',
|
||||
label: "Valle d'Aosta",
|
||||
},
|
||||
{
|
||||
value: 'VEN',
|
||||
@@ -983,19 +989,23 @@ export const shared_consts = {
|
||||
Cat_Interesse_Arcadei: [
|
||||
{
|
||||
value: 1,
|
||||
label: 'Agricoltura sostenibile e naturale, autonomia alimentare locale (orto, g.a.s.)',
|
||||
label:
|
||||
'Agricoltura sostenibile e naturale, autonomia alimentare locale (orto, g.a.s.)',
|
||||
},
|
||||
{
|
||||
value: 2,
|
||||
label: 'Creazione ed Integrazione ecologica di nuove strutture Abitative, rimboschimento, conservazione del territorio.',
|
||||
label:
|
||||
'Creazione ed Integrazione ecologica di nuove strutture Abitative, rimboschimento, conservazione del territorio.',
|
||||
},
|
||||
{
|
||||
value: 4,
|
||||
label: 'Economia circolare e creazione di sistemi di unità di conto scambio beni e servizi, sistemi di baratto, dono e solidarietà.',
|
||||
label:
|
||||
'Economia circolare e creazione di sistemi di unità di conto scambio beni e servizi, sistemi di baratto, dono e solidarietà.',
|
||||
},
|
||||
{
|
||||
value: 8,
|
||||
label: 'Ricerca, sviluppo e implementazione di tecnologie di approvigionamento energetico.',
|
||||
label:
|
||||
'Ricerca, sviluppo e implementazione di tecnologie di approvigionamento energetico.',
|
||||
},
|
||||
{
|
||||
value: 16,
|
||||
@@ -1007,11 +1017,13 @@ export const shared_consts = {
|
||||
},
|
||||
{
|
||||
value: 64,
|
||||
label: 'Formazione, informazione, divulgazione, Educazione e trasmissione generazionale della conoscenza.',
|
||||
label:
|
||||
'Formazione, informazione, divulgazione, Educazione e trasmissione generazionale della conoscenza.',
|
||||
},
|
||||
{
|
||||
value: 128,
|
||||
label: 'Convivialità, Arte e Cultura. Tutela, conservazione e promozione delle tradizioni e culture locali.',
|
||||
label:
|
||||
'Convivialità, Arte e Cultura. Tutela, conservazione e promozione delle tradizioni e culture locali.',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -1026,17 +1038,16 @@ export const shared_consts = {
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
VisibilGroup: [
|
||||
{
|
||||
value: 1,
|
||||
label: 'Privato',
|
||||
hint: 'Solo i membri possono vedere chi fa parte del gruppo'
|
||||
hint: 'Solo i membri possono vedere chi fa parte del gruppo',
|
||||
},
|
||||
{
|
||||
value: 2,
|
||||
label: 'Nascosto',
|
||||
hint: 'il Gruppo non sarà visibile nella ricerca'
|
||||
hint: 'il Gruppo non sarà visibile nella ricerca',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -1044,7 +1055,7 @@ export const shared_consts = {
|
||||
{
|
||||
value: 0,
|
||||
label: '',
|
||||
hint: ''
|
||||
hint: '',
|
||||
},
|
||||
{
|
||||
value: 1,
|
||||
@@ -1162,12 +1173,12 @@ export const shared_consts = {
|
||||
{
|
||||
id: 1,
|
||||
label: 'Messaggio su Template',
|
||||
value: 1, //MSG_OF_TEMPLATE
|
||||
value: 1, //MSG_OF_TEMPLATE
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
label: 'Messaggio di Testo',
|
||||
value: 2, // MSG_TEXT
|
||||
value: 2, // MSG_TEXT
|
||||
},
|
||||
],
|
||||
|
||||
@@ -1230,31 +1241,27 @@ export const shared_consts = {
|
||||
{
|
||||
id: 5,
|
||||
label: 'a un Utente',
|
||||
value: 25, //TypeMsg.SEND_TO_USER
|
||||
value: 25, //TypeMsg.SEND_TO_USER
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
label: 'a un Gruppo',
|
||||
value: 30, //SEND_TO_GROUP: 30,
|
||||
|
||||
value: 30, //SEND_TO_GROUP: 30,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
label: 'a me stesso',
|
||||
value: 40, //SEND_TO_MYSELF: 40,
|
||||
|
||||
value: 40, //SEND_TO_MYSELF: 40,
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
label: 'Abilitati Telegram (senza Username telegram)',
|
||||
value: 50, //SEND_TO_TELEG_NO_USERNAME_TELEG: 50,
|
||||
|
||||
value: 50, //SEND_TO_TELEG_NO_USERNAME_TELEG: 50,
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
label: 'Abilitati Telegram (Non Verificati dall\'Invitante)',
|
||||
value: 60, //SEND_TO_TELEG_NO_VERIF_BY_APORTADOR: 60,
|
||||
|
||||
label: "Abilitati Telegram (Non Verificati dall'Invitante)",
|
||||
value: 60, //SEND_TO_TELEG_NO_VERIF_BY_APORTADOR: 60,
|
||||
},
|
||||
],
|
||||
|
||||
@@ -1270,8 +1277,8 @@ export const shared_consts = {
|
||||
CHECKOUT_SENT: 2,
|
||||
ORDER_CONFIRMED: 3,
|
||||
PAYED: 4,
|
||||
DELIVERED: 5, // Consegnato
|
||||
SHIPPED: 6, //Spedito
|
||||
DELIVERED: 5, // Consegnato
|
||||
SHIPPED: 6, //Spedito
|
||||
RECEIVED: 7,
|
||||
COMPLETED: 6,
|
||||
CANCELED: 10,
|
||||
@@ -1280,25 +1287,54 @@ export const shared_consts = {
|
||||
},
|
||||
|
||||
OrderPages: {
|
||||
LISTA_TOTALI: { label: 'Lista Totali', value: 1, icon: 'fas fa-chart-bar', color: 'text-green' },
|
||||
LISTA_TOTALI: {
|
||||
label: 'Lista Totali',
|
||||
value: 1,
|
||||
icon: 'fas fa-chart-bar',
|
||||
color: 'text-green',
|
||||
},
|
||||
ORDINI: { label: 'Ordini', value: 2, icon: 'fas fa-tasks', color: 'text-blue' },
|
||||
},
|
||||
|
||||
OrderStat: {
|
||||
// IN_CART: { label: 'In Carrello', value: 1 }, //IN_CART
|
||||
IN_CORSO: { label: 'In Corso', value: 2, icon: 'fas fa-tasks', color: 'text-black' }, //CHECKOUT_SENT
|
||||
PREPARED: { label: 'Preparati', value: 15, icon: 'fas fa-archive', color: 'text-orange' },
|
||||
CONFERMATI: { label: 'Confermati', value: 3, icon: 'fas fa-calendar', color: 'text-blue' }, //ORDER_CONFIRMED
|
||||
PAGATI: { label: 'Pagati', value: 4, icon: 'money', color: 'text-green' }, //PAYED
|
||||
DELIVERED: { label: 'Consegnato', value: 5, icon: 'fas fa-calendar', color: 'text-blue' }, //DELIVERED
|
||||
SHIPPED: { label: 'Spediti', value: 6, icon: 'fas fa-shipping-fast', color: 'text-green' }, //SHIPPED
|
||||
PREPARED: {
|
||||
label: 'Preparati',
|
||||
value: 15,
|
||||
icon: 'fas fa-archive',
|
||||
color: 'text-orange',
|
||||
},
|
||||
CONFERMATI: {
|
||||
label: 'Confermati',
|
||||
value: 3,
|
||||
icon: 'fas fa-calendar',
|
||||
color: 'text-blue',
|
||||
}, //ORDER_CONFIRMED
|
||||
PAGATI: { label: 'Pagati', value: 4, icon: 'money', color: 'text-green' }, //PAYED
|
||||
DELIVERED: {
|
||||
label: 'Consegnato',
|
||||
value: 5,
|
||||
icon: 'fas fa-calendar',
|
||||
color: 'text-blue',
|
||||
}, //DELIVERED
|
||||
SHIPPED: {
|
||||
label: 'Spediti',
|
||||
value: 6,
|
||||
icon: 'fas fa-shipping-fast',
|
||||
color: 'text-green',
|
||||
}, //SHIPPED
|
||||
RECEIVED: { label: 'Ricevuti', value: 7, icon: '', color: 'text-blue' }, //RECEIVED
|
||||
COMPLETATI: { label: 'Completati', value: 8, icon: 'fas fa-check', color: 'text-blue' }, //COMPLETED
|
||||
COMPLETATI: {
|
||||
label: 'Completati',
|
||||
value: 8,
|
||||
icon: 'fas fa-check',
|
||||
color: 'text-blue',
|
||||
}, //COMPLETED
|
||||
CANCELLATI: { label: 'Cancellati', value: 10, icon: 'delete', color: 'text-red' }, //CANCELED
|
||||
},
|
||||
|
||||
REACTIONS_FIELD:
|
||||
{
|
||||
REACTIONS_FIELD: {
|
||||
numseen: 1,
|
||||
numbook: 1,
|
||||
numfav: 1,
|
||||
@@ -1355,42 +1391,41 @@ export const shared_consts = {
|
||||
label: 'Elimina Definitivamente !!',
|
||||
value: 20,
|
||||
},
|
||||
|
||||
],
|
||||
|
||||
OrderCmdStr: [
|
||||
{
|
||||
label: 'Imposta Ordine in Lavorazione', //CHECKOUT_SENT
|
||||
label: 'Imposta Ordine in Lavorazione', //CHECKOUT_SENT
|
||||
value: 2,
|
||||
icon: 'fas fa-list-ol',
|
||||
color: 'secondary',
|
||||
},
|
||||
{
|
||||
label: '📩 Conferma Ordine Evaso (e aggiorna le quantità in Magsazzino)', //ORDER_CONFIRMED
|
||||
label: '📩 Conferma Ordine Evaso (e aggiorna le quantità in Magsazzino)', //ORDER_CONFIRMED
|
||||
value: 3,
|
||||
icon: 'fas fa-calendar-check',
|
||||
color: 'primary',
|
||||
},
|
||||
{
|
||||
label: '📩 Imposta come Consegnato', //DELIVERED
|
||||
label: '📩 Imposta come Consegnato', //DELIVERED
|
||||
value: 5,
|
||||
icon: 'fas fa-shipping-fast',
|
||||
color: 'blue',
|
||||
},
|
||||
{
|
||||
label: 'Imposta come Preparato', //PREPARED
|
||||
label: 'Imposta come Preparato', //PREPARED
|
||||
value: 15,
|
||||
icon: 'fas fa-archive',
|
||||
color: 'blue',
|
||||
},
|
||||
{
|
||||
label: 'Imposta come Pagato', //PAYED
|
||||
label: 'Imposta come Pagato', //PAYED
|
||||
value: 4,
|
||||
icon: 'money',
|
||||
color: 'positive',
|
||||
},
|
||||
{
|
||||
label: 'Imposta come Spedito', //DELIVERED
|
||||
label: 'Imposta come Spedito', //DELIVERED
|
||||
value: 5,
|
||||
icon: 'fas fa-shipping-fast',
|
||||
color: 'blue',
|
||||
@@ -1593,7 +1628,7 @@ export const shared_consts = {
|
||||
{
|
||||
value: 1, // ID_FAVORITE_ADDED
|
||||
labeltrans: 'notifsid.favorite_new',
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -1609,7 +1644,7 @@ export const shared_consts = {
|
||||
{
|
||||
value: 4, // ID_EVENTS_ATTEND
|
||||
labeltrans: 'notifsid.attend_new',
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -1621,7 +1656,7 @@ export const shared_consts = {
|
||||
{
|
||||
value: 1, // ID_FRIENDS_NEW_REC
|
||||
labeltrans: 'notifsid.friends_new',
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -1633,7 +1668,7 @@ export const shared_consts = {
|
||||
{
|
||||
value: 1, // ID_GROUP_NEW_REC
|
||||
labeltrans: 'notifsid.groups_new',
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -1645,7 +1680,7 @@ export const shared_consts = {
|
||||
{
|
||||
value: 1, // ID_CIRCUIT_NEW_REC
|
||||
labeltrans: 'notifsid.circuits_new',
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -1656,8 +1691,6 @@ export const shared_consts = {
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
|
||||
UsersNotif_Adv_List: [
|
||||
/*{
|
||||
value: 1, // NEW_ADV_CITY
|
||||
@@ -1743,27 +1776,27 @@ export const shared_consts = {
|
||||
FontsInstalled: [
|
||||
{
|
||||
label: 'Arial',
|
||||
value: 'font-Arial'
|
||||
value: 'font-Arial',
|
||||
},
|
||||
{
|
||||
label: 'Baskervville',
|
||||
value: 'font-Baskervville'
|
||||
value: 'font-Baskervville',
|
||||
},
|
||||
{
|
||||
label: 'Montserrat',
|
||||
value: 'font-Montserrat'
|
||||
value: 'font-Montserrat',
|
||||
},
|
||||
{
|
||||
label: 'Verdana',
|
||||
value: 'font-Verdana'
|
||||
value: 'font-Verdana',
|
||||
},
|
||||
{
|
||||
label: 'Lato',
|
||||
value: 'font-Lato'
|
||||
value: 'font-Lato',
|
||||
},
|
||||
{
|
||||
label: 'Source Sans Pro',
|
||||
value: 'font-SourceSansPro'
|
||||
value: 'font-SourceSansPro',
|
||||
},
|
||||
{
|
||||
value: 80,
|
||||
@@ -1832,6 +1865,10 @@ export const shared_consts = {
|
||||
value: 450,
|
||||
label: 'Raccolte Cataloghi',
|
||||
},
|
||||
{
|
||||
value: 460,
|
||||
label: 'Statistiche Pagine',
|
||||
},
|
||||
{
|
||||
value: 430, // SEARCHPRODUCT
|
||||
label: 'Cerca Prodotto',
|
||||
@@ -1959,7 +1996,6 @@ export const shared_consts = {
|
||||
value: 390,
|
||||
label: 'EDIT ADDRESS BY COORD',
|
||||
},
|
||||
|
||||
],
|
||||
|
||||
TypesElem: [
|
||||
@@ -2001,7 +2037,7 @@ export const shared_consts = {
|
||||
},
|
||||
{
|
||||
value: 110,
|
||||
label: 'Galleria d\'Immagini',
|
||||
label: "Galleria d'Immagini",
|
||||
},
|
||||
{
|
||||
value: 6,
|
||||
@@ -2012,55 +2048,55 @@ export const shared_consts = {
|
||||
LISTBESTCOLORS: [
|
||||
{
|
||||
label: 'blue',
|
||||
value: 'blue'
|
||||
value: 'blue',
|
||||
},
|
||||
{
|
||||
label: 'green',
|
||||
value: 'green'
|
||||
value: 'green',
|
||||
},
|
||||
{
|
||||
label: 'purple',
|
||||
value: 'purple'
|
||||
value: 'purple',
|
||||
},
|
||||
{
|
||||
label: 'deep-purple',
|
||||
value: 'deep-purple'
|
||||
value: 'deep-purple',
|
||||
},
|
||||
{
|
||||
label: 'indigo',
|
||||
value: 'indigo'
|
||||
value: 'indigo',
|
||||
},
|
||||
{
|
||||
label: 'light-blue',
|
||||
value: 'light-blue'
|
||||
value: 'light-blue',
|
||||
},
|
||||
{
|
||||
label: 'cyan',
|
||||
value: 'cyan'
|
||||
value: 'cyan',
|
||||
},
|
||||
{
|
||||
label: 'teal',
|
||||
value: 'teal'
|
||||
value: 'teal',
|
||||
},
|
||||
{
|
||||
label: 'lime',
|
||||
value: 'lime'
|
||||
value: 'lime',
|
||||
},
|
||||
{
|
||||
label: 'orange',
|
||||
value: 'orange'
|
||||
value: 'orange',
|
||||
},
|
||||
{
|
||||
label: 'deeporange',
|
||||
value: 'deeporange'
|
||||
value: 'deeporange',
|
||||
},
|
||||
{
|
||||
label: 'yellow',
|
||||
value: 'yellow'
|
||||
value: 'yellow',
|
||||
},
|
||||
{
|
||||
label: 'white',
|
||||
value: 'white'
|
||||
value: 'white',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -2089,43 +2125,59 @@ export const shared_consts = {
|
||||
MAX_QTA_NON_IMPOSTATA: -1,
|
||||
|
||||
getStatusStr(status: number) {
|
||||
const trovatorec = this.OrderStatusStr.find((rec) => rec.value === status)
|
||||
return (trovatorec) ? trovatorec.label : ''
|
||||
const trovatorec = this.OrderStatusStr.find((rec) => rec.value === status);
|
||||
return trovatorec ? trovatorec.label : '';
|
||||
},
|
||||
|
||||
getDirectoryImgByTable(table: string, username: string) {
|
||||
let ris = ''
|
||||
let ris = '';
|
||||
if (this.TABLEFORUSERS.includes(table)) {
|
||||
ris = 'profile/' + username + '/' + table + '/';
|
||||
}
|
||||
|
||||
return ris;
|
||||
|
||||
},
|
||||
|
||||
getLabelByValueAndArr(value: number, array: any) {
|
||||
const trovatorec = array.find((rec: any) => rec.value === value)
|
||||
return (trovatorec) ? trovatorec.label : ''
|
||||
const trovatorec = array.find((rec: any) => rec.value === value);
|
||||
return trovatorec ? trovatorec.label : '';
|
||||
},
|
||||
|
||||
fieldsUserToChange() {
|
||||
return ['_id', 'username', 'group', 'email', 'name', 'surname', 'perm', 'date_reg', 'verified_email', 'notask_verif', 'verified_by_aportador', 'trust_modified', 'img', 'ipaddr', 'lasttimeonline', 'profile', 'news_on']
|
||||
return [
|
||||
'_id',
|
||||
'username',
|
||||
'group',
|
||||
'email',
|
||||
'name',
|
||||
'surname',
|
||||
'perm',
|
||||
'date_reg',
|
||||
'verified_email',
|
||||
'notask_verif',
|
||||
'verified_by_aportador',
|
||||
'trust_modified',
|
||||
'img',
|
||||
'ipaddr',
|
||||
'lasttimeonline',
|
||||
'profile',
|
||||
'news_on',
|
||||
];
|
||||
},
|
||||
|
||||
getProjectByTable(table: string, proj_add?: any) {
|
||||
let proj = {}
|
||||
let proj = {};
|
||||
if (table === this.TABLES_MYGOODS) {
|
||||
proj = {
|
||||
'recGood': 1,
|
||||
'sectorGood': 1,
|
||||
'idSectorGood': 1,
|
||||
'idGood': 1,
|
||||
'idShipping': 1,
|
||||
'idStatusGood': 1,
|
||||
recGood: 1,
|
||||
sectorGood: 1,
|
||||
idSectorGood: 1,
|
||||
idGood: 1,
|
||||
idShipping: 1,
|
||||
idStatusGood: 1,
|
||||
groupname: 1,
|
||||
//**ADDFIELD_MYGOOD
|
||||
}
|
||||
|
||||
};
|
||||
} else if (table === this.TABLES_MYGROUPS) {
|
||||
proj = {
|
||||
groupname: 1,
|
||||
@@ -2146,7 +2198,7 @@ export const shared_consts = {
|
||||
mycities: 1,
|
||||
sector: 1,
|
||||
recCatGrp: 1,
|
||||
}
|
||||
};
|
||||
} else if (table === this.TABLES_CIRCUITS) {
|
||||
proj = {
|
||||
_id: 1,
|
||||
@@ -2193,9 +2245,9 @@ export const shared_consts = {
|
||||
admins: 1,
|
||||
req_users: 1,
|
||||
refused_users: 1,
|
||||
'mycities': 1,
|
||||
mycities: 1,
|
||||
//**ADDFIELD_CIRCUITS
|
||||
}
|
||||
};
|
||||
} else if (table === this.TABLES_MYSKILLS) {
|
||||
proj = {
|
||||
recSkill: 1,
|
||||
@@ -2212,8 +2264,7 @@ export const shared_consts = {
|
||||
website: 1,
|
||||
groupname: 1,
|
||||
//**ADDFIELD_MYSKILL
|
||||
}
|
||||
|
||||
};
|
||||
} else if (table === this.TABLES_MYHOSPS) {
|
||||
proj = {
|
||||
visibile: 1,
|
||||
@@ -2229,8 +2280,7 @@ export const shared_consts = {
|
||||
website: 1,
|
||||
link_maplocation: 1,
|
||||
groupname: 1,
|
||||
}
|
||||
|
||||
};
|
||||
} else if (table === this.TABLES_ATTIVITAS) {
|
||||
proj = {
|
||||
recSkill: 1,
|
||||
@@ -2254,7 +2304,6 @@ export const shared_consts = {
|
||||
createdBy: 1,
|
||||
//**ADDFIELD_ATTIVITA
|
||||
};
|
||||
|
||||
} else if (table === this.TABLES_MYBACHECAS) {
|
||||
proj = {
|
||||
recSkill: 1,
|
||||
@@ -2278,25 +2327,23 @@ export const shared_consts = {
|
||||
link_maplocation: 1,
|
||||
groupname: 1,
|
||||
//**ADDFIELD_MYBACHECAS
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
const proj_common = {
|
||||
'mygrp.groupname': 1,
|
||||
'mygrp.title': 1,
|
||||
'mygrp.photos': 1,
|
||||
}
|
||||
};
|
||||
|
||||
proj = Object.assign({}, proj, proj_common);
|
||||
|
||||
if (proj_add)
|
||||
proj = Object.assign({}, proj, proj_add);
|
||||
if (proj_add) proj = Object.assign({}, proj, proj_add);
|
||||
|
||||
return proj;
|
||||
},
|
||||
|
||||
getProjectForAll(proj_add: any, table?: string) {
|
||||
|
||||
let proj = {
|
||||
idContribType: 1,
|
||||
idCity: 1,
|
||||
@@ -2341,8 +2388,7 @@ export const shared_consts = {
|
||||
perm: 1,
|
||||
};
|
||||
|
||||
if (proj_add)
|
||||
proj = Object.assign({}, proj, proj_add);
|
||||
if (proj_add) proj = Object.assign({}, proj, proj_add);
|
||||
|
||||
proj = { ...proj, ...this.REACTIONS_FIELD };
|
||||
proj = { ...proj, ...this.ANNUNCI_FIELDS };
|
||||
@@ -2356,28 +2402,26 @@ export const shared_consts = {
|
||||
},
|
||||
|
||||
getDirectoryByTable(table: string, barre?: boolean) {
|
||||
|
||||
let add = '';
|
||||
if (barre)
|
||||
add = '/';
|
||||
if (barre) add = '/';
|
||||
|
||||
if (table === 'myskills') {
|
||||
return add + 'myservice' + add
|
||||
return add + 'myservice' + add;
|
||||
} else if (table === 'mybachecas') {
|
||||
return add + 'mypage' + add
|
||||
return add + 'mypage' + add;
|
||||
} else if (table === 'myhosps') {
|
||||
return add + 'myhosps' + add
|
||||
return add + 'myhosps' + add;
|
||||
} else if (table === 'mygoods') {
|
||||
return add + 'mygood' + add
|
||||
return add + 'mygood' + add;
|
||||
} else if (table === 'mygroups') {
|
||||
return add + 'grp' + add
|
||||
return add + 'grp' + add;
|
||||
} else if (table === 'circuits') {
|
||||
return add + 'circuit' + add
|
||||
return add + 'circuit' + add;
|
||||
} else if (table === 'catalogs') {
|
||||
return add + 'catalogs' + add
|
||||
return add + 'catalogs' + add;
|
||||
}
|
||||
|
||||
return ''
|
||||
return '';
|
||||
},
|
||||
|
||||
STATUSSKILL_DI_PERSONA: 1,
|
||||
@@ -2437,7 +2481,6 @@ export const shared_consts = {
|
||||
{ label: 'Discendente', value: -1 },
|
||||
],
|
||||
|
||||
|
||||
VERSIONI_PRODOTTO: [
|
||||
{
|
||||
label: '[Nessuno]',
|
||||
@@ -2484,7 +2527,6 @@ export const shared_consts = {
|
||||
value: 108,
|
||||
color: 'red',
|
||||
},
|
||||
|
||||
],
|
||||
|
||||
AccountType: {
|
||||
@@ -2518,10 +2560,10 @@ export const shared_consts = {
|
||||
},
|
||||
|
||||
DESTNEWSLETTER_ARRAY: [
|
||||
{value: 0, label: 'LISTA_NEWSLETTER'},
|
||||
{value: 1, label: 'UTENTI'},
|
||||
{value: 2, label: 'DIARIO'},
|
||||
{value: 10, label: 'TEST'},
|
||||
{ value: 0, label: 'LISTA_NEWSLETTER' },
|
||||
{ value: 1, label: 'UTENTI' },
|
||||
{ value: 2, label: 'DIARIO' },
|
||||
{ value: 10, label: 'TEST' },
|
||||
],
|
||||
|
||||
WHERE_INSERT: {
|
||||
@@ -2538,6 +2580,5 @@ export const shared_consts = {
|
||||
SCONTI_APPLICA: {
|
||||
NESSUNO: 0,
|
||||
A_TUTTI: 1,
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user