เพิ่ม pageing

This commit is contained in:
setthawutttty 2024-12-06 12:06:52 +07:00
parent 3cde135b74
commit 83da5192b2
2 changed files with 3 additions and 1 deletions

View file

@ -134,7 +134,7 @@ async function getSearch() {
}; };
await http await http
.post( .post(
config.API.orgSearchPersonal(), config.API.orgSearchPersonal()+`?page=${pagination.value.page}&pageSize=${pagination.value.rowsPerPage}`,
body body
) )
.then((res) => { .then((res) => {

View file

@ -203,10 +203,12 @@ function selectType() {
if (empType.value !== "officer") { if (empType.value !== "officer") {
store.formFilter.isShowRetire = null; store.formFilter.isShowRetire = null;
store.formFilter.isProbation = null; store.formFilter.isProbation = null;
store.formFilter.keyword = "";
fetchOptionGroup(); fetchOptionGroup();
} else { } else {
store.formFilter.isShowRetire = false; store.formFilter.isShowRetire = false;
store.formFilter.isProbation = false; store.formFilter.isProbation = false;
store.formFilter.keyword = "";
fetchType(); fetchType();
} }