diff --git a/Bootstrap.Admin/wwwroot/css/site.css b/Bootstrap.Admin/wwwroot/css/site.css index aa5c2a49..d2be26a9 100644 --- a/Bootstrap.Admin/wwwroot/css/site.css +++ b/Bootstrap.Admin/wwwroot/css/site.css @@ -565,3 +565,7 @@ li[data-category="1"] .dd3-content .menuType { background: #5cb85c; border: 1px solid #404040; } + +.bootstrap-table .badge { + padding: 4px 6px; +} diff --git a/Bootstrap.Admin/wwwroot/js/logins.js b/Bootstrap.Admin/wwwroot/js/logins.js index 5bb832eb..3ccf92b5 100644 --- a/Bootstrap.Admin/wwwroot/js/logins.js +++ b/Bootstrap.Admin/wwwroot/js/logins.js @@ -21,7 +21,12 @@ $(function () { { title: "登录地点", field: "City" }, { title: "浏览器", field: "Browser" }, { title: "操作系统", field: "OS" }, - { title: "登录结果", field: "Result" } + { + title: "登录结果", field: "Result", formatter: function (value, row, index) { + var css = value === "登录成功" ? "success" : "danger"; + return $.format('{1}', css, value); + } + } ] });