增加功能:登录日志增加提示图标 closed #ITC2J

#Issue
https://gitee.com/LongbowEnterprise/BootstrapAdmin/issues/ITC2J
This commit is contained in:
Argo Zhang 2019-03-10 13:11:53 +08:00
parent e5d82df2f2
commit edd11c5c80
2 changed files with 6 additions and 1 deletions

View File

@ -573,6 +573,10 @@ li[data-category="1"] .dd3-content .menuType {
padding: 4px 6px;
}
.bootstrap-table .badge .fa {
margin-right: 4px;
}
.bootstrap-table .btn span:last-child {
display: inline;
}

View File

@ -24,7 +24,8 @@ $(function () {
{
title: "登录结果", field: "Result", formatter: function (value, row, index) {
var css = value === "登录成功" ? "success" : "danger";
return $.format('<span class="badge badge-{0}">{1}</span>', css, value);
var icon = css === "success" ? "check" : "remove";
return $.format('<span class="badge badge-{0}"><i class="fa fa-{2}"></i>{1}</span>', css, value, icon);
}
}
]