รายการให้ออกจากราชการ (ลูกจ้าง

This commit is contained in:
setthawutttty 2025-01-27 11:52:40 +07:00
parent 78fd30bc9d
commit ef992ac559
6 changed files with 449 additions and 14 deletions

View file

@ -99,7 +99,7 @@ async function fetchInformation(id: string) {
.get(
config.API.orgProfileById(
id,
`${empType.value == "employee" ? `-${empType.value}` : ""}`
`${props.type == "employee" ? `-${props.type}` : ""}`
)
)
.then(async (res) => {
@ -143,7 +143,7 @@ async function fetchProfileGov(id: string) {
.get(
config.API.profileNewGovernmentCard(
id,
`${empType.value == "employee" ? `-${empType.value}` : ""}`
`${props.type == "employee" ? `-${props.type}` : ""}`
)
)
.then(async (res) => {
@ -172,7 +172,7 @@ async function fetchProfileGov(id: string) {
}
function redirecToRegistry() {
router.push(`/registry-${empType.value}/${props.id}`);
router.push(`/registry-${props.type == 'employee' ? 'employee':'officer'}/${props.id}`);
modal.value = false;
}
@ -422,7 +422,7 @@ async function fetchProfile(id: string, avatarName: string) {
:model-value="
goverment.positionType ? goverment.positionType : '-'
"
label="ประเภทตำแหน่ง"
:label="props.type == 'employee' ? 'กลุ่มงาน':'ประเภทตำแหน่ง'"
/>
</div>
<div class="col-xs-6 col-md-6">
@ -434,7 +434,7 @@ async function fetchProfile(id: string, avatarName: string) {
? goverment.positionLevel
: '-'
"
label="ระดับตำแหน่ง"
:label="props.type == 'employee' ? 'ระดับชั้นงาน':'ระดับตำแหน่ง'"
/>
</div>
<div