讲师管理bug

This commit is contained in:
zhangsir
2024-11-28 16:45:20 +08:00
parent 3c8da26843
commit d76e720ceb
2 changed files with 10 additions and 4 deletions

View File

@@ -240,7 +240,10 @@ const searchData = (val) => {
const startDateTimestamp = new Date(dateValue.value[0]).getTime();
const endDateTimestamp = new Date(dateValue.value[1]).getTime();
const isDateInRange = teachingDateTimestamp >= startDateTimestamp && teachingDateTimestamp <= endDateTimestamp;
return isNameMatch && isDateInRange;
if(nameUserNo.value&&startDateTimestamp&&endDateTimestamp){
return isNameMatch && isDateInRange;
}
return isNameMatch || isDateInRange;
});
searchList.value = filteredList;
}