Skip to content

Commit

Permalink
Merge pull request #155 from abes-esr/ITEM-305-front-envoi-dun-fichie…
Browse files Browse the repository at this point in the history
…r-epn-catcher-le-message-derreur-du-back-dans-le-cas-dun-fichier-de-correspondance-contenant-une-ligne-en-erreur

Item 72 Message erreur fichier de traitement non conforme
  • Loading branch information
SamuelQuetin authored Oct 21, 2024
2 parents 1a78751 + 63023c4 commit 11fc542
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/views/Suppression/SuppSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<v-alert
v-if="alertMessage"
:type="alertType"
closable
>
<span v-html="alertMessage"></span>
</v-alert>
Expand Down Expand Up @@ -104,6 +105,7 @@
<v-alert
v-if="alertMessage"
:type="alertType"
closable
>
<span v-html="alertMessage"></span>
</v-alert>
Expand Down Expand Up @@ -186,6 +188,9 @@ onMounted(()=>{
rcrSelected.value = demande.value.rcr;
if (demande.value.typeSuppression){
typeFileSelected.value = demande.value.typeSuppression;
if(demande.value.typeSuppression === "EPN"){
currentStep.value = 2;
}
}
break;
case 'Préparée':
Expand Down Expand Up @@ -298,15 +303,29 @@ function uploadFileFinal() {
.then(() => {
goSimulation();
})
.catch(err => {
alertMessage.value = err.response.data.message;
alertType.value = 'error';
})
.finally(() => {
isLoading.value = false;
});
})
.catch(err => {
alertMessage.value = err.response.data.message;
alertType.value = 'error';
})
.finally(() => {
isLoading.value = false;
});
})
.catch(err => {
alertMessage.value = err.response.data.message;
alertType.value = 'error';
})
.finally(() => {
isLoading.value = false;
});
}
}
Expand Down

0 comments on commit 11fc542

Please sign in to comment.