This commit is contained in:
2026-03-20 03:06:30 +01:00
parent 864f5c1940
commit bd20abb745
6 changed files with 167 additions and 72 deletions
+13 -3
View File
@@ -191,7 +191,7 @@
</div>
</div>
<button onclick={ () => props.onback() } class="btn-retour">Retour à la liste</button>
<button onclick={ goBack } class="btn-retour">Retour à la liste</button>
</div>
<script>
@@ -221,6 +221,11 @@
}
},
// Retour à la liste des résultats
goBack() {
this.props.onback()
},
renderCharts() {
var f = this.props.formation
if (!f) return
@@ -307,8 +312,13 @@
var rows = ''
for (var i = 0; i < hist.length; i++) {
var h = hist[i]
var sizeCand = maxCandidats > 0 ? Math.round((h.candidats / maxCandidats) * 100) / 100 : 0
var sizeAdmis = maxCandidats > 0 ? Math.round((h.admis / maxCandidats) * 100) / 100 : 0
var sizeCand = 0
var sizeAdmis = 0
if (maxCandidats > 0) {
sizeCand = Math.round((h.candidats / maxCandidats) * 100) / 100
sizeAdmis = Math.round((h.admis / maxCandidats) * 100) / 100
}
rows += '<tr>'
rows += '<th scope="row">' + h.annee + '</th>'