2023-03-28 13:06:28 +02:00
|
|
|
<school-info>
|
2023-03-31 17:07:25 +02:00
|
|
|
<div if={props.popupEnabled} style="z-index: 10000" class="modal is-active">
|
2023-03-31 14:54:13 +02:00
|
|
|
<div class="modal-background"></div>
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="box p-2">
|
|
|
|
<p>
|
|
|
|
<h1 class="title is-4 m-2" style="color: #485FC7;">{props.school.fields.g_ea_lib_vx}</h1>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<h2></h2>
|
|
|
|
</p>
|
|
|
|
<div class="columns m-2">
|
|
|
|
<div class="column">
|
|
|
|
<p>Ville : {props.school.fields.ville_etab}</p>
|
|
|
|
<p>Département : {props.school.fields.dep} {props.school.fields.dep_lib}</p>
|
|
|
|
<p>Académie : {props.school.fields.acad_mies}</p>
|
|
|
|
<p>{props.school.fields.contrat_etab}</p>
|
|
|
|
<p>Capacité : {props.school.fields.capa_fin}</p>
|
|
|
|
<p>Nombre de voeux : {props.school.fields.voe_tot}</p>
|
|
|
|
<p>Rang dernier admis : </p>
|
|
|
|
</div>
|
|
|
|
<div class="column is-one-fifth">
|
|
|
|
<p>Vitesse de remplissage :</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="m-4">
|
|
|
|
<line-graph title="Répartition par genre" data={state.genreStats} style="height: 6rem;"></line-graph>
|
|
|
|
</div>
|
|
|
|
<div class="m-4">
|
|
|
|
<line-graph title="Répartition par bac" data={state.bacStats} style="height: 6rem;"></line-graph>
|
|
|
|
</div>
|
|
|
|
<div class="m-4">
|
|
|
|
<line-graph title="Répartition par mention au bac" data={state.mentionStats} style="height: 6rem;"></line-graph>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-28 13:06:28 +02:00
|
|
|
</div>
|
2023-03-31 14:54:13 +02:00
|
|
|
<button class="modal-close is-medium" onclick={props.closeWindow}></button>
|
2023-03-25 20:29:49 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2023-03-31 14:54:13 +02:00
|
|
|
onBeforeMount(props, state) {
|
|
|
|
this.state={
|
|
|
|
bacStats: [],
|
|
|
|
genreStats: [],
|
|
|
|
mentionStats: []
|
|
|
|
}
|
2023-03-28 10:22:35 +02:00
|
|
|
},
|
2023-03-31 14:54:13 +02:00
|
|
|
onBeforeUpdate(props, state) {
|
|
|
|
if (!this.props.school) return
|
|
|
|
let school=this.props.school.fields
|
|
|
|
|
|
|
|
state.genreStats = [
|
|
|
|
{
|
|
|
|
name: "Hommes",
|
|
|
|
short: "H",
|
|
|
|
value: (100 - school.pct_f)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Femmes",
|
|
|
|
short: "F",
|
|
|
|
value: school.pct_f
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
|
|
|
state.bacStats = [
|
|
|
|
{
|
|
|
|
name: "Général",
|
|
|
|
short: "Gen.",
|
|
|
|
value: school.part_acces_gen
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Technologique",
|
|
|
|
short: "Tech.",
|
|
|
|
value: school.part_acces_tec
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Professionnel",
|
|
|
|
short: "Pro.",
|
|
|
|
value: school.part_acces_pro
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Autre",
|
|
|
|
short: "Au.",
|
|
|
|
value: 100 - (school.part_acces_gen + school.part_acces_tec + school.part_acces_pro)
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
state.mentionStats = [
|
|
|
|
{
|
|
|
|
name: "Sans Mention",
|
|
|
|
short: "SM",
|
|
|
|
value: school.pct_sansmention
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Assez Bien",
|
|
|
|
short: "AB",
|
|
|
|
value: school.pct_ab
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Bien",
|
|
|
|
short: "B",
|
|
|
|
value: school.pct_b
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Très Bien",
|
|
|
|
short: "TB",
|
|
|
|
value: school.pct_tb
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Très Bien + Félicitations",
|
|
|
|
short: "TBF",
|
|
|
|
value: school.pct_tbf
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Non Spécifié",
|
|
|
|
short: "NS",
|
|
|
|
value: 100 - (school.pct_sansmention + school.pct_ab + school.pct_b + school.pct_tb + school.pct_tbf)
|
|
|
|
}
|
|
|
|
]
|
2023-03-28 10:22:35 +02:00
|
|
|
|
2023-03-25 20:29:49 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</school-info>
|