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:
Christophe 2025-06-26 17:43:41 +02:00
parent 5e29b13ef9
commit 4791351f36

View file

@ -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],