48 lines
1.0 KiB
Plaintext
48 lines
1.0 KiB
Plaintext
@using Entities.DTO
|
|
@using TechHelper.Client.Exam
|
|
|
|
|
|
<MudPaper Elevation=@Elevation Class=@Class>
|
|
|
|
@foreach (var majorQG in MajorQGList)
|
|
{
|
|
<MudStack Row="true">
|
|
<MudText Typo="Typo.h6">@majorQG.Title</MudText>
|
|
@if (majorQG.Score > 0)
|
|
{
|
|
<MudText Typo="Typo.body2"><b>总分:</b> @majorQG.Score 分</MudText>
|
|
}
|
|
</MudStack>
|
|
|
|
|
|
@if (!string.IsNullOrWhiteSpace(majorQG.Descript))
|
|
{
|
|
<MudText Typo="Typo.body2">@((MarkupString)majorQG.Descript.Replace("\n", "<br />"))</MudText>
|
|
}
|
|
|
|
@if (majorQG.SubQuestions.Any())
|
|
{
|
|
@foreach (var question in majorQG.SubQuestions)
|
|
{
|
|
<QuestionCard Question="question" Elevation=@Elevation Class="my-2 pa-1" />
|
|
}
|
|
}
|
|
|
|
@if (majorQG.SubQuestionGroups.Any())
|
|
{
|
|
<ExamGroupView MajorQGList="majorQG.SubQuestionGroups" Elevation="1" />
|
|
}
|
|
}
|
|
|
|
</MudPaper>
|
|
|
|
@code {
|
|
[Parameter]
|
|
public List<QuestionGroupDto> MajorQGList { get; set; }
|
|
|
|
[Parameter]
|
|
public string Class { get; set; } = "my-2 pa-1";
|
|
|
|
[Parameter]
|
|
public int Elevation { get; set; } = 0;
|
|
} |