You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
3.9 KiB
137 lines
3.9 KiB
<#include "../../_include/_t.ftl"/>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
<#include "../../_include/_h.ftl"/>
|
|
<#include "../../_include/_l.ftl"/>
|
|
<#include "../../_include/_j.ftl"/>
|
|
<#include "../../_include/_z.ftl"/>
|
|
<#include "../../_include/_e.ftl"/>
|
|
<#include "../../_include/admin/_c.ftl"/>
|
|
</head>
|
|
<body>
|
|
<div class="page_div">
|
|
<blockquote class="layui-elem-quote">${title}</blockquote>
|
|
<div class="layui-bg-gray page_tools">
|
|
<div class="layui-inline layui-form" style="width:110px;" id="log_appId_tips">
|
|
<select id="logType" lay-filter="log_logType_filter">
|
|
<option value="0">全部</option>
|
|
<#list logType as dic>
|
|
<option value="${dic.v }">${dic.t }</option>
|
|
</#list>
|
|
</select>
|
|
</div>
|
|
<div class="layui-inline" style="width:130px;">
|
|
<input class="layui-input" id="logAddr" placeholder="城市(支持模糊)" autocomplete="off"/>
|
|
</div>
|
|
<div class="layui-inline" style="width:130px;">
|
|
<input class="layui-input" id="logUseruid" placeholder="账号(支持模糊)" autocomplete="off"/>
|
|
</div>
|
|
<div class="layui-input-inline" style="width:100px;" id="taski1_beginTime_tips">
|
|
<input class="layui-input" type="text" id="logTime" value="" placeholder="操作时间" autocomplete="off" style="cursor:pointer;"/>
|
|
</div>
|
|
<button id="log_queryBtn" class="layui-btn layui-btn-normal"><i class="layui-icon"></i>查询</button>
|
|
<button id="log_resetBtn" class="layui-btn layui-btn-normal"><i class="layui-icon"></i>重置</button>
|
|
<button id="log_ipBtn" class="layui-btn"><i class="layui-icon"></i>IP地址分析</button>
|
|
</div>
|
|
<table id="log_dataTable" lay-filter="log_dataTable_filter" lay-size="sm"></table>
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
layuiplus.on_w_1(function(){
|
|
layuiplus.init(1);
|
|
//定义窗口变量============
|
|
var log_addWin = null;
|
|
var log_updateWin = null;
|
|
//数据表格=================================================================================
|
|
var log_dataTable = table.render({
|
|
elem:"#log_dataTable",
|
|
url:"${ctx}/admin/sys/log/list",
|
|
method:"get",
|
|
cols:[[
|
|
{field:"logTypename",title:"日志类型",unresize:true,width:160},
|
|
{field:"logUseruid",title:"操作账号",unresize:true,width:160},
|
|
{field:"logTime",title:"操作时间",unresize:true,width:160},
|
|
{field:"logIp",title:"用户IP",unresize:true,width:160},
|
|
{field:"logAddr",title:"IP所在城市",unresize:true,width:200},
|
|
{field:"logContent",title:"操作内容",unresize:true}
|
|
/*
|
|
{title:"操作 ",unresize:true,align:"left",templet:function(d){
|
|
var opt = "<a class=\"layui-btn layui-btn-xs\" lay-event=\"opt_copy\">复制账号</a> ";
|
|
return opt;
|
|
}}
|
|
*/
|
|
]],
|
|
page:{
|
|
layout:["prev","page","next","skip","count","limit"],
|
|
limits:[10,20,30]
|
|
//curr:1,//设定初始页
|
|
//groups:5,//连续页码
|
|
//first:"首页",//不设置为1
|
|
//last:"尾页"//不设置为总页数
|
|
},
|
|
text:{none:"暂无数据,请点击查询。"}
|
|
});
|
|
//数据表格每行数据操作监听=================================================================
|
|
/*
|
|
table.on("tool(log_dataTable_filter)",function(row){//row.data row.event
|
|
if(row.event == "opt_copy"){
|
|
}
|
|
});
|
|
*/
|
|
|
|
$("#log_queryBtn").click(function(){
|
|
log_dataTable.reload({
|
|
url:"${ctx}/admin/sys/log/list",
|
|
where:{
|
|
logType:$("#logType").val(),
|
|
logUseruid:$("#logUseruid").val(),
|
|
logTime:$("#logTime").val(),
|
|
logAddr:$("#logAddr").val()
|
|
}
|
|
});
|
|
});
|
|
$("#log_resetBtn").click(function(){
|
|
$("#logUseruid").val("");
|
|
$("#logTime").val("");
|
|
$("#logAddr").val("");
|
|
$("#logType").val("");
|
|
log_dataTable.reload({
|
|
url:"${ctx}/admin/sys/log/list",
|
|
where:{
|
|
logType:"",
|
|
logUseruid:"",
|
|
logTime:"",
|
|
logAddr:""
|
|
}
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//时间控制
|
|
ldate.render({
|
|
elem:"#logTime"
|
|
});
|
|
|
|
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|