From 861cbf6eff7b7f4cee1a73d448a2da63a1c08d19 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 23 Nov 2023 15:32:41 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=84=E0=B9=89=E0=B8=99=E0=B8=AB=E0=B8=B2?= =?UTF-8?q?=E0=B8=84=E0=B8=99=E0=B9=83=E0=B8=99=E0=B8=97=E0=B8=B0=E0=B9=80?= =?UTF-8?q?=E0=B8=9A=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4=20=E0=B8=81=E0=B8=A3?= =?UTF-8?q?=E0=B8=93=E0=B8=B5=E0=B8=9C=E0=B8=B9=E0=B9=89=E0=B8=96=E0=B8=B9?= =?UTF-8?q?=E0=B8=81=E0=B8=A3=E0=B9=89=E0=B8=AD=E0=B8=87=E0=B9=80=E0=B8=A3?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B9=80=E0=B8=9B=E0=B9=87=E0=B8=99?= =?UTF-8?q?=E0=B8=9A=E0=B8=B8=E0=B8=84=E0=B8=84=E0=B8=A5=20#34?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/registry/api.profile.ts | 8 +- src/components/Dialogs/AddPersonal.vue | 177 +++++++++++++++---------- src/interface/response/listPerson.ts | 16 +++ 3 files changed, 127 insertions(+), 74 deletions(-) create mode 100644 src/interface/response/listPerson.ts diff --git a/src/api/registry/api.profile.ts b/src/api/registry/api.profile.ts index 60b262952..825354745 100644 --- a/src/api/registry/api.profile.ts +++ b/src/api/registry/api.profile.ts @@ -188,10 +188,8 @@ export default { //ระบบ ลูกจ้างชั่คราว employmentId: (profileId: string) => `${profile}employment/${profileId}`, - employmentHistoryId: (employmentId: string) => `${profile}employment/history/${employmentId}` - - - - + employmentHistoryId: (employmentId: string) => + `${profile}employment/history/${employmentId}`, + searchPersonal: () => `${profile}search-personal`, }; diff --git a/src/components/Dialogs/AddPersonal.vue b/src/components/Dialogs/AddPersonal.vue index 91fa3f1fe..7e45d08c4 100644 --- a/src/components/Dialogs/AddPersonal.vue +++ b/src/components/Dialogs/AddPersonal.vue @@ -1,54 +1,58 @@ @@ -304,12 +342,13 @@ onMounted(() => {
@@ -330,7 +369,7 @@ onMounted(() => { ref="table" :columns="columns" :rows="rows" - row-key="id" + row-key="personId" flat bordered :paging="true" @@ -383,8 +422,8 @@ onMounted(() => { {{ props.rowIndex + 1 }}
- {{ props.prefix }} -
+ {{ props.prefix }} +
{{ col.value }}
diff --git a/src/interface/response/listPerson.ts b/src/interface/response/listPerson.ts new file mode 100644 index 000000000..47c39277a --- /dev/null +++ b/src/interface/response/listPerson.ts @@ -0,0 +1,16 @@ +interface ResponsePreson { + personId: string; //id อ้างอิง profile + idcard: string; //รหัสบัตรประชาชน + prefix: string; //คำนำหน้า + firstName: string; //ชื่อ + lastName: string; //นามสกุล + posNo: string; //เลขที่ตำแหน่ง + position: string; //ตำแหน่ง + positionLevel: string; //ระดับ + salaries: number; //เงินเดือน + organization: string; //สังกัด + email: string; //อีเมล + phone: string; //เบอร์โทรศัพท์ +} + +export type { ResponsePreson };