
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 30s
- 添加学生提交管理服务 (StudentSubmissionService, StudentSubmissionDetailService) - 新增学生提交相关控制器 (StudentSubmissionController, StudentSubmissionDetailController) - 添加学生提交数据传输对象 (StudentSubmissionDetailDto, StudentSubmissionSummaryDto) - 新增学生提交相关页面组件 (StudentExamView, ExamDetailView, StudentCard等) - 添加学生提交信息卡片组件 (SubmissionInfoCard, TeacherSubmissionInfoCard) - 更新数据库迁移文件以支持提交系统
31 lines
658 B
Plaintext
31 lines
658 B
Plaintext
@using Entities.Contracts
|
|
@using Entities.DTO
|
|
@using TechHelper.Client.Services
|
|
<h3>StudentsView</h3>
|
|
|
|
|
|
@foreach(var cs in ClassStudents)
|
|
{
|
|
<StudentCard StudentDto="@cs">
|
|
</StudentCard>
|
|
|
|
}
|
|
|
|
|
|
@code {
|
|
[CascadingParameter]
|
|
private Task<AuthenticationState> authenticationStateTask { get; set; }
|
|
|
|
private List<StudentDto> ClassStudents { get; set; } = new List<StudentDto>();
|
|
|
|
[Inject]
|
|
public IClassServices ClassServices { get; set; }
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
var result = await ClassServices.GetClassStudents();
|
|
ClassStudents = result.Result as List<StudentDto> ?? new List<StudentDto>();
|
|
StateHasChanged();
|
|
}
|
|
}
|