fix: se aggiungi XLS non si aggiornava la lista correttamente, non ricaricava...

This commit is contained in:
Surya Paolo
2025-11-18 13:08:47 +01:00
parent 4eb8838dbc
commit fc569192e7
14 changed files with 137 additions and 73 deletions

View File

@@ -38,7 +38,7 @@ import * as XLSX from 'xlsx';
export default defineComponent({
name: 'CProductTable',
emits: ['update:lista_prodotti', 'update:optcatalogo', 'rigenera', 'addtolist'],
emits: ['update:lista_prodotti', 'update:optcatalogo', 'rigenera', 'addtolist', 'addarraytolist'],
components: {
draggable,
CSearchProduct,
@@ -1434,9 +1434,7 @@ export default defineComponent({
function addArrayTitlesToList(myarr: IProduct[]) {
console.log('addArrayTitlesToList');
for (const elem of myarr) {
addtolist(elem);
}
emit('addarraytolist', myarr);
showDialogImport.value = false; // chiudi dialog
}