diff --git a/src/components/global/etablanalytics/etablanalytics.riot b/src/components/global/etablanalytics/etablanalytics.riot index 3b8cd55..c5e04c0 100644 --- a/src/components/global/etablanalytics/etablanalytics.riot +++ b/src/components/global/etablanalytics/etablanalytics.riot @@ -2,10 +2,11 @@ diff --git a/src/components/global/generalytics/generalytics.riot b/src/components/global/generalytics/generalytics.riot index 759ef0f..5dc56f7 100644 --- a/src/components/global/generalytics/generalytics.riot +++ b/src/components/global/generalytics/generalytics.riot @@ -2,10 +2,11 @@ -
BUT - PRODUCTION - Informatique
+ \ No newline at end of file diff --git a/src/components/global/selector/selector.riot b/src/components/global/selector/selector.riot index 6a2e701..f4b00a7 100644 --- a/src/components/global/selector/selector.riot +++ b/src/components/global/selector/selector.riot @@ -121,6 +121,7 @@ page: { curIndex: 0, /* section n.0 -> n.2. */ cat: null, + path: ["", "", ""], name: [ "formation", "filière de formation", @@ -136,9 +137,14 @@ * */ previousPage(){ try { + this.state.page.path[this.state.page.curIndex] = "" + document.querySelector("loc p").innerText = `${ this.state.page.path[0] } / ${ this.state.page.path[1] } / ${ this.state.page.path[2] }` + if(this.state.page.curIndex-1 >= 0) { if(this.state.page.curIndex === 0) { } else if(this.state.page.curIndex === 1) { + this.state.page.path[0] = "" + console.log(this.state.page.path) this.getDataSection0() } else if(this.state.page.curIndex === 2) { this.getDataSection1() @@ -156,18 +162,20 @@ /** * Aller a la section n+1. * @param event Choix fait par l'utilisateur a la section n. - * todo: Faire en sorte de refaire des calls api en fonction de la section choisit (this.getSpecFor(nom_formation:String) et this.getSpecPlusFor(nom_formation:String). + * todo: Faire en sorte de refaire des calls call en fonction de la section choisit (this.getSpecFor(nom_formation:String) et this.getSpecPlusFor(nom_formation:String). * */ nextPage(event) { try { + this.state.page.path[this.state.page.curIndex] = event.target.textContent + document.querySelector("loc p").innerText = `${ this.state.page.path[0] } / ${ this.state.page.path[1] } / ${ this.state.page.path[2] }` + if(this.state.page.curIndex+1 <= 3 ) { if(this.state.page.curIndex === 0) { this.state.page.cat = `${ event.target.textContent }` this.getDataSection1() } else if(this.state.page.curIndex === 1) { this.getDataSection2(this.state.page.cat) - } else if(this.state.page.curIndex === 2) { - } + } else if(this.state.page.curIndex === 2) {} if(this.state.page.curIndex !== 2) { /* Sinon ca va aller trop loin a la section 2. */ this.update({ curIndex: this.state.page.curIndex++ }) @@ -260,12 +268,11 @@ onBeforeMount() { this.getDataSection0() }, - }; + } Chargement des données...