fix(filtrer col) on deplace le test seulement au chargement de la page

This commit is contained in:
Christophe 2025-06-26 17:52:53 +02:00
parent 8a701c17b9
commit e523d42324

View file

@ -447,9 +447,9 @@ const tableau = computed(() => {
});
return rsearch;
});
if (!ttt.length) {
resetTri();
}
// if (!ttt.length) {
// resetTri();
// }
return pagination(ttt);
});
@ -791,9 +791,6 @@ 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],
@ -824,6 +821,9 @@ function chargerJson(id) {
}
});
}
if (!tableau.value.length){
resetTri();
}
if (parseInt(props._id) > 0) {
let _id = parseInt(props._id);
@ -1089,7 +1089,6 @@ function delLigne(id) {
if (id < 0) {
id = id * -1;
}
console.log("delLigne : ", id);
let i = trouver_index(table.value, id);
if (i !== -1) {
table.value.splice(i, 1);