- 添加学生提交管理服务 (StudentSubmissionService, StudentSubmissionDetailService) - 新增学生提交相关控制器 (StudentSubmissionController, StudentSubmissionDetailController) - 添加学生提交数据传输对象 (StudentSubmissionDetailDto, StudentSubmissionSummaryDto) - 新增学生提交相关页面组件 (StudentExamView, ExamDetailView, StudentCard等) - 添加学生提交信息卡片组件 (SubmissionInfoCard, TeacherSubmissionInfoCard) - 更新数据库迁移文件以支持提交系统
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user