You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
4.0 KiB
92 lines
4.0 KiB
@model PagedListModel<Platform.Controllers.Logs>
|
|
@{
|
|
HtmlTitle = "日志";
|
|
var start = 0;
|
|
}
|
|
<form action="@Url.Action(null,null)" method="get" class="form-horizontal query">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<div class="row">
|
|
<div class="col-12 col-sm-6 col-md-4 col-lg-3">
|
|
<div class="form-group row">
|
|
<label class="col-sm-3 col-form-label" style="text-align:right;overflow:hidden;">等级:</label>
|
|
<div class="col-sm-9">
|
|
@Html.EditorFor(o => o.Query.Level)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-sm-6 col-md-4 col-lg-3">
|
|
<div class="form-group row">
|
|
<label class="col-sm-3 col-form-label" style="text-align:right;overflow:hidden;">消息:</label>
|
|
<div class="col-sm-9">
|
|
@Html.EditorFor(o => o.Query.RenderedMessage)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-sm-6 col-md-4 col-lg-3">
|
|
<div class="form-group row">
|
|
<label class="col-sm-3 col-form-label" style="text-align:right;overflow:hidden;">异常:</label>
|
|
<div class="col-sm-9">
|
|
@Html.EditorFor(o => o.Query.Exception)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-sm-6 col-md-4 col-lg-3">
|
|
<div class="form-group row">
|
|
<label class="col-sm-3 col-form-label" style="text-align:right;overflow:hidden;">属性:</label>
|
|
<div class="col-sm-9">
|
|
@Html.EditorFor(o => o.Query.Properties)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-12 col-sm-6 col-md-4 col-lg-3">
|
|
<div class="form-group row">
|
|
<div class="col-sm-3"></div>
|
|
<div class="col-sm-9">
|
|
<button type="submit" class="action query btn btn-primary cancel" data-action="@Url.Action(null,null)">
|
|
查询
|
|
</button>
|
|
<button type="submit" class="action confirm btn btn-danger" data-action="@Url.Action("Delete")">
|
|
删除
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body" style="overflow-x:auto;">
|
|
<table class="table table-hover text-nowrap table-bordered dataTable dtr-inline projects">
|
|
<tr>
|
|
<th><input type="checkbox" class="select_all" /></th>
|
|
<th>行号</th>
|
|
<th>Id</th>
|
|
<th>Timestamp</th>
|
|
<th>Level</th>
|
|
<th>Exception</th>
|
|
<th>RenderedMessage</th>
|
|
<th>Properties</th>
|
|
</tr>
|
|
@foreach (var item in Model.List)
|
|
{
|
|
<tr>
|
|
<td title="@item.Id">
|
|
<input type="checkbox" name="list[]" value="@item.Id" />
|
|
</td>
|
|
<td>@(++start)</td>
|
|
<td>@item.Id</td>
|
|
<td>@item.Timestamp</td>
|
|
<td>@item.Level</td>
|
|
<td>@item.Exception
|
|
<td>@item.RenderedMessage</td>
|
|
<td>@item.Properties</td>
|
|
</tr>
|
|
}
|
|
</table>
|
|
</div>
|
|
<div class="card-footer clearfix">
|
|
@(await Html.PartialAsync("_Paged"))
|
|
</div>
|
|
</div>
|
|
</form> |