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() {
|
||||
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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue