36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
@model ImportResultModel
|
|
@if (Model == null || Model == ImportResultModel.Empty)
|
|
{
|
|
return;
|
|
}
|
|
<div class="card card-import-result">
|
|
<div class="card-header position-relative">
|
|
导入结果
|
|
<span class="close position-absolute" style="right:10px;" onclick="$(this).closest('.panel').remove()">×</span>
|
|
</div>
|
|
<div class="card-body">
|
|
@if (Model.ShowSummary)
|
|
{
|
|
<p>总数: @Model.TotalCount,成功: @Model.SuccessCount</p>
|
|
}
|
|
<dl>
|
|
@if (Model.Errors.Any())
|
|
{
|
|
<dt style="color:red;margin-bottom:10px;">错误:</dt>
|
|
foreach (var item in Model.Errors)
|
|
{
|
|
<dd style="color:red;margin-bottom:10px;" class="text-left">@item</dd>
|
|
}
|
|
}
|
|
@if (Model.Successes.Any())
|
|
{
|
|
<dt style="color:green;margin-bottom:10px;">成功:</dt>
|
|
foreach (var item in Model.Successes)
|
|
{
|
|
<dd style="color:green;margin-bottom:10px;" class="text-left">@item</dd>
|
|
}
|
|
}
|
|
</dl>
|
|
</div>
|
|
</div>
|