arg non necessaire

This commit is contained in:
Christophe 2020-05-15 13:58:03 +02:00
parent 9ef6927b91
commit 61c490f2ec
2 changed files with 2 additions and 5 deletions

View file

@ -292,7 +292,7 @@ let monTableau = {
} }
} }
}, },
exportCSV(filtrage = true) { exportCSV() {
let $csv = []; let $csv = [];
let $header = []; let $header = [];
let $tableau = []; let $tableau = [];
@ -303,7 +303,6 @@ let monTableau = {
return [...acc, [...$uneLigne]]; return [...acc, [...$uneLigne]];
}, []); }, []);
$csv = [[...$header], ...$tableau]; $csv = [[...$header], ...$tableau];
//console.log($csv);
exporterCSV($csv, this.delimitercsv, this.namecsv); exporterCSV($csv, this.delimitercsv, this.namecsv);
}, },
}, },

View file

@ -337,7 +337,6 @@ var monTableau = {
exportCSV: function exportCSV() { exportCSV: function exportCSV() {
var _this3 = this; var _this3 = this;
var filtrage = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
var $csv = []; var $csv = [];
var $header = []; var $header = [];
var $tableau = []; var $tableau = [];
@ -351,8 +350,7 @@ var monTableau = {
}); });
return [].concat(_toConsumableArray(acc), [[].concat($uneLigne)]); return [].concat(_toConsumableArray(acc), [[].concat($uneLigne)]);
}, []); }, []);
$csv = [[].concat($header)].concat(_toConsumableArray($tableau)); //console.log($csv); $csv = [[].concat($header)].concat(_toConsumableArray($tableau));
exporterCSV($csv, this.delimitercsv, this.namecsv); exporterCSV($csv, this.delimitercsv, this.namecsv);
} }
}, },