- lista cataloghi: stato "active" (Pubblicati OnLine)

This commit is contained in:
Surya Paolo
2025-05-07 00:13:51 +02:00
parent 57cfa5858b
commit 2cc8fcda03
21 changed files with 400 additions and 347 deletions

View File

@@ -9822,21 +9822,42 @@ export const tools = {
return Object.keys(obj).length === 0;
},
isUtente() {
const userStore = useUserStore()
return (!userStore.isEditor && !userStore.isCommerciale && !userStore.isAdmin && !userStore.isManager & !userStore.isGrafico)
},
getsearchList_Cataloghi() {
const lista = [{
visible: true,
const lista = [
{
visible: !this.isUtente(),
label: 'Editore',
table: 'lista_editori',
key: 'referenti',
type: costanti.FieldType.select,
value: this.getCookie(this.COOK_SEARCH + costanti.FILTER_SEP + shared_consts.TABLES_LISTA_EDITORI + costanti.FILTER_SEP + 'referente', costanti.FILTER_TUTTI),
value: this.isUtente() ? costanti.FILTER_TUTTI : this.getCookie(this.COOK_SEARCH + costanti.FILTER_SEP + shared_consts.TABLES_LISTA_EDITORI + costanti.FILTER_SEP + 'referente', costanti.FILTER_TUTTI),
keycookie: '',
addall: true,
arrvalue: [],
filter: null,
useinput: false,
icon: 'fas fa-user'
}]
},
{
visible: !this.isUtente(),
label: 'Pubblicati OnLine',
key: 'active',
type: costanti.FieldType.boolean,
value: this.isUtente() ? true: this.getCookie(this.COOK_SEARCH + costanti.FILTER_SEP + shared_consts.TABLES_CATALOG + costanti.FILTER_SEP + 'active', true),
keycookie: '',
addall: true,
arrvalue: [],
filter: null,
useinput: false,
icon: 'fas fa-globe'
},
]
console.log('getsearchList_Cataloghi', lista)