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 };