From 30f8ba5dc46004355d867051bdd374f64127b5a5 Mon Sep 17 00:00:00 2001 From: SamuelQuetin Date: Fri, 6 Dec 2024 14:08:25 +0100 Subject: [PATCH 1/4] Ajout tooltip --- src/components/Supp/BtnStop.vue | 24 +++++++++------- src/views/Exemplarisation/ExempTable.vue | 27 +++++++++++++----- src/views/Modification/ModifTable.vue | 26 ++++++++++++++---- src/views/Recouvrement/RecouvTable.vue | 26 ++++++++++++++---- src/views/Suppression/SuppTable.vue | 35 +++++++++++++++++------- 5 files changed, 99 insertions(+), 39 deletions(-) diff --git a/src/components/Supp/BtnStop.vue b/src/components/Supp/BtnStop.vue index 6d866ff..9a8f0ce 100644 --- a/src/components/Supp/BtnStop.vue +++ b/src/components/Supp/BtnStop.vue @@ -1,24 +1,28 @@ diff --git a/src/components/ButtonsActions/BtnRestore.vue b/src/components/ButtonsActions/BtnRestore.vue new file mode 100644 index 0000000..425e8dc --- /dev/null +++ b/src/components/ButtonsActions/BtnRestore.vue @@ -0,0 +1,29 @@ + + diff --git a/src/components/ButtonsActions/BtnStop.vue b/src/components/ButtonsActions/BtnStop.vue new file mode 100644 index 0000000..155e6e7 --- /dev/null +++ b/src/components/ButtonsActions/BtnStop.vue @@ -0,0 +1,30 @@ + + diff --git a/src/components/ButtonsActions/BtnSuppression.vue b/src/components/ButtonsActions/BtnSuppression.vue new file mode 100644 index 0000000..222e416 --- /dev/null +++ b/src/components/ButtonsActions/BtnSuppression.vue @@ -0,0 +1,30 @@ + + diff --git a/src/components/Supp/DialogConfirmationStop.vue b/src/components/Dialog/DialogConfirmationStop.vue similarity index 91% rename from src/components/Supp/DialogConfirmationStop.vue rename to src/components/Dialog/DialogConfirmationStop.vue index 08c8e1a..2388fd1 100644 --- a/src/components/Supp/DialogConfirmationStop.vue +++ b/src/components/Dialog/DialogConfirmationStop.vue @@ -15,7 +15,7 @@ diff --git a/src/components/Dialog/DialogSuppression.vue b/src/components/Dialog/DialogSuppression.vue index 1cea8d1..38bb579 100644 --- a/src/components/Dialog/DialogSuppression.vue +++ b/src/components/Dialog/DialogSuppression.vue @@ -10,7 +10,7 @@ Suppression - Êtes-vous certain de vouloir supprimer définitivement cette demande ? + Êtes-vous certain de vouloir supprimer définitivement la demande N°{{ demande.id }} ? @@ -28,7 +28,7 @@ import router from '@/router'; import { ref } from 'vue'; const dialog = defineModel(); -const emits = defineEmits(['supp']) +const emits = defineEmits(['supp']); const props = defineProps({ returnToAccueil: { required: false, @@ -38,21 +38,22 @@ const props = defineProps({ required: true, type: Object } -}) +}); const isLoading = ref(false); function confirm() { isLoading.value = true; itemService.deleteDemande(props.demande.id, props.demande.type) - .then(()=>{ - if(props.returnToAccueil){ + .then(() => { + if (props.returnToAccueil) { router.push('/accueil'); } emits('supp'); - }).finally(() => { - isLoading.value = false; - dialog.value = false; - }) + }) + .finally(() => { + isLoading.value = false; + dialog.value = false; + }); } function cancel() { diff --git a/src/components/Supp/BtnStop.vue b/src/components/Supp/BtnStop.vue deleted file mode 100644 index 76888c5..0000000 --- a/src/components/Supp/BtnStop.vue +++ /dev/null @@ -1,32 +0,0 @@ - - diff --git a/src/views/Exemplarisation/ExempTable.vue b/src/views/Exemplarisation/ExempTable.vue index da1ce6c..b015d74 100644 --- a/src/views/Exemplarisation/ExempTable.vue +++ b/src/views/Exemplarisation/ExempTable.vue @@ -120,38 +120,29 @@ - - - - - - - + + + -