logApiList.html
3.0 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="zh">
#@header()
<body>
	<div>
		<ol class="breadcrumb">
			<li>
				<a>日志管理</a>
			</li>
			<li>
				<a style="color: gray;">/</a>
			</li>
			<li class="active">接口日志列表</li>
		</ol>
		<div style="margin-left: 10px;">
			<table>
				<tr>
					<td><input id="searchInput" class="form-control" type="text" placeholder="输入关键字"
							value="#(searchKey)" style="margin-left: 1px; width: 300px;" /></td>
					<td><button class="btn btn-success" onclick="onSearchAction()" style="margin-left: 5px;">搜索</button></td>
				</tr>
			</table>
		</div>
		<div style="margin: 10px;">
			<table class="table table-bordered table-advance table-hover">
				<thead>
					<tr>
						<th><input id="checkboxAll" value="" type="checkbox" /></th>
						<th>用户ID</th>
						<th style="min-width: 60px;">昵称</th>
						<th>接口</th>
						<th>参数</th>
						<th>时间</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					#for(log : dataList)
					<tr>
						<td><input id="checkbox_#(log.id)" value="#(log.id)" type="checkbox" /></td>
						<td style="font-size: 12px;">#(log.uid??)</td>
						<td style="font-size: 12px;">#(log.nickname??)</td>
						<td style="font-size: 12px;">#(log.actionKey??)</td>
						<td style="font-size: 12px;">#(log.params??)</td>
						<td style="font-size: 12px;">#date(log.createTime??,'yyyy-MM-dd HH:mm:ss')</td>
						<td>
							<button class="btn btn-primary" onclick="onDetailsAction(#(log.id))"
								style="font-size: 12px; display: none;">
								<i class="icon-eye-open"></i> 详情
							</button>
							<button class="btn btn-danger" onclick="onDeleteAction(#(log.id))" style="font-size: 12px;">
								<i class="icon-trash "></i> 删除
							</button>
						</td>
					</tr>
					#end
				</tbody>
			</table>
			#@page(contextPath+'/apiLog/list',pageNumber,totalPage,totalRow,searchKey,'','')
		</div>
	</div>
	<!-- Modal -->
	<div id="delModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
		aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
				<h3 id="modal-title">温馨提示</h3>
			</div>
			<div class="modal-body">
				<div class="control-group">
					<label class="control-label" id="deleteId" style="display: none;">-1</label>
					<label class="control-label" id="deleteTip">此操作将会删除所有和该日志相关的信息,是否继续删除?</label>
				</div>
			</div>
			<div class="modal-footer form-actions">
				<button class="btn btn-danger" onclick="onDeleteFromModal()">删除</button>
				<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
			</div>
		</div>
	</div>
	<!-- End Modal -->
	<script type="text/javascript" src="#(contextPath)/js/logApiList.js?ver=#(version)"></script>
	<script type="text/javascript">
		#if(flag)
			showTip('#(flag)');
		#end
	</script>
</body>
</html>