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

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-06-11 11:17:43 +07:00
parent 35ce2c530e
commit 6f9a82faa3
2 changed files with 6 additions and 16 deletions

View file

@ -323,7 +323,9 @@ watch(
>
<q-tooltip>ทะเบยนประว</q-tooltip>
{{
`${props.row.prefix}${props.row.firstName} ${props.row.lastName}`
`${props.row.prefix ? props.row.prefix : ""}${
props.row.firstName
} ${props.row.lastName}`
}}
</div>
<div class="text-weight-light">{{ props.row.citizenId }}</div>
@ -347,7 +349,9 @@ watch(
<div class="text-weight-medium q-mt-md">
{{
`${props.row.prefix}${props.row.firstName} ${props.row.lastName}`
`${props.row.prefix ? props.row.prefix : ""}${
props.row.firstName
} ${props.row.lastName}`
}}
</div>
<div class="text-weight-light full-width text-center">

View file

@ -70,9 +70,6 @@ function fetchType() {
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}
@ -85,14 +82,10 @@ function fetchLevel() {
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}
function fetchOptionGroup() {
showLoader();
http
.get(config.API.orgEmployeeType)
.then((res) => {
@ -100,14 +93,10 @@ function fetchOptionGroup() {
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}
function fetchLevelGroup() {
showLoader();
http
.get(config.API.orgEmployeelevel)
.then((res) => {
@ -115,9 +104,6 @@ function fetchLevelGroup() {
})
.catch((err) => {
messageError($q, err);
})
.finally(() => {
hideLoader();
});
}