From ae55c3b489b25436d8c7851681d6ed2df84aaacb Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 26 Nov 2024 16:19:25 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20=E0=B8=81?= =?UTF-8?q?=E0=B8=B3=E0=B8=AB=E0=B8=99=E0=B8=94=E0=B8=AB=E0=B8=99=E0=B9=89?= =?UTF-8?q?=E0=B8=B2=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=88=E0=B8=B1=E0=B8=94?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=82=E0=B8=84=E0=B8=A3=E0=B8=87?= =?UTF-8?q?=E0=B8=AA=E0=B8=A3=E0=B9=89=E0=B8=B2=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RoleOrganization/DialogAddPerson.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/modules/02_users/components/RoleOrganization/DialogAddPerson.vue b/src/modules/02_users/components/RoleOrganization/DialogAddPerson.vue index cec60777..43b51b28 100644 --- a/src/modules/02_users/components/RoleOrganization/DialogAddPerson.vue +++ b/src/modules/02_users/components/RoleOrganization/DialogAddPerson.vue @@ -116,6 +116,7 @@ async function onSearchListPerson(newPage: boolean = false) { * เมื่อเพิ่มเสร็จจะดึงข้อมูลรายชื่อคนที่มีสิทธิ์จัดการโครงสร้างตามหน่วยงาน */ function onSubmitPerson() { + const arrayId = selected.value.map((e: DataProfile) => e.id); dialogConfirm( $q, async () => { @@ -123,7 +124,7 @@ function onSubmitPerson() { const person = selected.value[0]; const body = { nodeId: orgId.value, - personId: person.id, + personId: arrayId, }; await http .post(config.API.permissionOrg, body) @@ -232,13 +233,20 @@ watch( bordered dense :rows-per-page-options="[10, 25, 50, 100]" - selection="single" + selection="multiple" v-model:selected="selected" @update:pagination="updatePagination" >