Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item 72 Message erreur fichier de traitement non conforme #155

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
Loading