- aggiornato catalogo lista con filtri per editori e grafico

This commit is contained in:
Surya Paolo
2025-02-13 21:15:04 +01:00
parent cdefb91bef
commit f0098e57b2
58 changed files with 245 additions and 116 deletions

View File

@@ -9059,15 +9059,21 @@ export const tools = {
setRecordByField(field: any, record: any, value: any) {
let mioval = ''
if (field) {
const arrfields = field.split('.')
if (arrfields && arrfields.length > 1) {
try {
record[arrfields[0]][arrfields[1]] = value
} catch (e) {
return record
}
if (typeof field === 'function') {
// Se field è una funzione, chiamala per ottenere il campo
const fieldValue = field(record)
record[fieldValue] = value
} else {
record[field] = value
const arrfields = field.split('.')
if (arrfields && arrfields.length > 1) {
try {
record[arrfields[0]][arrfields[1]] = value
} catch (e) {
return record
}
} else {
record[field] = value
}
}
}
return record
@@ -9643,6 +9649,24 @@ export const tools = {
return Object.keys(obj).length === 0;
},
getsearchList_Cataloghi() {
return [{
visible: true,
label: 'Editore',
table: 'lista_editori',
key: 'referenti',
type: costanti.FieldType.select,
value: tools.getCookie(tools.COOK_SEARCH + costanti.FILTER_SEP + shared_consts.TABLES_CATALOG + costanti.FILTER_SEP + 'referente', costanti.FILTER_TUTTI),
keycookie: '',
addall: true,
arrvalue: [],
filter: null,
useinput: false,
icon: 'fas fa-user'
}]
},
// FINE !
// getLocale() {