logininfor.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org"
  3. xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
  4. <meta charset="utf-8">
  5. <head th:include="include :: header"></head>
  6. <body class="gray-bg">
  7. <div class="container-div">
  8. <div class="row">
  9. <div class="col-sm-12 select-info">
  10. <form id="logininfor-form">
  11. <div class="select-list">
  12. <ul>
  13. <li>
  14. <label>登录地址:</label><input type="text" name="ipaddr"/>
  15. </li>
  16. <li>
  17. <label>登录名称:</label><input type="text" name="loginName"/>
  18. </li>
  19. <li>
  20. <label>登录状态:</label><select name="status" th:with="type=${@dict.getType('sys_common_status')}">
  21. <option value="">所有</option>
  22. <option th:each="e : ${type}" th:text="${e['dictLabel']}" th:value="${e['dictValue']}"></option>
  23. </select>
  24. </li>
  25. <li class="time">
  26. <label>登录时间: </label>
  27. <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
  28. <span>-</span>
  29. <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endTime]"/>
  30. </li>
  31. <li>
  32. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
  33. <a class="btn btn-success btn-rounded btn-sm" onclick="$.table.exportExcel()" shiro:hasPermission="monitor:logininfor:export"><i class="fa fa-download"></i>&nbsp;导出</a>
  34. </li>
  35. </ul>
  36. </div>
  37. </form>
  38. </div>
  39. <div class="btn-group hidden-xs" id="toolbar" role="group">
  40. <a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.batRemove()" shiro:hasPermission="monitor:logininfor:remove">
  41. <i class="fa fa-trash-o"></i> 删除
  42. </a>
  43. </div>
  44. <div class="col-sm-12 select-info table-striped">
  45. <table id="bootstrap-table" data-mobile-responsive="true"></table>
  46. </div>
  47. </div>
  48. </div>
  49. <div th:include="include :: footer"></div>
  50. <script th:inline="javascript">
  51. var datas = [[${@dict.getType('sys_common_status')}]];
  52. var prefix = ctx + "monitor/logininfor"
  53. $(function() {
  54. var options = {
  55. url: prefix + "/list",
  56. removeUrl: prefix + "/remove",
  57. exportUrl: prefix + "/export",
  58. sortName: "loginTime",
  59. sortOrder: "desc",
  60. search: false,
  61. showExport: false,
  62. columns: [{
  63. checkbox: true
  64. },
  65. {
  66. field: 'infoId',
  67. title: '访问编号'
  68. },
  69. {
  70. field: 'loginName',
  71. title: '登录名称',
  72. sortable: true
  73. },
  74. {
  75. field: 'ipaddr',
  76. title: '登录地址'
  77. },
  78. {
  79. field: 'loginLocation',
  80. title: '登录地点'
  81. },
  82. {
  83. field: 'browser',
  84. title: '浏览器'
  85. },
  86. {
  87. field: 'os',
  88. title: '操作系统'
  89. },
  90. {
  91. field: 'status',
  92. title: '登录状态',
  93. align: 'center',
  94. formatter: function(value, row, index) {
  95. return $.table.selectDictLabel(datas, value);
  96. }
  97. },
  98. {
  99. field: 'msg',
  100. title: '操作信息'
  101. },
  102. {
  103. field: 'loginTime',
  104. title: '登录时间',
  105. sortable: true
  106. }]
  107. };
  108. $.table.init(options);
  109. });
  110. </script>
  111. </body>
  112. </html>