讲师管理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;
}

View File

@@ -588,12 +588,15 @@
//课程类型
const OnTheJobStatusList = ref([
{ value: '', label: "全部" },
{ value: 0, label: "面授课" },
{ value: 1, label: "在线课" },
{ value: '0', label: "面授课" },
{ value: '1', label: "在线课" },
{ value: '2', label: "课程开发" },
{ value: '3', label: "作业员入模培训" },
{ value: '4', label: "其他" },
])
//认证状态
const AuthenticationStatusList = ref([
{ value: 0, label: "待提交" },
{ value: 0, label: "待确认" },
{ value: 1, label: "待审核" },
{ value: 2, label: "审核中" },
{ value: 4, label: "审核拒绝" },