diff --git a/src/components/Supp/TypeFile.vue b/src/components/Supp/TypeFile.vue new file mode 100644 index 0000000..064acee --- /dev/null +++ b/src/components/Supp/TypeFile.vue @@ -0,0 +1,36 @@ + + diff --git a/src/router/index.js b/src/router/index.js index acc5b92..2c8a5f6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -4,11 +4,12 @@ import ExempTable from '@/views/Exemplarisation/ExempTable.vue' import ModifTable from '@/views/Modification/ModifTable.vue' import RecouvTable from '@/views/Recouvrement/RecouvTable.vue' import ModifSteps from '@/views/Modification/ModifSteps.vue'; +import RecouvSteps from '@/views/Recouvrement/RecouvSteps.vue'; +import ExempSteps from '@/views/Exemplarisation/ExempSteps.vue'; +import SuppSteps from '@/views/Suppression/SuppSteps.vue' import Accueil from '@/views/Accueil.vue'; import ModificationEmail from '@/views/Utilisateur/ModificationEmail.vue'; import demandesService from '@/service/DemandesService' -import RecouvSteps from '@/views/Recouvrement/RecouvSteps.vue'; -import ExempSteps from '@/views/Exemplarisation/ExempSteps.vue'; import {useAuthStore} from '@/store/authStore' const routes = [ @@ -104,6 +105,19 @@ const routes = [ props: true, meta: {requiresAuth: true} }, + { + path: '/suppression', + name: 'suppression', + component: SuppSteps, + meta: {requiresAuth: true} + }, + { + path: '/suppression/:id', + name: 'suppressionWithId', + component: SuppSteps, + props: true, + meta: {requiresAuth: true} + }, // Gestion de la 404, redirection vers la page d'accueil { diff --git a/src/store/authStore.js b/src/store/authStore.js index 196ed00..0e685fa 100644 --- a/src/store/authStore.js +++ b/src/store/authStore.js @@ -6,6 +6,7 @@ export const useAuthStore = defineStore('auth', { token: sessionStorage.getItem('token'), authenticated: !!sessionStorage.getItem('token'), }), + getters: { getUser: (state) => state.user, isAuthenticated: (state) => state.authenticated, diff --git a/src/views/Modification/ModifSteps.vue b/src/views/Modification/ModifSteps.vue index aff467a..decabff 100644 --- a/src/views/Modification/ModifSteps.vue +++ b/src/views/Modification/ModifSteps.vue @@ -87,7 +87,7 @@ @click="uploadFileInit()" v-if="!isLoaded" > - Envoyé + Envoyer + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Selection du fichier {{typeFileSelected}} + + + + + + précédent + + + précédent + + + Envoyer + + + + + + + + + + + + + + + + diff --git a/src/views/Suppression/SuppTable.vue b/src/views/Suppression/SuppTable.vue new file mode 100644 index 0000000..9f8876b --- /dev/null +++ b/src/views/Suppression/SuppTable.vue @@ -0,0 +1,8 @@ + + + + + diff --git a/src/views/Utilisateur/ModificationEmail.vue b/src/views/Utilisateur/ModificationEmail.vue index 4d05a35..2452a29 100644 --- a/src/views/Utilisateur/ModificationEmail.vue +++ b/src/views/Utilisateur/ModificationEmail.vue @@ -20,6 +20,6 @@ const user = authStore.getUser function setEmailUser(email){ user.email = email; authStore.setUser(user); - router.push('Accueil'); + router.push('accueil'); }