diff --git a/js/gamutable.es6.js b/js/gamutable.es6.js index 9af5252..2adba61 100644 --- a/js/gamutable.es6.js +++ b/js/gamutable.es6.js @@ -658,10 +658,14 @@ let monTableau = { } }, resetTri() { + this.loadingVueSelect = false; this.table = orderBy(this.table, ['id'], '', this.champ_search); this.triOrders = []; this.triProps = []; this.ordreCol = []; + Object.keys(this.filtreColType).forEach((col) => { + this.filtreColSelected[col] = []; + }); }, selectLigne(id, col) { if (col === 'id' && parseInt(id)) { diff --git a/js/gamutable.js b/js/gamutable.js index e36106e..13e33bf 100644 --- a/js/gamutable.js +++ b/js/gamutable.js @@ -765,10 +765,16 @@ var monTableau = { } }, resetTri: function resetTri() { + var _this5 = this; + + this.loadingVueSelect = false; this.table = orderBy(this.table, ['id'], '', this.champ_search); this.triOrders = []; this.triProps = []; this.ordreCol = []; + Object.keys(this.filtreColType).forEach(function (col) { + _this5.filtreColSelected[col] = []; + }); }, selectLigne: function selectLigne(id, col) { if (col === 'id' && parseInt(id)) { @@ -782,7 +788,7 @@ var monTableau = { } }, exportCSV: function exportCSV() { - var _this5 = this; + var _this6 = this; var $csv = []; var $header = []; @@ -792,7 +798,7 @@ var monTableau = { }); $tableau = this.tableau.reduce(function (acc, ligne) { var $uneLigne = []; - Object.values(ligne[_this5.champcsv]).forEach(function (l) { + Object.values(ligne[_this6.champcsv]).forEach(function (l) { return $uneLigne.push(l); }); return [].concat(_toConsumableArray(acc), [[].concat($uneLigne)]);