1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <head>
- <link rel="stylesheet" href="/static/css/common.css"/>
- <link rel="stylesheet" href="/static/layui/css/layui.css" media="all"/>
- <script type="text/javascript" src="/static/layui/layui.js"></script>
- <script type="text/javascript" src="/static/js/jquery.min.js"></script>
- <script type="text/javascript" src="/static/js/template.js"></script>
- <style type="text/css">
- .layout_dialog {
- background: linear-gradient(39deg, #081531 0%, #233d76 100%);
- overflow: hidden;
- outline: 0;
- border-radius: 2px;
- position: fixed !important;
- z-index: 10000;
- color: #B9E3FF;
- border: 1px solid #62A9FF;
- display: none;
- left: 50%;
- top: 50%;
- }
- .layout_close {
- background-image: url(/static/images/btn_close.png);
- width: 14px;
- height: 14px;
- float: right;
- background-repeat: no-repeat;
- margin: 12px 15px 0 0;
- cursor: pointer;
- }
- .person_info_title {
- float: left;
- width: 100%;
- height: 3rem;
- line-height: 3rem;
- background-color: rgb(29, 38, 71);
- text-align: center;
- color: #fff;
- letter-spacing: 1px;
- font-size: 1rem;
- }
- .clearn {
- background: #000000 !important;
- opacity: 0.7;
- width: 100%;
- height: 100%;
- z-index: 102;
- position: absolute;
- left: 0;
- top: 0;
- line-height: 0;
- font-size: 0;
- overflow: hidden;
- display: none;
- }
- </style>
- </head>
- <div class="layui-form" lay-filter="example" style="margin:20px auto 0 auto;width:93%;" id="add_container">
- <div class="layui-row" style="background-color: #f2f2f2;">
- <table id="otherdata" lay-filter="otherdata" style="width: 100%;text-align: center;line-height: 2.5rem;">
- <thead style="font-weight: bold;font-size: 1rem;color: #aa8989;border-bottom: 1px solid #e1d4d4;">
- <tr><td width="20%">用户名</td><td width="10%">操作IP</td><td width="10%">操作类型</td><td width="20%">事件类型</td><td width="30%">操作时间</td><td width="10%">操作次数</td></tr>
- </thead>
- <tbody style="color: #999;background-color: #fdfafa;line-height: 1.5rem;">
-
- </tbody>
- </table>
- </div>
- </div>
- <script type="text/html" id="data_tpl">
- {{each data}}
- <tr>
- <td>{{$value.staff}}</td><td>{{$value.ip}}</td><td>{{$value.logtypename}}</td><td>{{$value.eventtypename}}</td><td>{{$value.dt}}</td><td>{{$value.num}}</td>
- </tr>
- {{/each}}
- </script>
- <script type="text/javascript">
- $(document).ready(function () {
- var startdate=parent.$("#text_startdate").val();
- var enddate=parent.$("#text_startdate").val();
- layui.use(['layer', 'form'], function () {
- parent.$.getJSON("/api/log/datastat",{"startdate":startdate,"enddate":enddate},function(jsodnata){
- if(jsodnata.code!=0){
- layer.msg(jsodnata.msg);
- return;
- }
- $("#otherdata>tbody").html(template('data_tpl',jsodnata));
- });
- });
- });
- </script>
|