Fix the report page loading results (#603)
* Fix displaying results in the report page. * Improve drop down run id showing
This commit is contained in:
Родитель
0e3c7e1fa5
Коммит
082a498e8d
|
@ -67,15 +67,18 @@ else
|
|||
}
|
||||
|
||||
@code {
|
||||
|
||||
string _firstRunId = string.Empty;
|
||||
string _secondRundId = string.Empty;
|
||||
string _analysesHash = string.Empty;
|
||||
string _monitorRunId = string.Empty;
|
||||
[Parameter]
|
||||
public string FirstRunId { get; set; }
|
||||
public string FirstRunId { get { return _firstRunId; } set { _firstRunId = value; OnInitialized(); } }
|
||||
[Parameter]
|
||||
public string SecondRunId { get; set; }
|
||||
public string SecondRunId { get { return _secondRundId; } set { _secondRundId = value; OnInitialized(); } }
|
||||
[Parameter]
|
||||
public string AnalysesHash { get; set; }
|
||||
public string AnalysesHash { get { return _analysesHash; } set { _analysesHash = value; OnInitialized(); } }
|
||||
[Parameter]
|
||||
public string MonitorRunId { get; set; }
|
||||
public string MonitorRunId { get { return _monitorRunId; } set { _monitorRunId = value; OnInitialized(); } }
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
|
|
|
@ -10,7 +10,13 @@
|
|||
<select class="form-control mr-3" id="RunId" @bind="RunIdInput">
|
||||
@for (int i = 0; i < Runs.Count; i++)
|
||||
{
|
||||
<option value="@i">@Runs[i]</option>
|
||||
if (!string.IsNullOrEmpty(@Runs[i].firstRunId))
|
||||
{
|
||||
<option value="@i">@Runs[i].firstRunId vs @Runs[i].secondRunId (@Runs[i].runStatus)</option>
|
||||
}
|
||||
else{
|
||||
<option value="@i">@Runs[i].secondRunId (@Runs[i].runStatus)</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
|
|
Загрузка…
Ссылка в новой задаче