From 0b12088bc6be2e1fe9813f6daf3d52dab7702d4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Marronnier?= Date: Tue, 24 Dec 2019 14:40:59 +0100 Subject: [PATCH] styling wip --- src/router.js | 2 +- src/store/modules/situation.js | 19 +++++++ src/views/Questions.vue | 13 +++++ src/views/questions/ARE.vue | 36 +++++++----- src/views/questions/Address.vue | 2 +- src/views/questions/Age.vue | 41 +++++++++----- src/views/questions/Allocation.vue | 86 ++++++++++++++++------------- src/views/questions/Category.vue | 54 +++++++++++------- src/views/questions/Grade.vue | 34 +++++++----- src/views/questions/Inscription.vue | 28 ++++++---- src/views/questions/Other.vue | 62 ++++++++++++++++----- 11 files changed, 255 insertions(+), 122 deletions(-) diff --git a/src/router.js b/src/router.js index c898c05..52ab5fe 100644 --- a/src/router.js +++ b/src/router.js @@ -15,7 +15,7 @@ Vue.use(Router) export default new Router({ - + // https://alligator.io/vuejs/vue-router-modify-head/ to change title and metadata routes: [ { path: '/', diff --git a/src/store/modules/situation.js b/src/store/modules/situation.js index 7f86d90..a8a7eff 100644 --- a/src/store/modules/situation.js +++ b/src/store/modules/situation.js @@ -5,6 +5,7 @@ export default { changed: false, disabled: false, spectacle: false, + manager: false, diploma: "", inscription_period: "", allocation_type: "", @@ -25,6 +26,9 @@ export default { updateSpectacle(state, spectacle) { state.spectacle = spectacle }, + updateManager(state, manager) { + state.manager = manager + }, updateDiploma(state, diploma) { state.diploma = diploma }, @@ -145,6 +149,20 @@ export default { //dispatch('getUncertain') ??? //this.$router.push('results') }, + submitManager({ commit, state }, manager) { + if (manager != state.manager) { + commit('updateManager', manager) + commit('updateChanged', true) + } + //if (state.filters.length == 0) { put those actions in the result component when loaded. + // dispatch('getFilters') + // //} + // dispatch('getResults') + // dispatch('getEligible') + // dispatch('getNonEligible') + //dispatch('getUncertain') ??? + //this.$router.push('results') + }, }, getters: { @@ -152,6 +170,7 @@ export default { changed: state => state.changed, disabled: state => state.disabled, spectacle: state => state.spectacle, + manager: state => state.manager, diploma: state => state.diploma, inscription_period: state => state.inscription_period, allocation_type: state => state.allocation_type, diff --git a/src/views/Questions.vue b/src/views/Questions.vue index 62a9ebb..24e50dd 100644 --- a/src/views/Questions.vue +++ b/src/views/Questions.vue @@ -11,4 +11,17 @@ export default { \ No newline at end of file diff --git a/src/views/questions/ARE.vue b/src/views/questions/ARE.vue index 0b0db8f..585e370 100644 --- a/src/views/questions/ARE.vue +++ b/src/views/questions/ARE.vue @@ -1,18 +1,26 @@ \ No newline at end of file diff --git a/src/views/questions/Grade.vue b/src/views/questions/Grade.vue index e4cf495..5a5d1ee 100644 --- a/src/views/questions/Grade.vue +++ b/src/views/questions/Grade.vue @@ -1,17 +1,25 @@ -- GitLab