fix: แก้โหลด
This commit is contained in:
parent
084850041b
commit
0c0dffe34b
1 changed files with 6 additions and 9 deletions
|
|
@ -477,15 +477,10 @@ watch([() => reqMaster.pageSize], () => {
|
||||||
fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type);
|
fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type);
|
||||||
});
|
});
|
||||||
|
|
||||||
/** callblck function ทำการ fetch ข้อมูล Table เมื่อมีการเปลี่ยนจำนวนต่อแแแถว*/
|
function isUpload() {
|
||||||
watch(
|
reqMaster.page = 1;
|
||||||
() => [reqMaster.isAll, reqMaster.isBlank],
|
fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type);
|
||||||
() => {
|
}
|
||||||
reqMaster.page = 1;
|
|
||||||
|
|
||||||
fetchDataTable(reqMaster.id, reqMaster.revisionId, reqMaster.type);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
fetchOrganizationActive();
|
fetchOrganizationActive();
|
||||||
|
|
@ -630,6 +625,7 @@ onMounted(() => {
|
||||||
v-model="reqMaster.isBlank"
|
v-model="reqMaster.isBlank"
|
||||||
label="แสดงเฉพาะตำแหน่งว่าง"
|
label="แสดงเฉพาะตำแหน่งว่าง"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
@update:model-value="isUpload"
|
||||||
>
|
>
|
||||||
<q-tooltip>แสดงเฉพาะตำแหน่งว่าง</q-tooltip>
|
<q-tooltip>แสดงเฉพาะตำแหน่งว่าง</q-tooltip>
|
||||||
</q-checkbox>
|
</q-checkbox>
|
||||||
|
|
@ -642,6 +638,7 @@ onMounted(() => {
|
||||||
v-model="reqMaster.isAll"
|
v-model="reqMaster.isAll"
|
||||||
label="แสดงตำแหน่งทั้งหมด"
|
label="แสดงตำแหน่งทั้งหมด"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
@update:model-value="isUpload"
|
||||||
>
|
>
|
||||||
<q-tooltip
|
<q-tooltip
|
||||||
>แสดงตำแหน่งทั้งหมดภายใต้หน่วยงาน/ส่วนราชการที่เลือก</q-tooltip
|
>แสดงตำแหน่งทั้งหมดภายใต้หน่วยงาน/ส่วนราชการที่เลือก</q-tooltip
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue