fix(filtrer col) si au chargement d'une page avec filtrage, on a aucun resutlat, on reset le filtrage
pour eviter d'avoir un tableau vide
This commit is contained in:
parent
5e29b13ef9
commit
4791351f36
1 changed files with 6 additions and 0 deletions
|
@ -447,6 +447,9 @@ const tableau = computed(() => {
|
|||
});
|
||||
return rsearch;
|
||||
});
|
||||
if (!ttt.length) {
|
||||
resetTri();
|
||||
}
|
||||
return pagination(ttt);
|
||||
});
|
||||
|
||||
|
@ -788,6 +791,9 @@ function chargerJson(id) {
|
|||
}
|
||||
|
||||
Tfiltres.forEach((col) => {
|
||||
console.log('col ', col);
|
||||
console.log(filtreColSelected);
|
||||
|
||||
if (filtreCol.value.includes(col.champ)) {
|
||||
filtreColSelected.value[col.champ] = [
|
||||
...filtreColSelected.value[col.champ],
|
||||
|
|
Loading…
Add table
Reference in a new issue