รายการการประเมินผลการปฏิบัติราชการระดับบุคคล => fix paging

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-11-13 09:23:33 +07:00
parent aad09c302b
commit 5b4f9bfce7

View file

@ -112,7 +112,7 @@ function fetchRoundOption() {
roundOp.value = list; roundOp.value = list;
store.formQuery.round = list[0].id; store.formQuery.round = list[0].id;
await fetchList(); await changRound();
} else { } else {
roundOp.value = []; roundOp.value = [];
store.formQuery.round = ""; store.formQuery.round = "";
@ -152,7 +152,7 @@ async function fetchList() {
}); });
} }
function changRound() { async function changRound() {
formQuery.page = 1; formQuery.page = 1;
fetchList(); fetchList();
} }
@ -170,7 +170,7 @@ function clearYear() {
year.value = null; year.value = null;
store.formQuery.round = ""; store.formQuery.round = "";
roundOp.value = []; roundOp.value = [];
fetchList(); changRound();
} }
/** /**
@ -318,7 +318,6 @@ onMounted(async () => {
map-options map-options
:options="columns" :options="columns"
option-value="name" option-value="name"
style="min-width: 140px" style="min-width: 140px"
/> />
</div> </div>