From 2135c01c169c49ee130eff9dfee0b802e60e89ed Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Thu, 21 Aug 2025 16:01:41 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20a?= =?UTF-8?q?pi=20=E0=B8=84=E0=B9=89=E0=B8=99=E0=B8=AB=E0=B8=B2=E0=B8=84?= =?UTF-8?q?=E0=B8=99=E0=B8=84=E0=B8=A3=E0=B8=AD=E0=B8=87=E0=B9=83=E0=B8=99?= =?UTF-8?q?=E0=B9=82=E0=B8=84=E0=B8=A3=E0=B8=87=E0=B8=AA=E0=B8=A3=E0=B9=89?= =?UTF-8?q?=E0=B8=B2=E0=B8=87=E0=B8=9B=E0=B8=B1=E0=B8=88=E0=B8=88=E0=B8=B8?= =?UTF-8?q?=E0=B8=9A=E0=B8=B1=E0=B8=99=20=E0=B9=81=E0=B8=81=E0=B9=89=20tag?= =?UTF-8?q?=20=E0=B8=9C=E0=B8=B4=E0=B8=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/02_organizational/api.organization.ts | 1 + .../components/DialogSelectPerson.vue | 14 ++++++++++---- src/modules/04_registryPerson/views/edit/list.vue | 2 +- src/views/MainLayout.vue | 2 +- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/api/02_organizational/api.organization.ts b/src/api/02_organizational/api.organization.ts index c17017e95..34030c278 100644 --- a/src/api/02_organizational/api.organization.ts +++ b/src/api/02_organizational/api.organization.ts @@ -57,6 +57,7 @@ export default { /**ครองตำแหน่ง */ orgSearchProfile: `${orgProfile}/search`, + orgSearchCurrentProfile: `${orgProfile}/search/current/person`, orgProfile: `${orgPos}/profile`, orgDeleteProfile: (id: string) => `${orgPos}/profile/delete/${id}`, orgSummary: `${orgPos}/summary`, diff --git a/src/modules/02_organization/components/DialogSelectPerson.vue b/src/modules/02_organization/components/DialogSelectPerson.vue index eeec6be61..9b12586a9 100644 --- a/src/modules/02_organization/components/DialogSelectPerson.vue +++ b/src/modules/02_organization/components/DialogSelectPerson.vue @@ -330,7 +330,12 @@ function searchData() { keyword: formData.personal, //นามสกุล ชื่อ สกุล เลขบัตร }; http - .post(config.API.orgSearchProfile, reqBody) + .post( + store.typeOrganizational === "draft" + ? config.API.orgSearchProfile + : config.API.orgSearchCurrentProfile, + reqBody + ) .then((res) => { totalPage.value = Math.ceil(res.data.result.total / pageSize.value); const list = res.data.result.data.map((e: SelectPerson) => ({ @@ -450,7 +455,7 @@ watch( diff --git a/src/modules/04_registryPerson/views/edit/list.vue b/src/modules/04_registryPerson/views/edit/list.vue index 0a813703b..38292b777 100644 --- a/src/modules/04_registryPerson/views/edit/list.vue +++ b/src/modules/04_registryPerson/views/edit/list.vue @@ -462,7 +462,7 @@ onMounted(async () => { diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index ca8ae7706..8180cbd86 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -687,7 +687,7 @@ function onViewDetailNoti(url: string) { dense icon="mdi-close" class="mybtn q-mx-xs" - @click.stop.pervent="clickDelete(n.id, index)" + @click.stop.prevent="clickDelete(n.id, index)" >