Skip to content

Commit

Permalink
Adapte la fiche gestionnaire suite aux changements de gestion des sites
Browse files Browse the repository at this point in the history
Issue: #193199
Change-Id: I172e2dddd1dcb2e3a2d3a904ab81b3a6d2f6f285
  • Loading branch information
Clément GRENOT authored and Renaud-Kieffer committed Nov 3, 2023
1 parent 4056f96 commit 3695682
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion client-ng/src/components/ManageGestionnaires.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
filteredResultGestionnaire: [],
fields: [
{ key:'gestionnaire.nom', label:'Nom', tdClass:'nomCell', sortable: true},
{ key:'gestionnaire.code', label:'Siren', tdClass:'codeCell', sortable: true},
{ key:'gestionnaire.code', label:'SIREN/SIRET', tdClass:'codeCell', sortable: true},
{ key:'contact', label:'Contact', tdClass:'contactCell'},
{ key:'actif', label:'Actif', tdClass:'actifCell'},
{ key:'actions', label:'', tdClass:'buttonCell'}
Expand Down
9 changes: 1 addition & 8 deletions client-ng/src/components/ModalFormGestionnaire.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
</b-form-checkbox>
</b-form-group>
</div>
<div id="selectionSite">
<!-- TODO -->
</div>
</form>
</b-modal>
</div>
Expand All @@ -46,7 +43,6 @@
nomGestionnaire:'',
codeGestionnaire:'',
actifGestionnaire: '',
versionGestionnaire:0,
idGestionnaire:'',
buildedTitle:'',
}
Expand All @@ -70,8 +66,7 @@
axios.get('/remocra/gestionnaire/' + idGestionnaire_).then(response => {
response.data.data ? (this.nomGestionnaire = response.data.data.nom,
this.codeGestionnaire = response.data.data.code,
this.actifGestionnaire = response.data.data.actif,
this.versionGestionnaire = response.data.data.version) : null
this.actifGestionnaire = response.data.data.actif) : null
this.buildedTitle='Modification de '+this.nomGestionnaire
this.$bvModal.show('formGestionnaire');
})
Expand Down Expand Up @@ -101,7 +96,6 @@
nom: this.nomGestionnaire,
code: this.codeGestionnaire == '' ? null: this.codeGestionnaire,
actif: this.actifGestionnaire,
version: this.versionGestionnaire == 0 ? 1 : this.versionGestionnaire+1,
}))
let url = this.idGestionnaire !== null ? '/remocra/gestionnaire/updateGestionnaire/' + this.idGestionnaire : '/remocra/gestionnaire/createGestionnaire';
axios.post(url, formData).then(() => {
Expand All @@ -118,7 +112,6 @@
this.nomGestionnaire='';
this.codeGestionnaire='';
this.actifGestionnaire='';
this.versionGestionnaire=0;
this.contacts=[];
},
checkFormValidity() {
Expand Down

0 comments on commit 3695682

Please sign in to comment.