daily.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
  3. <head>
  4. <th:block th:include="include :: header('每日报表')" />
  5. </head>
  6. <body class="gray-bg">
  7. <div class="container-div">
  8. <div class="row">
  9. <div class="col-sm-12 search-collapse">
  10. <form id="role-form">
  11. <div class="select-list">
  12. <ul>
  13. <li class="select-time">
  14. <label>时间: </label>
  15. <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="beginTime"/>
  16. <span>-</span>
  17. <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime"/>
  18. </li>
  19. <li>
  20. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search();"><i class="fa fa-search"></i>&nbsp;搜索</a>
  21. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  22. </li>
  23. </ul>
  24. </div>
  25. </form>
  26. </div>
  27. <div class="col-sm-12 select-table table-striped" style="overflow:scroll;">
  28. <table id="bootstrap-table" data-mobile-responsive="false" style="min-width:1500px;"></table>
  29. </div>
  30. </div>
  31. </div>
  32. <th:block th:include="include :: footer" />
  33. <script th:inline="javascript">
  34. var prefix = ctx + "report/daily";
  35. $(function() {
  36. var today = new Date();
  37. $("#startTime").val(today.Format("yyyy-MM-dd"));
  38. $("#endTime").val(today.Format("yyyy-MM-dd"));
  39. var options = {
  40. url: prefix + "/list",
  41. modalName: "每日报表",
  42. height: $(window).height()-120,
  43. columns: [
  44. {
  45. field: 'str1',
  46. title: '时间'
  47. },
  48. {
  49. field: 'str2',
  50. title: '新注册人数'
  51. },
  52. {
  53. field: 'str3',
  54. title: '邀请注册人数',
  55. align : 'center'
  56. },
  57. {
  58. field: 'str4',
  59. title: '新充值人数',
  60. align : 'center'
  61. },
  62. {
  63. field: 'str5',
  64. title: '新充值金额'
  65. },
  66. {
  67. field: 'str6',
  68. title: '老用户活跃人数',
  69. align : 'center'
  70. },
  71. {
  72. field: 'str7',
  73. title: '老用户充值人数',
  74. align : 'center'
  75. },
  76. {
  77. field: 'str8',
  78. title: '老用户充值金额'
  79. },
  80. {
  81. field: 'str9',
  82. title: '钻石兑金币人数',
  83. align : 'center'
  84. },
  85. {
  86. field: 'str10',
  87. title: '钻石兑金币金额',
  88. align : 'center'
  89. },
  90. {
  91. field: 'str11',
  92. title: '钻石提现人数'
  93. },
  94. {
  95. field: 'str12',
  96. title: '钻石提现金额',
  97. align : 'center'
  98. },
  99. {
  100. field: 'str13',
  101. title: '红包提现人数',
  102. align : 'center'
  103. },
  104. {
  105. field: 'str14',
  106. title: '红包提现金额'
  107. },
  108. {
  109. field: 'str15',
  110. title: '新用户充值人数(8元)',
  111. align : 'center'
  112. },
  113. {
  114. field: 'str16',
  115. title: '新用户充值人数(9-48元)',
  116. align : 'center'
  117. },
  118. {
  119. field: 'str17',
  120. title: '新用户充值人数(49-98元)'
  121. },
  122. {
  123. field: 'str18',
  124. title: '新用户充值人数(99-198)元',
  125. align : 'center'
  126. },
  127. {
  128. field: 'str19',
  129. title: '新用户充值人数(199-498)元',
  130. align : 'center'
  131. },
  132. {
  133. field: 'str20',
  134. title: '新用户充值人数(499元--)'
  135. },
  136. {
  137. field: 'str21',
  138. title: '新用户充值金额(8元)',
  139. align : 'center'
  140. },
  141. {
  142. field: 'str22',
  143. title: '新用户充值金额(9-48元)',
  144. align : 'center'
  145. },
  146. {
  147. field: 'str23',
  148. title: '新用户充值金额(49-98元)'
  149. },
  150. {
  151. field: 'str24',
  152. title: '新用户充值金额(99-198)元',
  153. align : 'center'
  154. },
  155. {
  156. field: 'str25',
  157. title: '新用户充值金额(199-498)元',
  158. align : 'center'
  159. },
  160. {
  161. field: 'str26',
  162. title: '新用户充值金额(499元--)'
  163. },
  164. {
  165. field: 'str27',
  166. title: '老用户充值人数(8元)',
  167. align : 'center'
  168. },
  169. {
  170. field: 'str28',
  171. title: '老用户充值人数(9-48元)',
  172. align : 'center'
  173. },
  174. {
  175. field: 'str29',
  176. title: '老用户充值人数(49-98元)'
  177. },
  178. {
  179. field: 'str30',
  180. title: '老用户充值人数(99-198)元',
  181. align : 'center'
  182. },
  183. {
  184. field: 'str31',
  185. title: '老用户充值人数(199-498)元',
  186. align : 'center'
  187. },
  188. {
  189. field: 'str32',
  190. title: '老用户充值人数(499元--)',
  191. align : 'center'
  192. },
  193. {
  194. field: 'str33',
  195. title: '老用户充值金额(8元)',
  196. align : 'center'
  197. },
  198. {
  199. field: 'str34',
  200. title: '老用户充值金额(9-48元)',
  201. align : 'center'
  202. },
  203. {
  204. field: 'str35',
  205. title: '老用户充值金额(49-98元)',
  206. align : 'center'
  207. },
  208. {
  209. field: 'str36',
  210. title: '老用户充值金额(99-198)元',
  211. align : 'center'
  212. },
  213. {
  214. field: 'str37',
  215. title: '老用户充值金额(199-498)元',
  216. align : 'center'
  217. },
  218. {
  219. field: 'str38',
  220. title: '老用户充值金额(499元--)',
  221. align : 'center'
  222. },
  223. {
  224. field: 'str39',
  225. title: '宝箱人数',
  226. align : 'center'
  227. },
  228. {
  229. field: 'str40',
  230. title: '总投入',
  231. align : 'center'
  232. },
  233. {
  234. field: 'str41',
  235. title: '总抽中',
  236. align : 'center'
  237. },
  238. {
  239. field: 'str42',
  240. title: '官方赠送金币',
  241. align : 'center'
  242. },
  243. {
  244. field: 'str43',
  245. title: '活动奖励金币',
  246. align : 'center'
  247. },
  248. {
  249. field: 'str44',
  250. title: '公款充值金币',
  251. align : 'center'
  252. }]
  253. };
  254. $.table.init(options);
  255. });
  256. Date.prototype.Format = function (fmt) { //author: meizz
  257. var o = {
  258. "M+": this.getMonth() + 1, //月份
  259. "d+": this.getDate(), //日
  260. "H+": this.getHours(), //小时
  261. "m+": this.getMinutes(), //分
  262. "s+": this.getSeconds(), //秒
  263. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  264. "S": this.getMilliseconds() //毫秒
  265. };
  266. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  267. for (var k in o)
  268. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  269. return fmt;
  270. };
  271. </script>
  272. </body>
  273. </html>