diff --git a/js/gamutable.es6.js b/js/gamutable.es6.js index c240e54..bba2862 100644 --- a/js/gamutable.es6.js +++ b/js/gamutable.es6.js @@ -217,8 +217,6 @@ let monTableau = { }, computed: { tableau: function () { - console.log('modif ', this.filtreColModif); - console.log(this.filtreColSelected); this.setPages(); //if (!this.search) { if (!this.search && !this.filtreColModif) { @@ -237,10 +235,12 @@ let monTableau = { return false; } Object.keys(this.filtreColSelected).forEach((colName) => { - let colValue = this.filtreColSelected[colName]; - if (colValue) { - if (ligne.html[colName] !== colValue) { - rsearch = false; + if (rsearch) { + let colValue = this.filtreColSelected[colName]; + if (colValue) { + if (ligne.html[colName] !== colValue) { + rsearch = false; + } } } }); @@ -275,11 +275,8 @@ let monTableau = { }, }, methods: { - selectValCol(val) { + selectValCol() { this.filtreColModif++; - //} else { - //this.filtreColModif = false; - //} }, calculer_nameLocalStorage() { if (this.apiuri) { @@ -519,7 +516,7 @@ let monTableau = { diff --git a/js/gamutable.js b/js/gamutable.js index ef5ee4c..85e01bc 100644 --- a/js/gamutable.js +++ b/js/gamutable.js @@ -271,8 +271,6 @@ var monTableau = { tableau: function tableau() { var _this2 = this; - console.log('modif ', this.filtreColModif); - console.log(this.filtreColSelected); this.setPages(); //if (!this.search) { if (!this.search && !this.filtreColModif) { @@ -287,11 +285,13 @@ var monTableau = { } Object.keys(_this2.filtreColSelected).forEach(function (colName) { - var colValue = _this2.filtreColSelected[colName]; + if (rsearch) { + var colValue = _this2.filtreColSelected[colName]; - if (colValue) { - if (ligne.html[colName] !== colValue) { - rsearch = false; + if (colValue) { + if (ligne.html[colName] !== colValue) { + rsearch = false; + } } } }); @@ -321,10 +321,8 @@ var monTableau = { } }, methods: { - selectValCol: function selectValCol(val) { - this.filtreColModif++; //} else { - //this.filtreColModif = false; - //} + selectValCol: function selectValCol() { + this.filtreColModif++; }, calculer_nameLocalStorage: function calculer_nameLocalStorage() { if (this.apiuri) { @@ -533,7 +531,7 @@ var monTableau = { this.quelleVue = vue; } }, - template: "\n\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t | \n\t\t\t\t
---|
\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t | \n\t\t\t\t
\n\t\t\t\t\t | \n\t\t\t\t
\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t | \n\t\t\t\t
---|
\n\t\t\t\t\t\t \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t | \n\t\t\t\t
\n\t\t\t\t\t | \n\t\t\t\t