fix bug filter รายการสอบแข่งขัน/คัดเลือก

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-02-06 09:32:28 +07:00
parent e3fb686d62
commit 4887b6ff74

View file

@ -268,6 +268,7 @@ function examTypeFilter() {
/** ฟังก์ชันค้นหาข้อมูล ายการสอบแข่งขัน / คัดเลือก*/
async function searchFilterTable() {
rows.value = [];
rowsData.value = [];
if (examType.value !== undefined && examType.value !== null) {
await DataStore.DataUpdateMain(
examTime.value == "ทั้งหมด" ? "all" : examTime.value,
@ -289,7 +290,9 @@ async function searchFilterTable() {
numberOfCandidates: e.numberOfCandidates,
});
});
rows.value = dataArr;
// rows.value = dataArr;
rowsData.value = dataArr;
onSearch();
}
}
@ -370,8 +373,8 @@ function onSearch() {
}
/** เรียกใช้ฟังชั่น เมื่อเริ่มหน้านี้*/
onMounted(async () => {
await fetchYearOptions();
onMounted(() => {
fetchYearOptions();
});
</script>