diff --git a/src/components/contents/Doleancer.vue b/src/components/contents/Doleancer.vue index 1cb8e9c..715c71f 100644 --- a/src/components/contents/Doleancer.vue +++ b/src/components/contents/Doleancer.vue @@ -214,7 +214,10 @@ export default { }, // reception et application decision addReceptionApplicationDecision(e){ - this.createCerclepoParagGeneric('reception_application_decision', 'field_receptions_et_applications', 'receptions_et_applications'); + this.createCerclepoParagGeneric('reception_application_decision', 'field_receptions_et_applications', 'receptions_et_applications') + .then(()=>{ + this.setOpenedDoleanceField(this.cid, this.doleance.id, "receptions_et_applications", this.doleance.receptions_et_applications.length-1); + }); }, // reussite / echec addReussiteEchec(e){ @@ -228,10 +231,16 @@ export default { }); }, addReceptionEtTraitement(e){ - this.createCerclepoParagGeneric('reception_et_traitement', 'field_receptions_et_traitements', 'reception_traitement'); + this.createCerclepoParagGeneric('reception_et_traitement', 'field_receptions_et_traitements', 'reception_traitement') + .then(()=>{ + this.setOpenedDoleanceField(this.cid, this.doleance.id, "reception_traitement", this.doleance.reception_traitement.length-1); + }); }, addMiseEnOeuvre(e){ - this.createCerclepoParagGeneric('mise_en_oeuvre_decision', 'field_mise_en_oeuvre_decision', 'mise_en_oeuvre_decision'); + this.createCerclepoParagGeneric('mise_en_oeuvre_decision', 'field_mise_en_oeuvre_decision', 'mise_en_oeuvre_decision') + .then(()=>{ + this.setOpenedDoleanceField(this.cid, this.doleance.id, "mise_en_oeuvre_decision", this.doleance.mise_en_oeuvre_decision.length-1); + }); }, createCerclepoParagGeneric(type, prt_field_name, obj_name){ console.log('createCerclepoParagGeneric',type, prt_field_name, obj_name); @@ -801,7 +810,7 @@ export default {