feat: 增加后台管理健康检查页面
This commit is contained in:
parent
1e8ef647f7
commit
088ff671ae
|
@ -71,6 +71,12 @@ namespace Bootstrap.Admin.Controllers
|
|||
/// <returns></returns>
|
||||
public ActionResult FAIcon() => View(new NavigatorBarModel(this));
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public ActionResult Healths() => View(new NavigatorBarModel(this));
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
@model NavigatorBarModel
|
||||
@{
|
||||
ViewBag.Title = "健康检查";
|
||||
}
|
||||
@section css {
|
||||
<environment include="Development">
|
||||
<link href="~/lib/bootstrap-table/bootstrap-table.css" rel="stylesheet" />
|
||||
</environment>
|
||||
<environment exclude="Development">
|
||||
<link href="~/lib/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
|
||||
</environment>
|
||||
}
|
||||
@section javascript {
|
||||
<environment include="Development">
|
||||
<script src="~/lib/bootstrap-table/bootstrap-table.js"></script>
|
||||
<script src="~/lib/bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
|
||||
</environment>
|
||||
<environment exclude="Development">
|
||||
<script src="~/lib/bootstrap-table/bootstrap-table.min.js"></script>
|
||||
<script src="~/lib/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
|
||||
</environment>
|
||||
<script src="~/js/healths.js" asp-append-version="true"></script>
|
||||
}
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
健康检查结果
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div>耗时:<span>0.01</span></div>
|
||||
<table></table>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,23 @@
|
|||
$(function () {
|
||||
var $table = $('table').smartTable({
|
||||
sidePagination: "client",
|
||||
showToggle: false,
|
||||
showRefresh: false,
|
||||
showColumns: false,
|
||||
columns: [
|
||||
{ title: "分类", field: "name", sortable: true },
|
||||
{ title: "描述", field: "Description", sortable: true },
|
||||
{ title: "异常信息", field: "Exception", sortable: true },
|
||||
{ title: "明细数据", field: "Data", sortable: true },
|
||||
{ title: "检查结果", field: "Status", sortable: false },
|
||||
{ title: "耗时", field: "Duration", sortable: true }
|
||||
]
|
||||
});
|
||||
|
||||
$.bc({
|
||||
url: 'healths',
|
||||
callback: function (result) {
|
||||
console.log(result);
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue