feat(training): 新增已结束筛选并精简课程展示
新增已结束任务筛选与只读回顾资格,保留搜索和游标分页。移除任务小节数量及课程附件文件名、切换入口,并更新接口和界面回归测试。
This commit is contained in:
@@ -98,7 +98,10 @@ final class TrainingRemoteReadingViewModel {
|
||||
}
|
||||
|
||||
/// 当前后端是否允许继续有效学习,完成或只读任务不建立新会话。
|
||||
var canStudy: Bool { progress?.canStudy == true && progress?.readingCompleted == false && !isInvalidated }
|
||||
var canStudy: Bool {
|
||||
task?.summary.learnerStatus == .pendingExam && progress?.learnerStatus == .pendingExam
|
||||
&& progress?.canStudy == true && progress?.readingCompleted == false && !isInvalidated
|
||||
}
|
||||
|
||||
/// 首次只读课程元信息、附件第一页与进度,并为首个附件授权;不请求小节标题或 HTML。
|
||||
func load() async {
|
||||
|
||||
Reference in New Issue
Block a user