on remplie les options du select avec la bonne cle de recherche

This commit is contained in:
Christophe 2021-03-17 18:40:31 +01:00
parent e90aa0667d
commit feae594659
2 changed files with 15 additions and 11 deletions

View file

@ -319,7 +319,7 @@ let monTableau = {
this.filtreCol.forEach((col) => { this.filtreCol.forEach((col) => {
let Tval = ['']; let Tval = [''];
this.tableau.forEach((t) => { this.tableau.forEach((t) => {
let valCol = t.html[col]; let valCol = t[this.champ_search][col];
if (Tval.indexOf(valCol) === -1) { if (Tval.indexOf(valCol) === -1) {
Tval.push(valCol); Tval.push(valCol);
this.filtreColValOk = true; this.filtreColValOk = true;
@ -566,7 +566,7 @@ let monTableau = {
</span> </span>
<span class="gamutable-nbrMax">{{tableau.length}} / {{table.length}} éléments</span> <span class="gamutable-nbrMax">{{tableau.length}} / {{table.length}} éléments</span>
</div> </div>
<div class="vueBlocs" v-if="quelleVue === 'bloc'"> <div class="vueBlocs" v-if="quelleVue === 'bloc'">
<div class="vueBlocs-unbloc" <div class="vueBlocs-unbloc"
v-for="(ligne) in tableau" v-for="(ligne) in tableau"

File diff suppressed because one or more lines are too long