From 3e57d3e71072238c39c8734ab7020433676a2e97 Mon Sep 17 00:00:00 2001 From: sergei kasianenko Date: Mon, 2 Dec 2024 21:42:36 +0800 Subject: [PATCH] fix front change group field --- l2-frontend/src/construct/ParaclinicResearchEditor.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/l2-frontend/src/construct/ParaclinicResearchEditor.vue b/l2-frontend/src/construct/ParaclinicResearchEditor.vue index 2eee05a8be..8cdc2f285d 100644 --- a/l2-frontend/src/construct/ParaclinicResearchEditor.vue +++ b/l2-frontend/src/construct/ParaclinicResearchEditor.vue @@ -1307,7 +1307,7 @@ export default { showAllDepartmentForTemplateField: false, userDepartmentId: null, showPermissionsModal: false, - possibleGroupForField: [], + possibleGroupsForField: [], }; }, computed: { @@ -1706,6 +1706,7 @@ export default { if (this.ex_deps.length > 0 && this.site_type === null) { this.site_type = this.ex_deps[0].pk; } + this.findPossibleGroupForField(); }, cancel() { // eslint-disable-next-line no-restricted-globals,no-alert @@ -1800,7 +1801,7 @@ export default { this.showPermissionsModal = false; }, findPossibleGroupForField() { - this.possibleGroupForField = this.groups.map(group => ({ id: group.pk, label: group.pk })); + this.possibleGroupsForField = this.groups.map(group => ({ id: group.pk, label: group.pk })); }, }, };