feat: 添加学生提交系统功能
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 30s

- 添加学生提交管理服务 (StudentSubmissionService, StudentSubmissionDetailService)
- 新增学生提交相关控制器 (StudentSubmissionController, StudentSubmissionDetailController)
- 添加学生提交数据传输对象 (StudentSubmissionDetailDto, StudentSubmissionSummaryDto)
- 新增学生提交相关页面组件 (StudentExamView, ExamDetailView, StudentCard等)
- 添加学生提交信息卡片组件 (SubmissionInfoCard, TeacherSubmissionInfoCard)
- 更新数据库迁移文件以支持提交系统
This commit is contained in:
SpecialX
2025-09-09 15:42:31 +08:00
parent 6a65281850
commit 439c8a2421
47 changed files with 5486 additions and 119 deletions

View File

@@ -0,0 +1,7 @@
<MudPaper>
<MudText> ExamName </MudText>
<MudText> 已经指派人数 </MudText>
<MudText> 总人数 </MudText>
<MudText> 平均S </MudText>
<MudText> 指派 </MudText>
</MudPaper>

View File

@@ -21,8 +21,6 @@ else
<MudPaper Class="d-flex flex-wrap flex-grow-0 gap-4" Height="100%" Width="100%">
@foreach (var item in examDtos)
{
@* <ExamPreview AssignmentDto="item" Width="256px" Height="256px"> </ExamPreview> *@
<AssignmentInfoCard></AssignmentInfoCard>
}
</MudPaper>

View File

@@ -1,7 +1,34 @@
@page "/exam"
@using TechHelper.Client.Pages.Student.BaseInfoCard
@inject NavigationManager NavigationManager
<AuthorizeView Roles="Teacher">
<Authorized>
<MudPaper Class="rounded-xl ma-2 px-2 overflow-auto w-100 h-100">
<StudentSubmissionPreviewTableCard />
</MudPaper>
</Authorized>
</AuthorizeView>
<MudText>HELLO WORLD</MudText>
<AuthorizeView Roles="Student">
<Authorized>
<MudPaper Class="rounded-xl ma-2 px-2 overflow-auto w-100 h-100">
<StudentSubmissionPreviewTableCard />
</MudPaper>
</Authorized>
</AuthorizeView>
@code {
[CascadingParameter]
private Task<AuthenticationState> authenticationStateTask { get; set; }
protected override void OnParametersSet()
{
if (authenticationStateTask is null)
{
NavigationManager.Refresh(forceReload: true);
}
}
}

View File

@@ -0,0 +1,4 @@

@code {
}