filter keyword

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-02-01 14:31:22 +07:00
parent c7aa139d74
commit 039d4081d6
2 changed files with 20 additions and 18 deletions

View file

@ -120,6 +120,12 @@ async function fetchDataTable(id: string, level: number, action: boolean) {
});
}
async function filterKeyword() {
reqMaster.page = 1;
action1.value === false &&
fetchDataTable(reqMaster.id, reqMaster.type, false);
}
/**lifecycle Hook*/
onMounted(async () => {
const id =
@ -197,6 +203,7 @@ watch(
v-model:reqMaster="reqMaster"
v-model:totalPage="totalPage"
v-model:posMaster="posMaster"
:filterKeyword="filterKeyword"
/>
<q-banner v-else class="q-pa-lg col-12 text-center">