fix: แก้โหลด

This commit is contained in:
setthawutttty 2025-09-10 17:13:03 +07:00
parent 084850041b
commit 0c0dffe34b

View file

@ -477,15 +477,10 @@ watch([() => reqMaster.pageSize], () => {
fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type);
});
/** callblck function ทำการ fetch ข้อมูล Table เมื่อมีการเปลี่ยนจำนวนต่อแแแถว*/
watch(
() => [reqMaster.isAll, reqMaster.isBlank],
() => {
reqMaster.page = 1;
fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type);
}
);
function isUpload() {
reqMaster.page = 1;
fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type);
}
onMounted(() => {
fetchOrganizationActive();
@ -630,6 +625,7 @@ onMounted(() => {
v-model="reqMaster.isBlank"
label="แสดงเฉพาะตำแหน่งว่าง"
color="primary"
@update:model-value="isUpload"
>
<q-tooltip>แสดงเฉพาะตำแหนงวาง</q-tooltip>
</q-checkbox>
@ -642,6 +638,7 @@ onMounted(() => {
v-model="reqMaster.isAll"
label="แสดงตำแหน่งทั้งหมด"
color="primary"
@update:model-value="isUpload"
>
<q-tooltip
>แสดงตำแหนงทงหมดภายใตหนวยงาน/วนราชการทเลอก</q-tooltip