
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 13s
- 重构AppMainStruct、AssignmentQuestion、Question等实体模型 - 更新相关DTO以匹配新的数据结构 - 优化前端页面布局和组件 - 添加全局信息和笔记功能相关代码 - 更新数据库迁移和程序配置
63 lines
1.9 KiB
Plaintext
63 lines
1.9 KiB
Plaintext
@using TechHelper.Client.Pages.Common.Exam;
|
|
@using TechHelper.Client.Pages.Student.BaseInfoCard;
|
|
@using TechHelper.Client.Pages.Common;
|
|
|
|
<MudPaper Class="w-100 h-100 d-flex flex-row">
|
|
<MudPaper Class="flex-grow-1 mx-2 d-flex flex-column">
|
|
<AssignmentInfoCard></AssignmentInfoCard>
|
|
<MudPaper Class="d-flex flex-row">
|
|
<NotifyCard></NotifyCard>
|
|
<HomeworkCard></HomeworkCard>
|
|
<NotifyCard></NotifyCard>
|
|
<HomeworkCard></HomeworkCard>
|
|
</MudPaper>
|
|
<StudentSubmissionPreviewTableCard></StudentSubmissionPreviewTableCard>
|
|
</MudPaper>
|
|
<MudPaper Width="300px" Class="mx-2 align-content-center d-flex flex-column flex-grow-1">
|
|
<HeadIconCard></HeadIconCard>
|
|
<TotalErrorQuestionType></TotalErrorQuestionType>
|
|
|
|
</MudPaper>
|
|
</MudPaper>
|
|
|
|
|
|
@code {
|
|
public double[] data = { 25, 77, 28, 5 };
|
|
public string[] labels = { "Oil", "Coal", "Gas", "Biomass" };
|
|
private AxisChartOptions _axisChartOptions = new AxisChartOptions();
|
|
private ChartOptions options = new ChartOptions();
|
|
public List<ChartSeries> Series = new List<ChartSeries>()
|
|
{
|
|
new ChartSeries() { Name = "Series 1", Data = new double[] { 90, 79, 72, 69, 62, 62, 55, 65, 70 } },
|
|
new ChartSeries() { Name = "Series 2", Data = new double[] { 35, 41, 35, 51, 49, 62, 69, 91, 148 } },
|
|
};
|
|
public string[] XAxisLabels = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep" };
|
|
|
|
Random random = new Random();
|
|
protected override void OnInitialized()
|
|
{
|
|
options.InterpolationOption = InterpolationOption.NaturalSpline;
|
|
options.YAxisFormat = "c2";
|
|
_axisChartOptions.MatchBoundsToSize = true;
|
|
}
|
|
|
|
public void RandomizeData()
|
|
{
|
|
foreach (var series in Series)
|
|
{
|
|
for (int i = 0; i < series.Data.Length - 1; i++)
|
|
{
|
|
series.Data[i] = random.NextDouble() * 100 + 10;
|
|
}
|
|
}
|
|
|
|
StateHasChanged();
|
|
}
|
|
|
|
void OnClickMenu(InterpolationOption interpolationOption)
|
|
{
|
|
options.InterpolationOption = interpolationOption;
|
|
StateHasChanged();
|
|
}
|
|
|
|
} |