This commit is contained in:
Warunee Tamkoo 2024-06-28 23:47:18 +07:00
parent ec41b55f64
commit c622df5b58
3 changed files with 19 additions and 11 deletions

View file

@ -339,6 +339,7 @@ async function getTable() {
posLevelCandidateName: data.posLevelCandidateName,
posmasterId: data.posmasterId,
statusNameCheck: convertContainStatus(data.statusId),
deferment: data.deferment,
statusName:
data.statusId == "CONTAIN"
@ -883,7 +884,9 @@ onMounted(async () => {
<template v-else-if="col.name === 'statusName'">
<div class="text-weight-medium">
{{ props.row.statusName }}
{{
props.row.statusName == "เตรียม" ? "-" : props.row.statusName
}}
</div>
</template>
</q-td>

View file

@ -838,7 +838,6 @@ async function saveData(id: string) {
*/
async function DataSave(id: string) {
const data = putData(id);
console.log("data==>", data);
await http
.post(config.API.saveFinish(id), data)
.then(() => {

View file

@ -245,16 +245,22 @@ function updatemodalPersonal(modal: boolean) {
async function fetchProfilePhoto() {
await http
.get(
config.API.fileByFile(
"ทะเบียนประวัติ",
"โปรไฟล์",
personalId.value,
`profile-${personalId.value}`
)
)
.get(config.API.orgCheckAvatar(personalId.value))
.then(async (res) => {
avatarProfile.value = res.data.downloadUrl;
if (res.data.result.avatarName) {
await http
.get(
config.API.fileByFile(
"ทะเบียนประวัติ",
"โปรไฟล์",
personalId.value,
res.data.result.avatarName
)
)
.then(async (res) => {
avatarProfile.value = res.data.downloadUrl;
});
}
});
}