fix(placement):path API CalRetire
This commit is contained in:
parent
478a17f6ad
commit
3880953988
3 changed files with 15 additions and 3 deletions
|
|
@ -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}`,
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue