- Aggiunta della funzione Cron
- Flag: Pubblicati OnLine + Solo CagalogoGenerale + Dettagli
This commit is contained in:
@@ -147,6 +147,7 @@ export const colTableCatalogList = [
|
||||
fieldtype: costanti.FieldType.select,
|
||||
jointable: 'mypages_id',
|
||||
}),
|
||||
AddCol({ name: 'isCatalogoGenerale', label_trans: 'cataloglist.isCatalogoGenerale', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({
|
||||
name: 'argomenti',
|
||||
label_trans: 'cataloglist.argomenti',
|
||||
@@ -370,6 +371,21 @@ export const colmyelCatalogo = [
|
||||
|
||||
]
|
||||
|
||||
export const colcrons = [
|
||||
AddCol({ name: 'active', label_trans: 'cron.active', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'descr', label_trans: 'cron.descr', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'status', label_trans: 'cron.status', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'nomeFunzioneDbOp', label_trans: 'cron.nomeFunzioneDbOp', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'startTime', label_trans: 'cron.startTime', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'everyXMinutes', label_trans: 'cron.everyXMinutes', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'quanteVolteEseguito', label_trans: 'cron.eseguito', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'quanteVolteEseguiAlGG', label_trans: 'cron.quanteVolteEseguiAlGG', fieldtype: costanti.FieldType.number }),
|
||||
AddCol({ name: 'lastJobStarted', label_trans: 'cron.lastJobStarted', fieldtype: costanti.FieldType.date }),
|
||||
AddCol({ name: 'lastJobEnd', label_trans: 'cron.lastJobEnd', fieldtype: costanti.FieldType.date }),
|
||||
AddCol({ name: 'log', label_trans: 'cron.log', fieldtype: costanti.FieldType.string }),
|
||||
// AddCol({ name: 'date_created', label_trans: 'cron.date_created', fieldtype: costanti.FieldType.date }),
|
||||
]
|
||||
|
||||
export const colmyelems = [
|
||||
AddCol({ name: 'active', label_trans: 'myelems.active', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'path', label_trans: 'myelems.path' }),
|
||||
@@ -4603,6 +4619,13 @@ export const fieldsTable = {
|
||||
colkey: '_id',
|
||||
collabel: 'title',
|
||||
},
|
||||
{
|
||||
value: 'crons',
|
||||
label: 'Lista Cron',
|
||||
columns: colcrons,
|
||||
colkey: '_id',
|
||||
collabel: 'title',
|
||||
},
|
||||
{
|
||||
value: 'catalogo',
|
||||
label: 'Elementi Catalogo',
|
||||
|
||||
@@ -9828,7 +9828,7 @@ export const tools = {
|
||||
return (!userStore.isEditor && !userStore.isCommerciale && !userStore.isAdmin && !userStore.isManager & !userStore.isGrafico)
|
||||
},
|
||||
|
||||
getsearchList_Cataloghi() {
|
||||
getsearchList_Cataloghi(isCatalogoGenerale: boolean) {
|
||||
const lista = [
|
||||
{
|
||||
visible: !this.isUtente(),
|
||||
@@ -9857,6 +9857,34 @@ export const tools = {
|
||||
useinput: false,
|
||||
icon: 'fas fa-globe'
|
||||
},
|
||||
{
|
||||
visible: !this.isUtente(),
|
||||
label: 'Solo Catalogo Generale',
|
||||
key: 'isCatalogoGenerale',
|
||||
type: costanti.FieldType.boolean,
|
||||
value: this.isUtente() ? isCatalogoGenerale: this.getCookie(this.COOK_SEARCH + costanti.FILTER_SEP + shared_consts.TABLES_CATALOG + costanti.FILTER_SEP + 'isCatalogoGenerale', isCatalogoGenerale),
|
||||
keycookie: '',
|
||||
addall: true,
|
||||
arrvalue: [],
|
||||
filter: null,
|
||||
useinput: false,
|
||||
icon: 'fas fa-bookmark'
|
||||
},
|
||||
{
|
||||
visible: !this.isUtente(),
|
||||
label: 'Dettagli',
|
||||
table: shared_consts.TABLES_CATALOG,
|
||||
key: 'dettagli',
|
||||
notinsearch: true, // non usarlo nella ricerca filtro
|
||||
type: costanti.FieldType.boolean,
|
||||
value: this.isUtente() ? false: this.getCookie(this.COOK_SEARCH + costanti.FILTER_SEP + shared_consts.TABLES_CATALOG + costanti.FILTER_SEP + 'dettagli', true),
|
||||
keycookie: '',
|
||||
addall: true,
|
||||
arrvalue: [],
|
||||
filter: null,
|
||||
useinput: false,
|
||||
icon: 'fas fa-info-circle'
|
||||
},
|
||||
]
|
||||
|
||||
console.log('getsearchList_Cataloghi', lista)
|
||||
|
||||
@@ -88,6 +88,7 @@ export const toolsext = {
|
||||
TABGROUPS: 'groups',
|
||||
TABMYPAGE: 'mypages',
|
||||
TABMYELEMS: 'myelems',
|
||||
TABCRONS: 'crons',
|
||||
TABMYBOT: 'bots',
|
||||
TABCALZOOM: 'calzoom',
|
||||
TABTEMPLEMAIL: 'templemail',
|
||||
|
||||
Reference in New Issue
Block a user