fix(placement):path API CalRetire

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-10-15 12:33:35 +07:00
parent 478a17f6ad
commit 3880953988
3 changed files with 15 additions and 3 deletions

View file

@ -169,7 +169,7 @@ export default {
profileOrganizRoot: `${profile}organization/root`,
profileCalRetire: `${profile}cal/retire`,
profileCalRetire: `${registryNew}cal/retire`,
profilePositionNumber: `${profile}position-number`,
organizationName: (ocId: string) => `${profile}organization/${ocId}`,
profileDeactive: (profileId: string) => `${profile}deactive/${profileId}`,

View file

@ -53,7 +53,13 @@ async function calRetire(birth: Date) {
.post(config.API.profileCalRetire, body)
.then((res: any) => {
const data = res.data.result;
informaData.value.age = data.age;
informaData.value.age =
data.age.year +
" ปี " +
data.age.month +
" เดือน" +
data.age.day +
" วัน";
changeRetireText(data.retireDate);
age.value = true;
})

View file

@ -175,7 +175,13 @@ const calRetire = async (birth: Date) => {
.post(config.API.profileCalRetire, body)
.then((res: any) => {
const data = res.data.result;
informaData.value.age = data.age;
informaData.value.age =
data.age.year +
" ปี " +
data.age.month +
" เดือน" +
data.age.day +
" วัน";
changeRetireText(data.retireDate);
age.value = true;
})