ทะเบียนประวัติ ==> ปรับ Path API histiory

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-03 15:49:14 +07:00
parent b14bad2249
commit 35b08b1b47

View file

@ -44,7 +44,7 @@ export default {
profileNewInsignById: (dataId: string, type: string) => profileNewInsignById: (dataId: string, type: string) =>
`${registryNew}${type}/insignia/${dataId}`, `${registryNew}${type}/insignia/${dataId}`,
profileNewInsignHisById: (dataId: string, type: string) => profileNewInsignHisById: (dataId: string, type: string) =>
`${registryNew}${type}/insignia/history/${dataId}`, `${registryNew}${type}/insignia/admin/history/${dataId}`,
// ประกาศเกียรติคุณ // ประกาศเกียรติคุณ
profileNewHonor: (type: string) => `${registryNew}${type}/honor`, profileNewHonor: (type: string) => `${registryNew}${type}/honor`,
@ -53,7 +53,7 @@ export default {
profileNewHonorById: (dataId: string, type: string) => profileNewHonorById: (dataId: string, type: string) =>
`${registryNew}${type}/honor/${dataId}`, `${registryNew}${type}/honor/${dataId}`,
profileNewHonorHisById: (dataId: string, type: string) => profileNewHonorHisById: (dataId: string, type: string) =>
`${registryNew}${type}/honor/history/${dataId}`, `${registryNew}${type}/honor/admin/history/${dataId}`,
// ผลการประเมินการปฏิบัติราชการ // ผลการประเมินการปฏิบัติราชการ
profileNewAssessments: (type: string) => `${registryNew}${type}/assessments`, profileNewAssessments: (type: string) => `${registryNew}${type}/assessments`,
@ -62,7 +62,7 @@ export default {
profileNewAssessmentsById: (dataId: string, type: string) => profileNewAssessmentsById: (dataId: string, type: string) =>
`${registryNew}${type}/assessments/${dataId}`, `${registryNew}${type}/assessments/${dataId}`,
profileNewAssessmentsHisById: (dataId: string, type: string) => profileNewAssessmentsHisById: (dataId: string, type: string) =>
`${registryNew}${type}/assessments/history/${dataId}`, `${registryNew}${type}/assessments/admin/history/${dataId}`,
// การฝึกอบรม // การฝึกอบรม
profileNewTraining: (type: string) => `${registryNew}${type}/training`, profileNewTraining: (type: string) => `${registryNew}${type}/training`,
@ -71,7 +71,7 @@ export default {
profileNewTrainingByTrainingId: (trainingId: string, type: string) => profileNewTrainingByTrainingId: (trainingId: string, type: string) =>
`${registryNew}${type}/training/${trainingId}`, `${registryNew}${type}/training/${trainingId}`,
profileNewTrainingHisByTrainingId: (trainingId: string, type: string) => profileNewTrainingHisByTrainingId: (trainingId: string, type: string) =>
`${registryNew}${type}/training/history/${trainingId}`, `${registryNew}${type}/training/admin/history/${trainingId}`,
// ประวัติการศึกษา // ประวัติการศึกษา
profileNewEducation: (type: string) => `${registryNew}${type}/educations`, profileNewEducation: (type: string) => `${registryNew}${type}/educations`,
@ -80,7 +80,7 @@ export default {
profileNewEducationByEducationId: (educationId: string, type: string) => profileNewEducationByEducationId: (educationId: string, type: string) =>
`${registryNew}${type}/educations/${educationId}`, `${registryNew}${type}/educations/${educationId}`,
profileNewEducationHisByEducationId: (educationsId: string, type: string) => profileNewEducationHisByEducationId: (educationsId: string, type: string) =>
`${registryNew}${type}/educations/history/${educationsId}`, `${registryNew}${type}/educations/admin/history/${educationsId}`,
// ความสามารถพิเศษ // ความสามารถพิเศษ
profileNewAbility: (type: string) => `${registryNew}${type}/ability`, profileNewAbility: (type: string) => `${registryNew}${type}/ability`,
@ -89,7 +89,7 @@ export default {
profileNewAbilityByAbilityId: (abilityId: string, type: string) => profileNewAbilityByAbilityId: (abilityId: string, type: string) =>
`${registryNew}${type}/ability/${abilityId}`, `${registryNew}${type}/ability/${abilityId}`,
profileNewAbilityHisByAbilityId: (abilityId: string, type: string) => profileNewAbilityHisByAbilityId: (abilityId: string, type: string) =>
`${registryNew}${type}/ability/history/${abilityId}`, `${registryNew}${type}/ability/admin/history/${abilityId}`,
// ใบอนุญาตประกอบวิชาชีพ // ใบอนุญาตประกอบวิชาชีพ
profileNewCertificate: (type: string) => `${registryNew}${type}/certificate`, profileNewCertificate: (type: string) => `${registryNew}${type}/certificate`,
@ -100,7 +100,7 @@ export default {
profileNewCertificateHisByCertificateId: ( profileNewCertificateHisByCertificateId: (
certificateId: string, certificateId: string,
type: string type: string
) => `${registryNew}${type}/certificate/history/${certificateId}`, ) => `${registryNew}${type}/certificate/admin/history/${certificateId}`,
// ข้อมูลอื่นๆ // ข้อมูลอื่นๆ
profileNewOther: (type: string) => `${registryNew}${type}/other`, profileNewOther: (type: string) => `${registryNew}${type}/other`,
@ -109,7 +109,7 @@ export default {
profileNewOtherById: (dataId: string, type: string) => profileNewOtherById: (dataId: string, type: string) =>
`${registryNew}${type}/other/${dataId}`, `${registryNew}${type}/other/${dataId}`,
profileNewOtherHisById: (dataId: string, type: string) => profileNewOtherHisById: (dataId: string, type: string) =>
`${registryNew}${type}/other/history/${dataId}`, `${registryNew}${type}/other/admin/history/${dataId}`,
// ข้อมูลครอบครัว // ข้อมูลครอบครัว
profileNewFamily: (type: string) => `${registryNew}${type}/family`, profileNewFamily: (type: string) => `${registryNew}${type}/family`,
@ -127,7 +127,7 @@ export default {
profileNewDisciplineByDisciplineId: (disciplineId: string, type: string) => profileNewDisciplineByDisciplineId: (disciplineId: string, type: string) =>
`${registryNew}${type}/discipline/${disciplineId}`, `${registryNew}${type}/discipline/${disciplineId}`,
profileNewDisciplineHisByDisciplineId: (disciplineId: string, type: string) => profileNewDisciplineHisByDisciplineId: (disciplineId: string, type: string) =>
`${registryNew}${type}/discipline/history/${disciplineId}`, `${registryNew}${type}/discipline/admin/history/${disciplineId}`,
disciplineListCard: (profileId: string, type: string) => disciplineListCard: (profileId: string, type: string) =>
`${registryNew}${type}/discipline/admin/${profileId}`, // noPermission `${registryNew}${type}/discipline/admin/${profileId}`, // noPermission
@ -138,7 +138,7 @@ export default {
profileNewDutyByDutyId: (dutyId: string, type: string) => profileNewDutyByDutyId: (dutyId: string, type: string) =>
`${registryNew}${type}/duty/${dutyId}`, `${registryNew}${type}/duty/${dutyId}`,
profileNewDutyHisByDutyId: (dutyId: string, type: string) => profileNewDutyHisByDutyId: (dutyId: string, type: string) =>
`${registryNew}${type}/duty/history/${dutyId}`, `${registryNew}${type}/duty/admin/history/${dutyId}`,
//ข้อมูลราชการ //ข้อมูลราชการ
profileNewGovernment: (type: string) => `${registryNew}${type}/government`, profileNewGovernment: (type: string) => `${registryNew}${type}/government`,
@ -154,7 +154,7 @@ export default {
profileNewLeaveById: (id: string, type: string) => profileNewLeaveById: (id: string, type: string) =>
`${registryNew}${type}/leave/${id}`, `${registryNew}${type}/leave/${id}`,
profileNewLeaveHistory: (id: string, type: string) => profileNewLeaveHistory: (id: string, type: string) =>
`${registryNew}${type}/leave/history/${id}`, `${registryNew}${type}/leave/admin/history/${id}`,
profileCheckDate: () => `${env.API_URI}/leave/user/check`, profileCheckDate: () => `${env.API_URI}/leave/user/check`,
profileNewLeaveType: () => `${env.API_URI}/leave/type`, profileNewLeaveType: () => `${env.API_URI}/leave/type`,
leaveListCard: (id: string, type: string) => leaveListCard: (id: string, type: string) =>
@ -165,7 +165,7 @@ export default {
profileListSalaryNew: (id: string, type: string) => profileListSalaryNew: (id: string, type: string) =>
`${registryNew}${type}/salary/${id}`, `${registryNew}${type}/salary/${id}`,
profileListSalaryHistoryNew: (profileId: string, type: string) => profileListSalaryHistoryNew: (profileId: string, type: string) =>
`${registryNew}${type}/salary/history/${profileId}`, `${registryNew}${type}/salary/admin/history/${profileId}`,
profileSalarySwapNew: (type: string, id: string, type2: string) => profileSalarySwapNew: (type: string, id: string, type2: string) =>
`${registryNew}${type2}/salary/swap/${type}/${id}`, `${registryNew}${type2}/salary/swap/${type}/${id}`,
salaryListCard: (id: string, type: string) => salaryListCard: (id: string, type: string) =>