fix(filtrer col) on deplace le test seulement au chargement de la page
This commit is contained in:
parent
8a701c17b9
commit
e523d42324
1 changed files with 6 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue