ทะเบียนประวัติ =>
This commit is contained in:
parent
8b12e131bc
commit
b27e8fb46f
3 changed files with 23 additions and 8 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue