From 32fde342c20edbc63a313bf87477aba10c817b5b Mon Sep 17 00:00:00 2001 From: SamuelQuetin Date: Fri, 12 Jul 2024 11:34:58 +0200 Subject: [PATCH 1/5] Ajout Stepper suppression +- vide Ajout tableau vide Ajout route pour stepper --- src/router/index.js | 18 +++++- src/views/Suppression/SuppSteps.vue | 95 +++++++++++++++++++++++++++++ src/views/Suppression/SuppTable.vue | 8 +++ 3 files changed, 119 insertions(+), 2 deletions(-) create mode 100644 src/views/Suppression/SuppSteps.vue create mode 100644 src/views/Suppression/SuppTable.vue 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/views/Suppression/SuppSteps.vue b/src/views/Suppression/SuppSteps.vue new file mode 100644 index 0000000..1b36e92 --- /dev/null +++ b/src/views/Suppression/SuppSteps.vue @@ -0,0 +1,95 @@ + + + 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 @@ + + + + + From 7aec294a43f7f85685a8a10f86011b6ea07d105d Mon Sep 17 00:00:00 2001 From: SamuelQuetin Date: Mon, 15 Jul 2024 14:12:07 +0200 Subject: [PATCH 2/5] Ajout select Type File --- src/components/Supp/TypeFile.vue | 36 +++++++++++++++++++++++++++++ src/store/authStore.js | 1 + src/views/Suppression/SuppSteps.vue | 13 ++++++----- 3 files changed, 44 insertions(+), 6 deletions(-) create mode 100644 src/components/Supp/TypeFile.vue 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/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/Suppression/SuppSteps.vue b/src/views/Suppression/SuppSteps.vue index 1b36e92..151eb6e 100644 --- a/src/views/Suppression/SuppSteps.vue +++ b/src/views/Suppression/SuppSteps.vue @@ -7,7 +7,7 @@ --> - + < @@ -73,6 +73,7 @@ From 2952c4ef8c1d47d5c89ea3b042a6e8fb1bb913d3 Mon Sep 17 00:00:00 2001 From: SamuelQuetin Date: Tue, 16 Jul 2024 11:46:42 +0200 Subject: [PATCH 5/5] Ajout message erreur pour upload file --- src/views/Suppression/SuppSteps.vue | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/views/Suppression/SuppSteps.vue b/src/views/Suppression/SuppSteps.vue index 8ce8896..3530ff5 100644 --- a/src/views/Suppression/SuppSteps.vue +++ b/src/views/Suppression/SuppSteps.vue @@ -58,8 +58,17 @@ Selection du fichier {{typeFileSelected}} + + + - + + précédent + + précédent