fix bug filter รายการสอบแข่งขัน/คัดเลือก
This commit is contained in:
parent
e3fb686d62
commit
4887b6ff74
1 changed files with 6 additions and 3 deletions
|
|
@ -268,6 +268,7 @@ function examTypeFilter() {
|
||||||
/** ฟังก์ชันค้นหาข้อมูล ายการสอบแข่งขัน / คัดเลือก*/
|
/** ฟังก์ชันค้นหาข้อมูล ายการสอบแข่งขัน / คัดเลือก*/
|
||||||
async function searchFilterTable() {
|
async function searchFilterTable() {
|
||||||
rows.value = [];
|
rows.value = [];
|
||||||
|
rowsData.value = [];
|
||||||
if (examType.value !== undefined && examType.value !== null) {
|
if (examType.value !== undefined && examType.value !== null) {
|
||||||
await DataStore.DataUpdateMain(
|
await DataStore.DataUpdateMain(
|
||||||
examTime.value == "ทั้งหมด" ? "all" : examTime.value,
|
examTime.value == "ทั้งหมด" ? "all" : examTime.value,
|
||||||
|
|
@ -289,7 +290,9 @@ async function searchFilterTable() {
|
||||||
numberOfCandidates: e.numberOfCandidates,
|
numberOfCandidates: e.numberOfCandidates,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
rows.value = dataArr;
|
// rows.value = dataArr;
|
||||||
|
rowsData.value = dataArr;
|
||||||
|
onSearch();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -370,8 +373,8 @@ function onSearch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** เรียกใช้ฟังชั่น เมื่อเริ่มหน้านี้*/
|
/** เรียกใช้ฟังชั่น เมื่อเริ่มหน้านี้*/
|
||||||
onMounted(async () => {
|
onMounted(() => {
|
||||||
await fetchYearOptions();
|
fetchYearOptions();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue