เพิ่มส่ง filter หน้าค้นหาทะเบียนประวัติใหม่
This commit is contained in:
parent
c6c643e213
commit
b07ed6e4c7
1 changed files with 10 additions and 2 deletions
|
|
@ -112,7 +112,7 @@ function fetchYearOption() {
|
||||||
async function fetchDataPerson(search: boolean = false) {
|
async function fetchDataPerson(search: boolean = false) {
|
||||||
showLoader();
|
showLoader();
|
||||||
|
|
||||||
let queryParams = {
|
let queryParams:any = {
|
||||||
page: formFilter.page,
|
page: formFilter.page,
|
||||||
pageSize: formFilter.pageSize,
|
pageSize: formFilter.pageSize,
|
||||||
};
|
};
|
||||||
|
|
@ -121,9 +121,17 @@ async function fetchDataPerson(search: boolean = false) {
|
||||||
queryParams = Object.assign({}, queryParams, {
|
queryParams = Object.assign({}, queryParams, {
|
||||||
searchField: searchType.value,
|
searchField: searchType.value,
|
||||||
searchKeyword: formFilter.keyword,
|
searchKeyword: formFilter.keyword,
|
||||||
|
posLevel: labelOption.posLevel,
|
||||||
|
posType: labelOption.posType,
|
||||||
});
|
});
|
||||||
}
|
if (formFilter.isProbation) {
|
||||||
|
queryParams.isProbation = formFilter.isProbation;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (formFilter.isShowRetire) {
|
||||||
|
queryParams.isRetire = formFilter.isShowRetire;
|
||||||
|
}
|
||||||
|
}
|
||||||
http
|
http
|
||||||
.get(config.API.registryNew, { params: queryParams })
|
.get(config.API.registryNew, { params: queryParams })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue