refactor: 移除 no-toolbar 样式

This commit is contained in:
Argo Zhang 2020-02-01 13:58:25 +08:00
parent 0e49f723da
commit fef2976c1f
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
10 changed files with 15 additions and 8 deletions

View File

@ -22,8 +22,8 @@
<script src="~/js/noti.js" asp-append-version="true"></script>
}
<div class="card" asp-condition="@User.IsInRole("Administrators")">
<div class="card-header">用户注册<span class="pull-right"><a id="refreshUsers" href="javascript:;" class="fa fa-refresh" title="点击刷新" data-toggle="tooltip" data-placement="left"></a></span></div>
<div class="card-body" style="padding-top: 25px;">
<div class="card-header">用户注册<span class="pull-right"><a id="refreshUsers" href="#" class="fa fa-refresh" title="点击刷新" data-toggle="tooltip" data-placement="left"></a></span></div>
<div class="card-body">
<table></table>
</div>
</div>

View File

@ -23,7 +23,7 @@
}
<div class="card">
<div class="card-header">在线用户<span class="pull-right"><a id="refreshUsers" href="javascript:;" class="fa fa-refresh" title="点击刷新" data-toggle="tooltip" data-placement="left"></a></span></div>
<div class="card-body no-toolbar">
<div class="card-body">
<table></table>
</div>
</div>

View File

@ -556,10 +556,6 @@ pre {
padding: 15px 15px 0 15px;
}
.no-toolbar .bootstrap-table {
margin-top: -10px;
}
.bootstrap-table .fixed-table-container:not(.fixed-height) .fixed-table-body {
border-radius: 4px;
border: 1px solid #dee2e6;

View File

@ -23,6 +23,8 @@
showToggle: false,
showRefresh: false,
showColumns: false,
toolbar: false,
search: false,
columns: [
{ title: "分类", field: "Name", formatter: CategoryFormatter },
{ title: "描述", field: "Description" },

View File

@ -9,6 +9,7 @@ $(function () {
showColumns: false,
sortName: 'LoginTime',
sortOrder: "desc",
toolbar: false,
search: false,
queryParams: function (params) { return $.extend(params, { startTime: $("#txt_operate_start").val(), endTime: $("#txt_operate_end").val(), loginIp: $('#txt_ip').val() }); },
columns: [

View File

@ -7,6 +7,7 @@
url: url,
sortName: 'LogTime',
sortOrder: 'desc',
toolbar: false,
search: false,
queryParams: function (params) { return $.extend(params, { operateType: $("#txt_operate_type").val(), OperateTimeStart: $("#txt_operate_start").val(), OperateTimeEnd: $("#txt_operate_end").val() }); },
columns: [

View File

@ -3,6 +3,9 @@
var $table = $('table').smartTable({
url: apiUrl,
sidePagination: "client",
toolbar: false,
search: false,
toolbar: false,
showToggle: false,
showRefresh: false,
showColumns: false,
@ -32,7 +35,8 @@
});
});
$('#refreshUsers').tooltip().on('click', function () {
$('#refreshUsers').tooltip().on('click', function (e) {
e.preventDefault();
$table.bootstrapTable('refresh');
});
});

View File

@ -4,6 +4,7 @@ $(function () {
url: apiUrl,
method: "get",
sidePagination: "client",
toolbar: false,
search: false,
showToggle: false,
showRefresh: false,

View File

@ -5,6 +5,7 @@
url: url,
sortName: 'LogTime',
sortOrder: 'desc',
toolbar: false,
search: false,
queryParams: function (params) { return $.extend(params, { UserName: $("#txt_username").val(), OperateTimeStart: $("#txt_operate_start").val(), OperateTimeEnd: $("#txt_operate_end").val() }); },
columns: [

View File

@ -5,6 +5,7 @@ $(function () {
url: url,
sortName: 'LogTime',
sortOrder: 'desc',
toolbar: false,
search: false,
queryParams: function (params) { return $.extend(params, { OperateTimeStart: $("#txt_operate_start").val(), OperateTimeEnd: $("#txt_operate_end").val(), AccessIP: $('#txt_ip').val() }); },
columns: [