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"
|
ref="montableau"
|
||||||
filtrer="#ENV{filtrer}"
|
filtrer="#ENV{filtrer}"
|
||||||
_id="#ENV{_id}"
|
_id="#ENV{_id}"
|
||||||
filtreselect='[(#ENV{filtrerselect}|rawurldecode)]'
|
filtreselect="[(#ENV{filtrerselect})]"
|
||||||
></mon-tableau>
|
></mon-tableau>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
filtrer="#ENV{filtrer}"
|
filtrer="#ENV{filtrer}"
|
||||||
affichage_id="#ENV{_id}"
|
affichage_id="#ENV{_id}"
|
||||||
_id="#ENV{_id}"
|
_id="#ENV{_id}"
|
||||||
filtreselect='[(#ENV{a}|rawurldecode)]'
|
filtreselect="[(#ENV{filtrerselect_deux})]"
|
||||||
></mon-tableau>
|
></mon-tableau>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -500,7 +500,7 @@ console.log('url:' + url);
|
||||||
Vue.nextTick(() => {
|
Vue.nextTick(() => {
|
||||||
this.chargement = false;
|
this.chargement = false;
|
||||||
if (this.filtreselect) {
|
if (this.filtreselect) {
|
||||||
let Tfiltres = recupJson(this.filtreselect);
|
let Tfiltres = recupJson(decodeURIComponent(this.filtreselect));
|
||||||
Tfiltres.forEach((col) => {
|
Tfiltres.forEach((col) => {
|
||||||
this.filtreColSelected[col.champ] = [
|
this.filtreColSelected[col.champ] = [
|
||||||
...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 _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 () {
|
jQuery(function () {
|
||||||
$('#app').on('click', '.url_action', function (e) {
|
$('#app').on('click', '.url_action', function (e) {
|
||||||
|
@ -578,7 +578,7 @@ var monTableau = {
|
||||||
_this4.chargement = false;
|
_this4.chargement = false;
|
||||||
|
|
||||||
if (_this4.filtreselect) {
|
if (_this4.filtreselect) {
|
||||||
var Tfiltres = recupJson(_this4.filtreselect);
|
var Tfiltres = recupJson(decodeURIComponent(_this4.filtreselect));
|
||||||
Tfiltres.forEach(function (col) {
|
Tfiltres.forEach(function (col) {
|
||||||
_this4.filtreColSelected[col.champ] = [].concat(_toConsumableArray(_this4.filtreColSelected[col.champ]), _toConsumableArray(col.valeurs));
|
_this4.filtreColSelected[col.champ] = [].concat(_toConsumableArray(_this4.filtreColSelected[col.champ]), _toConsumableArray(col.valeurs));
|
||||||
});
|
});
|
||||||
|
|
2256
package-lock.json
generated
2256
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue