fixing
This commit is contained in:
parent
ec41b55f64
commit
c622df5b58
3 changed files with 19 additions and 11 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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(() => {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue