filtrage par url, le decodage de l'url est faite en js en non pas en php en amont, sinon, on a un pb avec les '

This commit is contained in:
Christophe 2022-04-13 10:24:37 +02:00
parent aebe8b1863
commit 42f5037e3c
4 changed files with 716 additions and 1558 deletions

View file

@ -26,7 +26,7 @@
ref="montableau"
filtrer="#ENV{filtrer}"
_id="#ENV{_id}"
filtreselect='[(#ENV{filtrerselect}|rawurldecode)]'
filtreselect="[(#ENV{filtrerselect})]"
></mon-tableau>
</div>
</div>
@ -54,7 +54,7 @@
filtrer="#ENV{filtrer}"
affichage_id="#ENV{_id}"
_id="#ENV{_id}"
filtreselect='[(#ENV{a}|rawurldecode)]'
filtreselect="[(#ENV{filtrerselect_deux})]"
></mon-tableau>
</div>
</div>

View file

@ -500,7 +500,7 @@ console.log('url:' + url);
Vue.nextTick(() => {
this.chargement = false;
if (this.filtreselect) {
let Tfiltres = recupJson(this.filtreselect);
let Tfiltres = recupJson(decodeURIComponent(this.filtreselect));
Tfiltres.forEach((col) => {
this.filtreColSelected[col.champ] = [
...this.filtreColSelected[col.champ],

View file

@ -20,7 +20,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
jQuery(function () {
$('#app').on('click', '.url_action', function (e) {
@ -578,7 +578,7 @@ var monTableau = {
_this4.chargement = false;
if (_this4.filtreselect) {
var Tfiltres = recupJson(_this4.filtreselect);
var Tfiltres = recupJson(decodeURIComponent(_this4.filtreselect));
Tfiltres.forEach(function (col) {
_this4.filtreColSelected[col.champ] = [].concat(_toConsumableArray(_this4.filtreColSelected[col.champ]), _toConsumableArray(col.valeurs));
});

2256
package-lock.json generated

File diff suppressed because it is too large Load diff