- aggiornato la visualoizzazione per scaricare il PDF e per aprirlo
This commit is contained in:
@@ -186,4 +186,61 @@ body {
|
||||
font-weight: 600;
|
||||
border-color: #5c8ef4 !important;
|
||||
box-shadow: 0 0 0 2px rgba(92, 142, 244, 0.3);
|
||||
}
|
||||
|
||||
.pdf-link {
|
||||
font-family: 'Arial', sans-serif;
|
||||
font-size: 1.1rem;
|
||||
color: #1a3f8a;
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
transition: color 0.2s ease-in-out;
|
||||
|
||||
&:hover {
|
||||
color: #5c8ef4;
|
||||
}
|
||||
}
|
||||
|
||||
.intestaz-col {
|
||||
font-size: 1.10rem;
|
||||
}
|
||||
|
||||
.catalog-download-section {
|
||||
padding: 2rem;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
.catalog-card {
|
||||
border-radius: 16px;
|
||||
max-width: 400px;
|
||||
width: 100%;
|
||||
transition: transform 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
.catalog-card:hover {
|
||||
transform: translateY(-5px);
|
||||
}
|
||||
|
||||
.hover-lift {
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.hover-lift:hover {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.text-link{
|
||||
font-family: 'Arial', sans-serif;
|
||||
font-size: 1.1rem;
|
||||
color: #1a3f8a;
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
transition: color 0.2s ease-in-out;
|
||||
|
||||
&:hover {
|
||||
color: #5c8ef4;
|
||||
}
|
||||
}
|
||||
@@ -124,8 +124,13 @@ export default defineComponent({
|
||||
{ name: 'azioni', label: 'Azioni', field: 'azioni', align: 'center' },
|
||||
];
|
||||
|
||||
const pdfRows = computed(() => [
|
||||
const pdfRows = computed(() => {
|
||||
return pdfRowsall.value.filter((row) => row.visible);
|
||||
});
|
||||
|
||||
const pdfRowsall = computed(() => [
|
||||
{
|
||||
visible: true,
|
||||
name: 'PDF Generato',
|
||||
pdf: myCatalog.value.pdf_generato,
|
||||
data: myCatalog.value.data_generato,
|
||||
@@ -135,15 +140,17 @@ export default defineComponent({
|
||||
action: () => pubblicaPDF(false),
|
||||
},
|
||||
{
|
||||
visible: true,
|
||||
name: 'PDF Generato (Compresso)',
|
||||
pdf: myCatalog.value.pdf_generato_compressed,
|
||||
data: myCatalog.value.data_generato,
|
||||
showButton: true,
|
||||
buttonLabel: 'Pubblica PDF OnLine (Compr)',
|
||||
buttonLabel: 'Pubblica PDF Compresso',
|
||||
size: myCatalog.value.pdf_generato_compr_size,
|
||||
action: () => pubblicaPDF(true),
|
||||
},
|
||||
{
|
||||
visible: tools.isCollStampa(),
|
||||
name: 'PDF Generato Stampa',
|
||||
pdf: myCatalog.value.pdf_generato_stampa,
|
||||
data: myCatalog.value.data_generato_stampa,
|
||||
@@ -153,11 +160,12 @@ export default defineComponent({
|
||||
action: () => pubblicaPDFStampa(false),
|
||||
},
|
||||
{
|
||||
visible: tools.isCollStampa(),
|
||||
name: 'PDF Generato Stampa (Compresso)',
|
||||
pdf: myCatalog.value.pdf_generato_stampa_compressed,
|
||||
data: myCatalog.value.data_generato_stampa,
|
||||
showButton: true,
|
||||
buttonLabel: 'Pubblica PDF Stampa (Compr)',
|
||||
buttonLabel: 'Pubblica PDF Stampa (Compresso)',
|
||||
size: myCatalog.value.pdf_generato_stampa_compr_size,
|
||||
action: () => pubblicaPDFStampa(true),
|
||||
},
|
||||
@@ -326,7 +334,8 @@ export default defineComponent({
|
||||
() => tabcatalogo.value,
|
||||
() => {
|
||||
if (!onlyCatalogoPDF.value) {
|
||||
tools.setCookie('TAB_CAT', tabcatalogo.value);
|
||||
if (tabcatalogo.value === 'lista' || tabcatalogo.value === 'visu')
|
||||
tools.setCookie('TAB_CAT', tabcatalogo.value);
|
||||
}
|
||||
}
|
||||
);
|
||||
@@ -2534,7 +2543,6 @@ export default defineComponent({
|
||||
idCatalog: myCatalog.value._id,
|
||||
stampa: instampa,
|
||||
comprimi: true,
|
||||
compressione: 'printer',
|
||||
path: 'upload/cataloghi/',
|
||||
// idtag_pdfcontent: 'tag-catalogo',
|
||||
compressione: 'printer',
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user