diff --git a/src/components/Dialogs/PopupPersonalNew.vue b/src/components/Dialogs/PopupPersonalNew.vue index c20ede68f..2f16bf7b6 100644 --- a/src/components/Dialogs/PopupPersonalNew.vue +++ b/src/components/Dialogs/PopupPersonalNew.vue @@ -102,7 +102,11 @@ async function fetchInformation(id: string) { .get( config.API.orgProfileById( id, - `${props.type.toLocaleLowerCase() == "employee" ? `-${props.type.toLocaleLowerCase()}` : ""}` + `${ + props.type.toLocaleLowerCase() == "employee" + ? `-${props.type.toLocaleLowerCase()}` + : "" + }` ) ) .then(async (res) => { @@ -146,7 +150,11 @@ async function fetchProfileGov(id: string) { .get( config.API.profileNewGovernmentCard( id, - `${props.type.toLocaleLowerCase() == "employee" ? `-${props.type.toLocaleLowerCase()}` : ""}` + `${ + props.type.toLocaleLowerCase() == "employee" + ? `-${props.type.toLocaleLowerCase()}` + : "" + }` ) ) .then(async (res) => { @@ -176,7 +184,7 @@ async function fetchProfileGov(id: string) { function redirecToRegistry() { router.push( - `/registry-${props.type == "employee" ? "employee" : "officer"}/${props.id}` + `/registry-${props.type.toLocaleLowerCase() == "employee" ? "employee" : "officer"}/${props.id}` ); modal.value = false; } @@ -222,7 +230,7 @@ async function fetchProfile(id: string, avatarName: string) { ทะเบียนประวัติ{{ props.type }} + >ทะเบียนประวัติ
diff --git a/src/modules/21_report/components/CardPosition.vue b/src/modules/21_report/components/CardPosition.vue index 3888464fc..956639272 100644 --- a/src/modules/21_report/components/CardPosition.vue +++ b/src/modules/21_report/components/CardPosition.vue @@ -42,7 +42,7 @@ async function fetchDataTenure() { .get( config.API.salaryTenurePosition( props?.id, - props.type === "officer" ? "" : "-employee" + props.type.toLocaleLowerCase() === "officer" ? "" : "-employee" ) ) .then((res) => {