หลักสูตรการฝึกอบรม => บันทึกผล fix load

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-07-03 11:11:21 +07:00
parent fca00067f0
commit cc3006b825

View file

@ -200,6 +200,7 @@ async function clickUpload(file: any) {
dialogConfirm(
$q,
async () => {
showLoader();
const selectedFile = file;
const formData = new FormData();
formData.append("file", selectedFile);
@ -212,6 +213,7 @@ async function clickUpload(file: any) {
})
.catch((err) => {
messageError($q, err);
showLoader();
});
},
"ยืนยันการอัปโหลดไฟล์",
@ -254,19 +256,16 @@ function sendRecordRegistry() {
//
dialogConfirm(
$q,
async () => {
() => {
showLoader();
// post
await http
http
.get(config.API.developmentMainTab("tab6/done", id.value))
.then((res) => {
success($q, "ส่งข้อมูลสำเร็จ");
getData();
.then(async () => {
await getData();
await success($q, "ส่งข้อมูลสำเร็จ");
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
},
@ -379,9 +378,13 @@ onMounted(() => {
</q-td>
<q-td v-for="col in props.cols" :key="col.id">
<div v-if="col.name == 'fullName'">
{{ props.row.prefix ? props.row.prefix:'' }}{{ props.row.firstName ? props.row.firstName:'' }} {{ props.row.lastName ? props.row.lastName:'' }}
{{ props.row.prefix ? props.row.prefix : ""
}}{{ props.row.firstName ? props.row.firstName : "" }}
{{ props.row.lastName ? props.row.lastName : "" }}
</div>
<div v-else class="table_ellipsis2">
{{ col.value ? col.value : "-" }}
</div>
<div v-else class="table_ellipsis2">{{ col.value ? col.value : "-" }}</div>
</q-td>
</q-tr>
</template>