dernier appelé
This commit is contained in:
parent
486d105064
commit
0ee0b0913c
@ -59,33 +59,10 @@
|
|||||||
onMounted(props, state) {
|
onMounted(props, state) {
|
||||||
this.update({
|
this.update({
|
||||||
course: null,
|
course: null,
|
||||||
<<<<<<< HEAD
|
|
||||||
sortBy: null,
|
|
||||||
schoolList: null,
|
|
||||||
sortFields: SORT_TABLE,
|
|
||||||
filteredSchoolList: null,
|
|
||||||
shouldShowInfos: false,
|
|
||||||
school: null,
|
school: null,
|
||||||
popupEnabled: false
|
schoolList: null,
|
||||||
})
|
popupEnabled: false,
|
||||||
},
|
shouldShowInfos: false
|
||||||
filterSearch() {
|
|
||||||
let input = this.$("input")
|
|
||||||
if (!input) return
|
|
||||||
|
|
||||||
let finalArray = []
|
|
||||||
|
|
||||||
//On évite de trier avant d'avoir plus de 1 lettres.
|
|
||||||
if (input.value.length > 1) {
|
|
||||||
finalArray = this.state.schoolList.filter((item) => {
|
|
||||||
return item.name.toLowerCase().includes(input.value.toLowerCase())
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
finalArray = this.state.schoolList
|
|
||||||
}
|
|
||||||
|
|
||||||
this.update({
|
|
||||||
filteredSchoolList: finalArray
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
popup(school){
|
popup(school){
|
||||||
@ -100,11 +77,6 @@
|
|||||||
popupEnabled: false
|
popupEnabled: false
|
||||||
})
|
})
|
||||||
console.log("closed!")
|
console.log("closed!")
|
||||||
=======
|
|
||||||
schoolList: [],
|
|
||||||
shouldShowInfos: false
|
|
||||||
})
|
|
||||||
>>>>>>> 6ed22586179f7de1d23fd1ebd68d111298170226
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -6,9 +6,6 @@
|
|||||||
<p>
|
<p>
|
||||||
<h1 class="title is-4 m-2" style="color: #485FC7;">{props.school.fields.g_ea_lib_vx}</h1>
|
<h1 class="title is-4 m-2" style="color: #485FC7;">{props.school.fields.g_ea_lib_vx}</h1>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
|
||||||
<h2></h2>
|
|
||||||
</p>
|
|
||||||
<div class="columns m-2">
|
<div class="columns m-2">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<p>Ville : {props.school.fields.ville_etab}</p>
|
<p>Ville : {props.school.fields.ville_etab}</p>
|
||||||
@ -17,9 +14,15 @@
|
|||||||
<p>{props.school.fields.contrat_etab}</p>
|
<p>{props.school.fields.contrat_etab}</p>
|
||||||
<p>Capacité : {props.school.fields.capa_fin}</p>
|
<p>Capacité : {props.school.fields.capa_fin}</p>
|
||||||
<p>Nombre de voeux : {props.school.fields.voe_tot}</p>
|
<p>Nombre de voeux : {props.school.fields.voe_tot}</p>
|
||||||
<p>Rang dernier admis : </p>
|
<p>Rang dernier appelé : </p>
|
||||||
|
<ul>
|
||||||
|
<li if={props.school.fields.lib_grp1}>{props.school.fields.lib_grp1} : {props.school.fields.ran_grp1}</li>
|
||||||
|
<li if={props.school.fields.lib_grp2}>{props.school.fields.lib_grp2} : {props.school.fields.ran_grp2}</li>
|
||||||
|
<li if={props.school.fields.lib_grp3}>{props.school.fields.lib_grp3} : {props.school.fields.ran_grp3}</li>
|
||||||
|
</ul>
|
||||||
|
<p>Admis hors académie : {100-props.school.fields.pct_aca_orig}%</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-one-fifth">
|
<div class="column">
|
||||||
<p>Vitesse de remplissage :</p>
|
<p>Vitesse de remplissage :</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -67,17 +70,17 @@
|
|||||||
{
|
{
|
||||||
name: "Général",
|
name: "Général",
|
||||||
short: "Gen.",
|
short: "Gen.",
|
||||||
value: school.part_acces_gen
|
value: Math.round(school.part_acces_gen)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Technologique",
|
name: "Technologique",
|
||||||
short: "Tech.",
|
short: "Tech.",
|
||||||
value: school.part_acces_tec
|
value: Math.round(school.part_acces_tec)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Professionnel",
|
name: "Professionnel",
|
||||||
short: "Pro.",
|
short: "Pro.",
|
||||||
value: school.part_acces_pro
|
value: Math.round(school.part_acces_pro)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Autre",
|
name: "Autre",
|
||||||
@ -90,27 +93,27 @@
|
|||||||
{
|
{
|
||||||
name: "Sans Mention",
|
name: "Sans Mention",
|
||||||
short: "SM",
|
short: "SM",
|
||||||
value: school.pct_sansmention
|
value: Math.round(school.pct_sansmention)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Assez Bien",
|
name: "Assez Bien",
|
||||||
short: "AB",
|
short: "AB",
|
||||||
value: school.pct_ab
|
value: Math.round(school.pct_ab)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Bien",
|
name: "Bien",
|
||||||
short: "B",
|
short: "B",
|
||||||
value: school.pct_b
|
value: Math.round(school.pct_b)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Très Bien",
|
name: "Très Bien",
|
||||||
short: "TB",
|
short: "TB",
|
||||||
value: school.pct_tb
|
value: Math.round(school.pct_tb)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Très Bien + Félicitations",
|
name: "Très Bien + Félicitations",
|
||||||
short: "TBF",
|
short: "TBF",
|
||||||
value: school.pct_tbf
|
value: Math.round(school.pct_tbf)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Non Spécifié",
|
name: "Non Spécifié",
|
||||||
@ -118,7 +121,6 @@
|
|||||||
value: 100 - (school.pct_sansmention + school.pct_ab + school.pct_b + school.pct_tb + school.pct_tbf)
|
value: 100 - (school.pct_sansmention + school.pct_ab + school.pct_b + school.pct_tb + school.pct_tbf)
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
<script>
|
<script>
|
||||||
const DEFAULT_CLASSES = "progress is-small m-2 mt-auto mb-auto"
|
const DEFAULT_CLASSES = "progress is-small m-2 mt-auto mb-auto"
|
||||||
const COLOR_CLASSES = [
|
const COLOR_CLASSES = [
|
||||||
"is-danger",
|
"is-link",
|
||||||
"is-warning",
|
|
||||||
"is-success",
|
|
||||||
"is-info",
|
"is-info",
|
||||||
"is-link"
|
"is-success",
|
||||||
|
"is-warning",
|
||||||
|
"is-danger"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user