แก้ ส่ง id เเละ paging

This commit is contained in:
setthawutttty 2024-10-30 17:50:58 +07:00
parent be5a4bcd53
commit d335cdb7bf
8 changed files with 277 additions and 86 deletions

View file

@ -342,6 +342,11 @@ watch(selectNode, () => {
/**
* hook เมอมการเรยกใช Components
*/
function getSearch() {
store.formFilter.page = 1;
fetchDataPerson();
}
onMounted(async () => {
await Promise.all([selectType(), fetchTree()]);
});
@ -543,7 +548,7 @@ onMounted(async () => {
v-model="store.formFilter.isAll"
color="primary"
label="แสดงตำแหน่งทั้งหมด"
@update:model-value="fetchDataPerson"
@update:model-value="getSearch"
/>
</div>
@ -555,20 +560,20 @@ onMounted(async () => {
v-model="store.formFilter.isProbation"
color="primary"
label="ทดลองปฏิบัติหน้าที่ราชการ"
@update:model-value="fetchDataPerson"
@update:model-value="getSearch"
/>
<q-toggle
v-model="store.formFilter.isShowRetire"
color="primary"
label="แสดงข้อมูลผู้พ้นจากราชการ"
@update:model-value="fetchDataPerson"
@update:model-value="getSearch"
/>
<q-toggle
v-if="store.formFilter.nodeId"
v-model="store.formFilter.isAll"
color="primary"
label="แสดงตำแหน่งทั้งหมด"
@update:model-value="fetchDataPerson"
@update:model-value="getSearch"
/>
</div>
</div>