- Sistemato link pdf che ogni volta che si aggiorna prendeva il PDF dalla cache...
- Raccolta Cataloghi, procedura che li AUTO genera in automatico.
This commit is contained in:
@@ -51,6 +51,11 @@ export default defineComponent({
|
||||
type: Array,
|
||||
required: true,
|
||||
},
|
||||
lista_prod_confronto: {
|
||||
type: Array,
|
||||
required: false,
|
||||
default: [],
|
||||
},
|
||||
table: {
|
||||
type: String,
|
||||
required: true,
|
||||
@@ -872,7 +877,7 @@ export default defineComponent({
|
||||
};
|
||||
|
||||
// 3. Funzione per verificare se una colonna è visibile (isColumnVisible)
|
||||
const isColumnVisible = (column: string, real?: boolean) => {
|
||||
const isColumnVisible = (column: string, real?: boolean, element?: any) => {
|
||||
if (column === 'actions' && !real) {
|
||||
return false;
|
||||
}
|
||||
@@ -886,12 +891,14 @@ export default defineComponent({
|
||||
(!props.optcatalogo.showListaArgomenti ||
|
||||
(props.optcatalogo.showListaArgomenti && !isEditColumn(column)));
|
||||
|
||||
if (props.options?.showbuttAdd && column === 'addtolist') {
|
||||
if (props.options?.showbuttAdd && column === 'addtolist'
|
||||
&& (!element || !props.lista_prod_confronto.some((prod: any) => prod._id === element?._id))
|
||||
) {
|
||||
if (tools.isCollaboratore())
|
||||
ok = true
|
||||
}
|
||||
|
||||
if (!props.options?.showbuttAdd && column === 'addtolist') {
|
||||
if (!props.options?.showbuttAdd && column === 'addtolist' && (element && props.lista_prod_confronto.some((prod: any) => prod._id === element?._id))) {
|
||||
ok = false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user