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

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