logApiList.html 3.0 KB
<!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>