operation_log.hbs
1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<div class="pageheader">
<div class="media">
<div class="pageicon pull-left">
<i class="fa fa-th-list"></i>
</div>
<div class="media-body">
<ul class="breadcrumb">
<li><a href="/"><i class="glyphicon glyphicon-home"></i></a></li>
<li><a href="/servers">系统管理</a></li>
<li>操作日志</li>
</ul>
<h4>所有用户数据操作日志</h4>
</div>
</div>
<!-- media -->
</div>
<div class="contentpanel project-index-page">
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
<a href="" class="tooltips panel-minimize"><i class="fa fa-minus"></i></a>
</div>
<h4 class="panel-title">操作日志</h4>
</div>
<div class="panel-body">
<table id="table-oper-log" class="table table-striped table-bordered building-table">
<thead>
<tr>
<th>操作用户</th>
<th>时间</th>
<th>动作</th>
<th>描述</th>
<th>数据</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
<script>
$(document).on('ready pjax:success', function() {
$("#table-oper-log").DataTable({
pageLength: 25,
retrieve: true,
responsive: true,
processing: true,
serverSide: true,
ajax: {
url: '/operation/log/query',
type: "POST"
},
columns: [
{data: "username"},
{data: "time"},
{data: "action"},
{data: "description"},
{data: "meta"}
],
order: [[1, 'desc']]
});
});
</script>