增加功能:登录日志增加提示图标 closed #ITC2J
#Issue https://gitee.com/LongbowEnterprise/BootstrapAdmin/issues/ITC2J
This commit is contained in:
parent
e5d82df2f2
commit
edd11c5c80
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue