From 93f302049e004672bc1ba289c540cff94168eef5 Mon Sep 17 00:00:00 2001 From: tofulm Date: Tue, 26 Apr 2022 15:07:24 +0200 Subject: [PATCH] =?UTF-8?q?am=C3=A9lioration=20du=20reset=20des=20filtres,?= =?UTF-8?q?=20pour=20faire=20le=20reset=20aussi=20des=20select/input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/gamutable.es6.js | 4 ++++ js/gamutable.js | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) 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)]);