Skip to content

Commit

Permalink
Merge pull request #123 from abes-esr/develop
Browse files Browse the repository at this point in the history
merge dev to test
  • Loading branch information
EryneKL authored Sep 18, 2024
2 parents bd5b18b + 9180215 commit 3b43c38
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 6 deletions.
15 changes: 13 additions & 2 deletions src/components/Dialog/DialogLancerTraitement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,22 @@ const props = defineProps({
route: {
required: true,
type: String,
},
title: {
required: false,
type: String,
default: 'Lancement du traitement en production'
},
body: {
required: false,
type: String,
default: 'Êtes-vous sûr de vouloir lancer le traitement en production ?<br/> Aucune annulation n\'est possible.'
}
})
const title = ref('Lancement du traitement en production');
const body = ref('Êtes-vous sûr de vouloir lancer le traitement en production ?<br/> Aucune annulation n\'est possible.');
const title = ref(props.title);
const body = ref(props.body);
const isFinished = ref(false);
function confirm() {
emits('launch');
title.value = "Traitement validé";
Expand Down
30 changes: 27 additions & 3 deletions src/components/Structure/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<v-list density="compact" nav>
<v-list-item>
<v-list-item-title class="text-h6">Recouvrement</v-list-item-title>
<v-list-item-title class="text-h6 pb-1">Recouvrement</v-list-item-title>
</v-list-item>

<v-list-item @click="navigateTo('recouvrement')">
Expand All @@ -63,7 +63,7 @@

<v-list density="compact" nav>
<v-list-item>
<v-list-item-title class="text-h6">Creations</v-list-item-title>
<v-list-item-title class="text-h6 pb-1">Creations</v-list-item-title>
</v-list-item>

<v-list-item @click="navigateTo('exemplarisation')">
Expand All @@ -86,7 +86,7 @@

<v-list density="compact" nav>
<v-list-item>
<v-list-item-title class="text-h6">Modifications</v-list-item-title>
<v-list-item-title class="text-h6 pb-1">Modifications</v-list-item-title>
</v-list-item>

<v-list-item @click="navigateTo('modification')">
Expand All @@ -104,6 +104,30 @@
</v-list-item>

</v-list>

<v-divider></v-divider>

<v-list density="compact" nav>
<v-list-item>
<v-list-item-title class="text-h6 pb-1">Suppressions</v-list-item-title>
</v-list-item>

<v-list-item @click="navigateTo('suppression')">
<template v-slot:prepend>
<v-icon>mdi-file-document-remove</v-icon>
</template>
<v-list-item-title>Supprimer des exemplaires</v-list-item-title>
</v-list-item>

<v-list-item @click="navigateTo('suppression-tableau')">
<template v-slot:prepend>
<v-icon>mdi-format-list-bulleted</v-icon>
</template>
<v-list-item-title>Tableau des <br>suppressions d'exemplaires</v-list-item-title>
</v-list-item>

</v-list>

</v-navigation-drawer>
</template>

Expand Down
8 changes: 7 additions & 1 deletion src/views/Suppression/SuppSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
</v-col>
</v-row>
</v-container>
<dialog-lancer-traitement v-model="dialog" :is-loading="isLoading" rubrique="Gérer mes suppressions" route="/suppression-tableau" @launch="launchDemande()"></dialog-lancer-traitement>
<dialog-lancer-traitement v-model="dialog" :is-loading="isLoading" rubrique="Gérer mes suppressions" route="/suppression-tableau" body="Le traitement de suppression des exemplaires en base de production est irréversible." @launch="launchDemande()"></dialog-lancer-traitement>
<dialog-suppression v-model="suppDialog" :demande="demande" return-to-accueil></dialog-suppression>
</template>

Expand Down Expand Up @@ -272,6 +272,12 @@ function changeEtape() {
demande.value = response.data;
});
}
if ((currentStep.value + 1) === 3 ) {
itemService.choixEtape(demande.value.id, 3, 'SUPP')
.then(response => {
demande.value = response.data;
});
}
}
function uploadFileFinal() {
Expand Down

0 comments on commit 3b43c38

Please sign in to comment.