From d69e93c8f24061ec27cbe0879809ba601237e892 Mon Sep 17 00:00:00 2001 From: Argo-MacBookPro Date: Mon, 4 Mar 2019 18:41:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8A=9F=E8=83=BD=EF=BC=9A?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=97=A5=E5=BF=97=E5=8A=9F=E8=83=BD=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E7=BB=93=E6=9E=9C=E6=88=90=E5=8A=9F=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A2=9C=E8=89=B2=20#IS7RM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/wwwroot/css/site.css | 4 ++++ Bootstrap.Admin/wwwroot/js/logins.js | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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); + } + } ] });