- lista cataloghi: stato "active" (Pubblicati OnLine)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user