|
@@ -0,0 +1,80 @@
|
|
|
|
+<!DOCTYPE html>
|
|
|
|
+<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
|
|
|
+<head>
|
|
|
|
+ <th:block th:include="include :: header('查询统计')" />
|
|
|
|
+ <th:block th:include="include :: bootstrap-select-css" />
|
|
|
|
+</head>
|
|
|
|
+<body class="gray-bg">
|
|
|
|
+ <div class="container-div">
|
|
|
|
+ <div class="row">
|
|
|
|
+ <div class="col-sm-12 search-collapse">
|
|
|
|
+ <form id="operlog-form">
|
|
|
|
+ <div class="select-list">
|
|
|
|
+ <ul>
|
|
|
|
+ <li class="select-time">
|
|
|
|
+ <label>查询时间: </label>
|
|
|
|
+ <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
|
|
|
|
+ <span>-</span>
|
|
|
|
+ <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
|
|
|
|
+ </li>
|
|
|
|
+ <li>
|
|
|
|
+ <label>区间:</label>
|
|
|
|
+ <select name="params[format]">
|
|
|
|
+ <option th:text="年" th:value="'%Y'"></option>
|
|
|
|
+ <option th:text="月" th:value="'%Y-%m'"></option>
|
|
|
|
+ <option th:text="日" th:value="'%Y-%m-%d'"></option>
|
|
|
|
+ <option th:text="时" th:value="'%Y-%m-%d %H'"></option>
|
|
|
|
+ </select>
|
|
|
|
+ </li>
|
|
|
|
+ <li>
|
|
|
|
+ <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
|
|
|
+ <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <div class="col-sm-12 select-table table-striped">
|
|
|
|
+ <table id="bootstrap-table"></table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <th:block th:include="include :: footer" />
|
|
|
|
+ <th:block th:include="include :: bootstrap-select-js" />
|
|
|
|
+ <script th:inline="javascript">
|
|
|
|
+ var prefix = ctx + "schooldistrict/querystatistics";
|
|
|
|
+
|
|
|
|
+ $(function() {
|
|
|
|
+ var options = {
|
|
|
|
+ url: prefix + "/list",
|
|
|
|
+ exportUrl: prefix + "/export",
|
|
|
|
+ sortName: "time",
|
|
|
|
+ sortOrder: "desc",
|
|
|
|
+ modalName: "查询统计",
|
|
|
|
+ escape: true,
|
|
|
|
+ showPageGo: true,
|
|
|
|
+ rememberSelected: true,
|
|
|
|
+ columns: [{
|
|
|
|
+ field: 'state',
|
|
|
|
+ checkbox: true
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ field: 'ip',
|
|
|
|
+ title: '地址'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ field: 'time',
|
|
|
|
+ title: '时间'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ field: 'count',
|
|
|
|
+ title: '查询次数'
|
|
|
|
+ }]
|
|
|
|
+ };
|
|
|
|
+ $.table.init(options);
|
|
|
|
+ });
|
|
|
|
+ </script>
|
|
|
|
+</body>
|
|
|
|
+</html>
|