From 424c251f26e835b39f0eb1a313d07c217b1df173 Mon Sep 17 00:00:00 2001 From: bach Date: Thu, 13 Mar 2025 14:11:29 +0100 Subject: [PATCH] cercle politique admin front fine tunning --- src/components/contents/Doleancer.vue | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) 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 {