Update DashboardNew.js

This commit is contained in:
Luca Haid
2025-02-12 17:03:08 +00:00
parent 5a5fc9d3d9
commit bb5a993c27
+2 -2
View File
@@ -211,7 +211,7 @@ Vue.component('dashboard-default', {
const csv = [ const csv = [
['Datum', 'Bestellungen', 'Leerrohr', 'ONT installiert'], ['Datum', 'Bestellungen', 'Leerrohr', 'ONT installiert'],
...data.map(item => [item.date, item.bestellungen, item.leerrohr, item.ont_installiert]) ...data.map(item => [item.date, item.bestellungen, item.leerrohr, item.ont_installiert])
].map(row => row.join(',')).join('\n'); ].map(row => row.join(';')).join('\n');
const blob = new Blob([csv], {type: 'text/csv'}); const blob = new Blob([csv], {type: 'text/csv'});
const url = URL.createObjectURL(blob); const url = URL.createObjectURL(blob);
@@ -413,7 +413,7 @@ Vue.component('dashboard-rml', {
const csv = [ const csv = [
['Datum', 'Bestellungen', 'Leerrohr', 'ONT installiert'], ['Datum', 'Bestellungen', 'Leerrohr', 'ONT installiert'],
...data.map(item => [item.date, item.bestellungen, item.leerrohr, item.ont_installiert]) ...data.map(item => [item.date, item.bestellungen, item.leerrohr, item.ont_installiert])
].map(row => row.join(',')).join('\n'); ].map(row => row.join(';')).join('\n');
const blob = new Blob([csv], {type: 'text/csv'}); const blob = new Blob([csv], {type: 'text/csv'});
const url = URL.createObjectURL(blob); const url = URL.createObjectURL(blob);