From 79f08f75694aabe53a9923e42c1eb2843cd28f58 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Fri, 22 Mar 2024 19:20:35 +0700 Subject: [PATCH 1/3] =?UTF-8?q?=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4:=20=E0=B8=9B=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=AA=E0=B9=88=E0=B8=A7?= =?UTF-8?q?=E0=B8=99=E0=B8=95=E0=B8=B1=E0=B8=A7=20(GET,=20PUT)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/registry/api.registry.ts | 15 + .../detail/PersonalInformation/01_Profile.vue | 523 +++++------------- .../interface/request/Profile.ts | 24 + .../interface/response/Profile.ts | 108 ++++ src/modules/04_registryNew/stores/profile.ts | 193 ++++--- 5 files changed, 409 insertions(+), 454 deletions(-) create mode 100644 src/modules/04_registryNew/interface/request/Profile.ts create mode 100644 src/modules/04_registryNew/interface/response/Profile.ts diff --git a/src/api/registry/api.registry.ts b/src/api/registry/api.registry.ts index 8647a7385..b3c917ffd 100644 --- a/src/api/registry/api.registry.ts +++ b/src/api/registry/api.registry.ts @@ -1,11 +1,26 @@ import env from "../index"; const registryNew = `${env.API_URI}/org/profile/`; +const metadata = `${env.API_URI}/org/metadata/`; export default { registryNew, registryNewByProfileId: (profileId: string) => `${registryNew}${profileId}`, + // metadata + profileNewGender: `${metadata}gender`, + profileNewReligion: `${metadata}religion`, + profileNewRelationship: `${metadata}relationship`, + profileNewBloodGroup: `${metadata}bloodGroup`, + + // ประวัติส่วนตัว + profileNewProfileByProfileId: (profileId: string) => + `${registryNew}${profileId}`, + profileNewProfileById: (dataId: string) => + `${registryNew}${dataId}`, + profileNewProfileHisById: (dataId: string) => + `${registryNew}history/${dataId}`, + // บันทึกวันที่ไม่ได้รับเงินเดือนฯ profileNewNoPaid: `${registryNew}nopaid`, profileNewNoPaidByProfileId: (profileId: string) => diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue index 18a575e3d..659d5180a 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/01_Profile.vue @@ -1,5 +1,6 @@