ทะเบียนประวัติ => fix bug
This commit is contained in:
parent
35ce2c530e
commit
6f9a82faa3
2 changed files with 6 additions and 16 deletions
|
|
@ -323,7 +323,9 @@ watch(
|
||||||
>
|
>
|
||||||
<q-tooltip>ดูทะเบียนประวัติ</q-tooltip>
|
<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>
|
||||||
<div class="text-weight-light">{{ props.row.citizenId }}</div>
|
<div class="text-weight-light">{{ props.row.citizenId }}</div>
|
||||||
|
|
@ -347,7 +349,9 @@ watch(
|
||||||
|
|
||||||
<div class="text-weight-medium q-mt-md">
|
<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>
|
||||||
<div class="text-weight-light full-width text-center">
|
<div class="text-weight-light full-width text-center">
|
||||||
|
|
|
||||||
|
|
@ -70,9 +70,6 @@ function fetchType() {
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
hideLoader();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -85,14 +82,10 @@ function fetchLevel() {
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
hideLoader();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function fetchOptionGroup() {
|
function fetchOptionGroup() {
|
||||||
showLoader();
|
|
||||||
http
|
http
|
||||||
.get(config.API.orgEmployeeType)
|
.get(config.API.orgEmployeeType)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|
@ -100,14 +93,10 @@ function fetchOptionGroup() {
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
hideLoader();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function fetchLevelGroup() {
|
function fetchLevelGroup() {
|
||||||
showLoader();
|
|
||||||
http
|
http
|
||||||
.get(config.API.orgEmployeelevel)
|
.get(config.API.orgEmployeelevel)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|
@ -115,9 +104,6 @@ function fetchLevelGroup() {
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
hideLoader();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue