Update DashboardNew.js
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user