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:
parent
aebe8b1863
commit
42f5037e3c
4 changed files with 716 additions and 1558 deletions
|
@ -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>
|
||||
|
|
|
@ -38,7 +38,7 @@ jQuery(function () {
|
|||
});
|
||||
|
||||
// lancement d'une modalbox
|
||||
$('#app').on('click', '.modalbox', function(e) {
|
||||
$('#app').on('click', '.modalbox', function (e) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
let confirmation = $(this).data('confirm');
|
||||
|
@ -398,7 +398,7 @@ let monTableau = {
|
|||
let url = this.apiuri;
|
||||
if (parseInt(id) > 0) {
|
||||
url += '&id=' + id;
|
||||
console.log('url:' + url);
|
||||
console.log('url:' + url);
|
||||
} else {
|
||||
let config = localStorage.getItem('header_' + this.nameLocalStorage);
|
||||
config = recupJson(config);
|
||||
|
@ -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],
|
||||
|
|
|
@ -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));
|
||||
});
|
||||
|
|
2258
package-lock.json
generated
2258
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue