fix: se aggiungi XLS non si aggiornava la lista correttamente, non ricaricava...
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user