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

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-05-21 11:17:26 +07:00
parent 8b12e131bc
commit b27e8fb46f
3 changed files with 23 additions and 8 deletions

View file

@ -190,6 +190,11 @@ async function fetchDataPersonal() {
.then((res) => {
formDetail.value = res.data.result;
fileName.value = res.data.result.avatarName;
if (formDetail.value?.avatarName) {
fetchProfile(profileId.value);
} else {
profilePicture.value = avatar;
}
})
.catch((err) => {
messageError($q, err);
@ -482,7 +487,7 @@ async function selectAvatarHistory() {
onMounted(async () => {
// fileName.value = `profile-${profileId.value}`;
await fetchDataPersonal();
await fetchProfile(profileId.value);
// await fetchProfile(profileId.value);
});
</script>
@ -617,13 +622,17 @@ onMounted(async () => {
<div class="row col-12" style="padding-left: 14%">
<div class="col-2">
<div class="col-sm-3 col-md-3">
<div class="col text-grey-6 text-caption">ตำแหนงในสายงาน</div>
<div class="col text-grey-6 text-caption">
{{ empType === "" ? "ตำแหน่งในสายงาน" : "ตำแหน่ง" }}
</div>
<div class="col">{{ formDetail?.position || "-" }}</div>
</div>
</div>
<div class="col-2">
<div class="col-sm-3 col-md-3">
<div class="col text-grey-6 text-caption">ประเภทตำแหน</div>
<div class="col text-grey-6 text-caption">
{{ empType === "" ? "ประเภทตำแหน่ง" : "กลุ่มงาน" }}
</div>
<div class="col">
{{ formDetail?.posType?.posTypeName || "-" }}
</div>
@ -631,7 +640,9 @@ onMounted(async () => {
</div>
<div class="col-2">
<div class="col-sm-3 col-md-3">
<div class="col text-grey-6 text-caption">ระดบตำแหน</div>
<div class="col text-grey-6 text-caption">
{{ empType === "" ? "ระดับตำแหน่ง" : "ระดับชั้นงาน" }}
</div>
<div class="col">
{{ formDetail?.posLevel?.posLevelName || "-" }}
</div>