Skip to content

Commit

Permalink
Merge pull request #151
Browse files Browse the repository at this point in the history
ajout titre dans simu
  • Loading branch information
jvk88511334 authored Oct 18, 2024
2 parents ea3faf4 + 274cb73 commit 06dc52c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
19 changes: 17 additions & 2 deletions src/components/RecapDemande.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<!-- INFOS GENERALES DE LA DEMANDE -->
<div v-if="demande" id="demInfos" class="elevation-2 mb-4 mt-2">
<h3 class="d-flex justify-center" >{{title}}</h3>
<h3 class="d-flex justify-center">{{title}}</h3>
<v-container >
<v-row>
<v-col>
Expand Down Expand Up @@ -31,11 +31,26 @@

<script setup>
import { computed, ref } from 'vue';
const props = defineProps({
demande: {type: Object, required: true},
title: {type: String, required: false, default: "Ma demande"}
});
const title = computed( () => {
if(props.demande.type === 'SUPP')
return "Ma demande de suppression";
if(props.demande.type === 'EXEMP')
return "Ma demande de création";
if(props.demande.type === 'MODIF')
return "Ma demande de modification";
if(props.demande.type === 'RECOUV')
return "Ma demande de recouvrement";
return "Ma demande";
}
)
</script>

<style>
Expand Down
2 changes: 1 addition & 1 deletion src/views/Exemplarisation/ExempSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<v-container :class="(currentStep === 3) ? '' : 'fill-height'" fluid>
<v-col :class="(currentStep === 3) ? '' : 'fill-height'">
<v-row>
<recap-demande v-if="currentStep !== 3" :demande="demande" title="Ma demande de Création"></recap-demande>
<recap-demande v-if="currentStep !== 3" :demande="demande"></recap-demande>
</v-row>
<v-row align="center" justify="center">
<v-col :md="(currentStep === 3) ? '' : '7'">
Expand Down
2 changes: 1 addition & 1 deletion src/views/Modification/ModifSteps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<v-container :class="(currentStep === 4) ? '' : 'fill-height'" fluid>
<v-col class="fill-height">
<v-row align="center" justify="center">
<recap-demande v-if="currentStep < 4" :demande="demande" title="Ma demande de Modification"></recap-demande>
<recap-demande v-if="currentStep < 4" :demande="demande"></recap-demande>
</v-row>
<v-row align="center" justify="center">
<v-col :md="(currentStep === 4) ? '' : '7'">
Expand Down
2 changes: 1 addition & 1 deletion src/views/Recouvrement/RecouvSteps.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<v-container class="fill-height" fluid>
<v-col :class="(currentStep === 3) ? '' : 'fill-height'">
<recap-demande :demande="demande" title="Ma demande de Recouvrement"></recap-demande>
<recap-demande :demande="demande"></recap-demande>
<v-row align="center" justify="center">
<v-col md="7">
<v-stepper v-model="currentStep" alt-labels>
Expand Down
2 changes: 1 addition & 1 deletion src/views/Suppression/SuppSteps.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<v-container :class="(currentStep === 3) ? '' : 'fill-height'" fluid>
<v-col :class="(currentStep === 3) ? '' : 'fill-height'">
<recap-demande v-if="currentStep < 3" :demande="demande" title="Ma demande de Suppression"></recap-demande>
<recap-demande v-if="currentStep < 3" :demande="demande"></recap-demande>
<v-row align="center" justify="center">
<v-col :md="(currentStep === 3) ? '' : '7'">
<v-stepper v-model="currentStep" @update:model-value="changeEtape()" alt-labels>
Expand Down

0 comments on commit 06dc52c

Please sign in to comment.