รายการยื่นคำร้องขอแก้ไขข้อมูล

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-07-23 09:23:51 +07:00
parent 706f6085a0
commit fde95cea9f

View file

@ -249,21 +249,21 @@ function downloadUrl(id: string, fileName: string) {
}); });
} }
function onDeleteLidt(id: string) { // function onDeleteLidt(id: string) {
dialogRemove($q, () => { // dialogRemove($q, () => {
showLoader(); // showLoader();
http // http
.delete(config.API.requestEdit + `${id}`) // .delete(config.API.requestEdit + `${id}`)
.then(async (res) => { // .then(async (res) => {
await fetchListRequset(); // await fetchListRequset();
await success($q, "ลบข้อมูลสำเร็จ"); // await success($q, "");
}) // })
.catch((err) => { // .catch((err) => {
messageError($q, err); // messageError($q, err);
hideLoader(); // hideLoader();
}); // });
}); // });
} // }
watch( watch(
() => pageSize.value, () => pageSize.value,
@ -376,7 +376,7 @@ onMounted(() => {
<q-th v-for="col in props.cols" :key="col.name" :props="props"> <q-th v-for="col in props.cols" :key="col.name" :props="props">
<span class="text-weight-medium">{{ col.label }}</span> <span class="text-weight-medium">{{ col.label }}</span>
</q-th> </q-th>
<q-th auto-width /> <!-- <q-th auto-width /> -->
</q-tr> </q-tr>
</template> </template>
<template v-slot:body="props"> <template v-slot:body="props">
@ -402,7 +402,7 @@ onMounted(() => {
{{ col.value ? col.value : "-" }} {{ col.value ? col.value : "-" }}
</div> </div>
</q-td> </q-td>
<q-td> <!-- <q-td>
<q-btn <q-btn
v-if="props.row.status === 'PENDING'" v-if="props.row.status === 'PENDING'"
flat flat
@ -414,7 +414,7 @@ onMounted(() => {
> >
<q-tooltip>ลบคำรองขอแกไขขอม</q-tooltip> <q-tooltip>ลบคำรองขอแกไขขอม</q-tooltip>
</q-btn> </q-btn>
</q-td> </q-td> -->
</q-tr> </q-tr>
</template> </template>
<template v-slot:pagination="scope"> <template v-slot:pagination="scope">