- 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:
@@ -270,6 +270,18 @@ export default defineComponent({
|
||||
dense: true,
|
||||
showall: true,
|
||||
},
|
||||
{
|
||||
editOn: true,
|
||||
label: 'Imagefile',
|
||||
table: 'productinfos',
|
||||
id: myproduct.value.productInfo._id, // ID dinamico, da sostituire con il valore reale
|
||||
rec: myproduct.value.productInfo, // Oggetto dinamico, da sostituire con il valore reale
|
||||
mykey: 'imagefile',
|
||||
debounce: '1000',
|
||||
type: costanti.FieldType.string,
|
||||
dense: true,
|
||||
showall: true,
|
||||
},
|
||||
];
|
||||
|
||||
return arrlist;
|
||||
@@ -310,17 +322,6 @@ export default defineComponent({
|
||||
type: costanti.FieldType.string,
|
||||
dense: true,
|
||||
},
|
||||
/*{
|
||||
editOn: true,
|
||||
label: "Pagine",
|
||||
table: "arrvariazioni",
|
||||
id: myproduct.value._id,
|
||||
rec: myproduct.value,
|
||||
mykey: "data_verifica",
|
||||
debounce: "0",
|
||||
type: costanti.FieldType.date,
|
||||
dense: true,
|
||||
},*/
|
||||
{
|
||||
editOn: false,
|
||||
label: 'Pubblicazione',
|
||||
@@ -478,7 +479,18 @@ export default defineComponent({
|
||||
table: 'products',
|
||||
id: myproduct.value._id,
|
||||
rec: myproduct.value,
|
||||
mykey: 'scraped',
|
||||
mykey: 'scraped_date',
|
||||
debounce: '1000',
|
||||
type: costanti.FieldType.data,
|
||||
dense: true,
|
||||
},
|
||||
{
|
||||
editOn: false,
|
||||
label: 'Err Scraped',
|
||||
table: 'products',
|
||||
id: myproduct.value._id,
|
||||
rec: myproduct.value,
|
||||
mykey: 'scraped_error',
|
||||
debounce: '1000',
|
||||
type: costanti.FieldType.boolean,
|
||||
dense: true,
|
||||
@@ -611,6 +623,8 @@ export default defineComponent({
|
||||
.then((dataupdated) => {
|
||||
if (dataupdated) {
|
||||
tools.showPositiveNotif($q, t('dbgm.scrapingOkUpdated'));
|
||||
} else {
|
||||
tools.showNeutralNotif($q, t('dbgm.scrapingNotUpdated'));
|
||||
}
|
||||
return dataupdated;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user