重构项目结构,移除Assignment相关功能,优化Submission模块
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 12s
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 12s
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
private IMudDialogInstance MudDialog { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public AssignmentDto Assignment { get; set; } = new AssignmentDto();
|
||||
public ExamDto Assignment { get; set; } = new ExamDto();
|
||||
|
||||
private void Cancel() => MudDialog.Cancel();
|
||||
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
@using Helper
|
||||
|
||||
<MudPaper Elevation=5 Class="w-100 pa-5 rounded-xl" Height="@Height" Style="@Style">
|
||||
<MudTextField Value="@AssignmentDto.Title"></MudTextField>
|
||||
<MudTextField Value="@AssignmentDto.Score">SCORE</MudTextField>
|
||||
<MudTextField Value="@AssignmentDto.TotalQuestions">NUMQUESTION</MudTextField>
|
||||
<MudChipSet T="SubjectAreaEnum" SelectedValue="@AssignmentDto.SubjectArea" CheckMark SelectionMode="SelectionMode.SingleSelection" SelectedValueChanged="HandleQTSelectedValueChanged">
|
||||
<MudTextField Value="@ExamDto.Title"></MudTextField>
|
||||
<MudTextField Value="@ExamDto.Score">SCORE</MudTextField>
|
||||
<MudTextField Value="@ExamDto.TotalQuestions">NUMQUESTION</MudTextField>
|
||||
@* <MudChipSet T="SubjectAreaEnum" SelectedValue="@ExamDto.SubjectId" CheckMark SelectionMode="SelectionMode.SingleSelection" SelectedValueChanged="HandleQTSelectedValueChanged">
|
||||
|
||||
@foreach (SubjectAreaEnum item in Enum.GetValues(typeof(SubjectAreaEnum)))
|
||||
{
|
||||
@@ -15,7 +15,7 @@
|
||||
Value="@item">
|
||||
</MudChip>
|
||||
}
|
||||
</MudChipSet>
|
||||
</MudChipSet> *@
|
||||
<MudText>DUETIME</MudText>
|
||||
<MudText>EXAMTYPE</MudText>
|
||||
</MudPaper>
|
||||
@@ -24,7 +24,7 @@
|
||||
@code {
|
||||
[Parameter]
|
||||
|
||||
public AssignmentDto AssignmentDto { get; set; }
|
||||
public ExamDto ExamDto { get; set; }
|
||||
[Parameter]
|
||||
public string Style { get; set; }
|
||||
[Parameter]
|
||||
@@ -32,6 +32,6 @@
|
||||
|
||||
public void HandleQTSelectedValueChanged(SubjectAreaEnum subject)
|
||||
{
|
||||
AssignmentDto.SubjectArea = subject;
|
||||
// ExamDto.SubjectArea = subject;
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@
|
||||
</MudText>
|
||||
</TitleContent>
|
||||
<DialogContent>
|
||||
<MudPaper Elevation="0" Class="rounded-xl pa-1 " Style="background-color: transparent">
|
||||
@* <MudPaper Elevation="0" Class="rounded-xl pa-1 " Style="background-color: transparent">
|
||||
<MudPaper Elevation="0" Class="rounded-xl pa-2 ma-2">
|
||||
<MudTextField @bind-Value="Exam.Name" Label="Title" Variant="Variant.Text" Margin="Margin.Dense" AutoFocus="true" />
|
||||
<MudTextField @bind-Value="Exam.TotalQuestions" Label="TotalQuestions" Variant="Variant.Text" Adornment="Adornment.End" AdornmentText="." Margin="Margin.Dense" AutoFocus="true" />
|
||||
@@ -40,7 +40,7 @@
|
||||
<MudChip Text="@ExamType.AITest.ToString()" Color="Color.Error" Value="@ExamType.AITest"> @ExamType.AITest</MudChip>
|
||||
</MudChipSet>
|
||||
</MudPaper>
|
||||
</MudPaper>
|
||||
</MudPaper> *@
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
<MudButton OnClick="Cancel">Cancel</MudButton>
|
||||
@@ -53,7 +53,7 @@
|
||||
private IMudDialogInstance MudDialog { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public AssignmentDto Exam { get; set; } = new AssignmentDto();
|
||||
public ExamDto Exam { get; set; } = new ExamDto();
|
||||
|
||||
|
||||
public SubjectAreaEnum SubjectArea { get; set; }
|
||||
|
||||
31
TechHelper.Client/Pages/Common/Question/QuestionType.razor
Normal file
31
TechHelper.Client/Pages/Common/Question/QuestionType.razor
Normal file
@@ -0,0 +1,31 @@
|
||||
@using TechHelper.Client.Services
|
||||
@using Entities.DTO
|
||||
@using Entities.Contracts
|
||||
|
||||
|
||||
<MudChipSet T="TypeCommonDto" @bind-SelectedValue="@SelectedValue">
|
||||
@foreach (var item in QuestionTypes)
|
||||
{
|
||||
<MudChip Color="Color.Primary" Value="@item"> @item.Name</MudChip>
|
||||
}
|
||||
</MudChipSet>
|
||||
|
||||
|
||||
@code {
|
||||
private TypeCommonDto SelectedValue;
|
||||
private List<TypeCommonDto> QuestionTypes;
|
||||
|
||||
[Parameter]
|
||||
public TypeNameType Type { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public Guid? SubjectID { get; set; } = null;
|
||||
|
||||
[Inject]
|
||||
public ICommonService CommonService { get; set; }
|
||||
|
||||
protected async override Task OnInitializedAsync()
|
||||
{
|
||||
var QuestionServices = await CommonService.GetCommonTypesAsync(Type, SubjectID);
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@
|
||||
</MudText>
|
||||
</TitleContent>
|
||||
<DialogContent>
|
||||
<TechHelper.Client.Pages.Exam.AssignmentQuestionEdit AssignmentQuestion="Questions"/>
|
||||
<TechHelper.Client.Pages.Exam.ExamQuestionEdit ExamQuestion="Questions"/>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
<MudButton OnClick="Cancel">Cancel</MudButton>
|
||||
@@ -22,7 +22,7 @@
|
||||
private IMudDialogInstance MudDialog { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public AssignmentQuestionDto Questions { get; set; } = new AssignmentQuestionDto();
|
||||
public ExamQuestionDto Questions { get; set; } = new ExamQuestionDto();
|
||||
|
||||
private void Cancel() => MudDialog.Cancel();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user