fix bug filter
This commit is contained in:
parent
9707d557c7
commit
0efbfcd276
1 changed files with 5 additions and 1 deletions
|
|
@ -235,6 +235,7 @@ function onClickShowFilter() {
|
|||
function onclickSearch() {
|
||||
isShowFilter.value = true;
|
||||
isShowBtnFilter.value = false;
|
||||
formFilter.page = 1;
|
||||
if (isShowFilter.value) {
|
||||
fetchType();
|
||||
fetchLevel();
|
||||
|
|
@ -247,6 +248,7 @@ function onclickSearch() {
|
|||
function selectType(item: DataOption) {
|
||||
labelOption.type = item.name;
|
||||
empType.value = item.id;
|
||||
formFilter.page = 1;
|
||||
|
||||
labelOption.posType = "ทั้งหมด";
|
||||
labelOption.posLevel = "ทั้งหมด";
|
||||
|
|
@ -265,11 +267,13 @@ function selectType(item: DataOption) {
|
|||
|
||||
function selectPosType(item: DataOption) {
|
||||
labelOption.posType = item.name;
|
||||
formFilter.page = 1;
|
||||
fetchDataPerson();
|
||||
}
|
||||
|
||||
function selectPosLevel(item: DataOption) {
|
||||
labelOption.posLevel = item.name;
|
||||
formFilter.page = 1;
|
||||
fetchDataPerson();
|
||||
}
|
||||
|
||||
|
|
@ -284,7 +288,7 @@ function clearSelect(t: string) {
|
|||
formFilter.rangeYear.min = 0;
|
||||
formFilter.rangeYear.max = 60;
|
||||
}
|
||||
|
||||
formFilter.page = 1;
|
||||
fetchDataPerson();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue