ประเมินบุคคล ==> ปรับ load

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-26 16:37:16 +07:00
parent eac2fd5878
commit e09d0afe73
10 changed files with 223 additions and 180 deletions

View file

@ -99,7 +99,6 @@ async function onClickAdd() {
function onClickClose() {
modalAddDirector.value = false;
props.fetchdata();
}
/**
@ -124,14 +123,15 @@ function returnDirector(data: any) {
.put(config.API.evaluationChooseDirectors(id.value), {
directors: dataList,
})
.then(() => {
success($q, "บันทึกสำเร็จ");
.then(async () => {
await props.fetchdata();
await success($q, "บันทึกสำเร็จ");
await onClickClose();
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
onClickClose();
hideLoader();
});
});

View file

@ -125,7 +125,6 @@ function onClickAdd() {
function onClickClose() {
modalAdd.value = false;
props.fetchdata();
}
/**
@ -150,14 +149,15 @@ function returnData(data: any) {
.put(config.API.evaluationChooseMeeting(id.value), {
meetings: dataList,
})
.then((res) => {
success($q, "บันทึกสำเร็จ");
.then(async () => {
await props.fetchdata();
await success($q, "บันทึกสำเร็จ");
await onClickClose();
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
onClickClose();
hideLoader();
});
});
@ -260,7 +260,7 @@ watch(
</q-tr>
</template>
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer">
<q-tr :props="props">
<q-td v-for="col in props.cols" :key="col.name" :props="props">
<div v-if="col.name == 'no'">
{{ props.rowIndex + 1 }}