diff --git a/src/api/registry/api.profile.ts b/src/api/registry/api.profile.ts index 77a70667b..9074e5cb8 100644 --- a/src/api/registry/api.profile.ts +++ b/src/api/registry/api.profile.ts @@ -178,6 +178,7 @@ export default { profileReportEmpId: (profileId: string) => `${report}kk1-employee/${profileId}`, profileKp7ShortId: (profileId: string) => `${report}kp7-short/${profileId}`, + profileKp7ShortEmpId: (profileId: string) => `${report}kp7-short-employee/${profileId}`, profileChangeNameId: (profileId: string) => `${profile}changeName/${profileId}`, diff --git a/src/modules/04_registryPerson/views/detailView.vue b/src/modules/04_registryPerson/views/detailView.vue index 308510db5..55ff17669 100644 --- a/src/modules/04_registryPerson/views/detailView.vue +++ b/src/modules/04_registryPerson/views/detailView.vue @@ -304,7 +304,10 @@ function onClickDownloadKp7(type: string) { ? empType.value ? config.API.profileReportEmpId(profileId.value) : config.API.profileReportId(profileId.value) + : empType.value + ? config.API.profileKp7ShortEmpId(profileId.value) : config.API.profileKp7ShortId(profileId.value); + const fileName = type === "FULL" ? "ก.พ.7/ก.ก.1" : "ประวัติแบบย่อ"; http .get(url, { @@ -746,6 +749,7 @@ onMounted(async () => { { >