重构项目结构,移除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:
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user