filtrage SELECT par url, on passe un sous tableau
This commit is contained in:
parent
eff8722fa2
commit
64cfa799a8
3 changed files with 7 additions and 5 deletions
|
@ -34,8 +34,8 @@ Choisir entre la version minifiée de vuejs (sans le debug) ou la version de dev
|
|||
}>
|
||||
|
||||
[(#SET{filtrerselect,#ARRAY{
|
||||
0,#ARRAY{champ,secteur,valeurs,Le chat},
|
||||
1,#ARRAY{champ,voie,valeurs,Turlut man}
|
||||
0,#ARRAY{champ,secteur,valeurs,#LISTE{Le chat}},
|
||||
1,#ARRAY{champ,voie,valeurs,#LISTE{Turlut, man}}
|
||||
}|json_encode|rawurlencode})]
|
||||
<a class="btn" href="[(#URL_PAGE{gestionnaire_voies}|parametre_url{filtrerselect,#GET{filtrerselect}})]"> aaaa </a>
|
||||
```
|
||||
|
|
|
@ -491,11 +491,13 @@ let monTableau = {
|
|||
|
||||
Vue.nextTick(() => {
|
||||
this.chargement = false;
|
||||
|
||||
if (this.filtreselect) {
|
||||
let Tfiltres = recupJson(this.filtreselect);
|
||||
Tfiltres.forEach((col) => {
|
||||
this.filtreColSelected[col.champ].push(col.valeurs);
|
||||
this.filtreColSelected[col.champ] = [
|
||||
...this.filtreColSelected[col.champ],
|
||||
...col.valeurs,
|
||||
];
|
||||
});
|
||||
this.filtreColModif++;
|
||||
}
|
||||
|
|
|
@ -571,7 +571,7 @@ var monTableau = {
|
|||
if (_this4.filtreselect) {
|
||||
var Tfiltres = recupJson(_this4.filtreselect);
|
||||
Tfiltres.forEach(function (col) {
|
||||
_this4.filtreColSelected[col.champ].push(col.valeurs);
|
||||
_this4.filtreColSelected[col.champ] = [].concat(_toConsumableArray(_this4.filtreColSelected[col.champ]), _toConsumableArray(col.valeurs));
|
||||
});
|
||||
_this4.filtreColModif++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue