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

Develop to main #157

Merged
merged 10 commits into from
Oct 25, 2024
Merged
4 changes: 2 additions & 2 deletions src/components/RecapDemande.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<v-row class="d-flex justify-center pa-1">{{ demande.id }}</v-row>
</v-col>
<v-col>
<v-row class="d-flex justify-center pa-1">Date de modification</v-row>
<v-row class="d-flex justify-center pa-1">Date du traitement</v-row>
<v-row class="d-flex justify-center pa-1">{{ demande.dateModification }}</v-row>
</v-col>
<v-col>
Expand All @@ -31,7 +31,7 @@

<script setup>

import { computed, ref } from 'vue';
import { computed } from 'vue';

const props = defineProps({
demande: {type: Object, required: true},
Expand Down
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