- Estrazione dei dati da Amazon

- Ciclo di Estrapolazione di tutti i prodotti ed aggiornamento dei campi scraped e scraped_updated
- Creazione file CSV con i campi modificati.
This commit is contained in:
Surya Paolo
2025-05-19 17:33:18 +02:00
parent 859ba022fa
commit 8ff204657e
13 changed files with 2200 additions and 572 deletions

View File

@@ -47,12 +47,16 @@
v-if="isColumnVisible(col.name)"
:key="col.name"
@click="isSortable(col.name) ? sortTable(col.name) : ''"
:style="{ 'background-color': sortAttribute === col.name ? 'yellow' : '' }"
:style="{
'background-color': sortAttribute === col.name ? 'yellow' : '',
}"
>
<span>{{ col.label }}</span>
<span v-if="isSortable(col.name)">
<q-icon
v-if="sortAttribute === col.name && optcatalogo.showListaArgomenti"
v-if="
sortAttribute === col.name && optcatalogo.showListaArgomenti
"
:name="sortDirection === 1 ? 'expand_less' : 'expand_more'"
size="36px"
class="q-ml-xs"
@@ -91,10 +95,14 @@
>
<!-- Icona Drag Handle -->
<td v-if="field.name === 'pos' && isColumnVisible('pos')">
{{
// put index in the first column
internalProducts.indexOf(element) + 1
}}
<div class="row justify-center">
<span class="q-ma-sm"
>{{
// put index in the first column
internalProducts.indexOf(element) + 1
}}
</span>
</div>
</td>
<td
v-else-if="field.name === 'drag' && isColumnVisible('drag')"
@@ -106,13 +114,36 @@
color="primary"
/>
</td>
<td v-else-if="field.name === 'edit' && isColumnVisible('edit')">
<span
v-if="!tools.isUtente()"
class="justify-center"
>
<q-btn
flat
rounded
outline
size="sm"
icon="edit"
@click="modifyProduct(element)"
v-close-popup
class="custom-flat-button"
/>
</span>
</td>
<!-- Immagine Piccola -->
<td v-else-if="field.name === 'image' && isColumnVisible('image')">
<td
v-else-if="field.name === 'image' && isColumnVisible('image')"
>
<q-img
:src="
getImageByElement(element)
? tools.getFullFileNameByImageFile(table, getImageByElement(element), element._id)
? tools.getFullFileNameByImageFile(
table,
getImageByElement(element),
element._id
)
: element.productInfo?.image_link
"
style="width: 50px; height: 50px"
@@ -130,7 +161,11 @@
<span v-html="getFieldValue(element, field)"></span>
</td>
<!-- Azioni -->
<td v-else-if="field.name === 'actions' && isColumnVisible('actions', true)">
<td
v-else-if="
field.name === 'actions' && isColumnVisible('actions', true)
"
>
<q-btn-dropdown
label="Azioni"
color="primary"
@@ -145,8 +180,12 @@
>
<q-item-section>
<q-item-label>
<q-icon name="edit" size="20px" class="q-mr-xs" />
Modifica
<q-icon
name="edit"
size="20px"
class="q-mr-xs"
/>
Scheda
</q-item-label>
</q-item-section>
</q-item>
@@ -157,7 +196,11 @@
>
<q-item-section>
<q-item-label>
<q-icon name="delete" size="20px" class="q-mr-xs" />
<q-icon
name="delete"
size="20px"
class="q-mr-xs"
/>
Elimina
</q-item-label>
</q-item-section>