output.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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>
  14. 平台:<select id="osType" name="osType" th:with="type=${@dict.getType('os_type')}">
  15. <option value="">所有</option>
  16. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  17. </select>
  18. </li>
  19. <li>
  20. 性别:<select id="gender" name="gender" th:with="type=${@dict.getType('sys_user_sex')}">
  21. <option value="">所有</option>
  22. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  23. </select>
  24. </li>
  25. <li>
  26. 渠道:<select name="channel" id="channel" th:with="type=${homeChannelList}">
  27. <option value=''>全部</option>
  28. <option th:each="homeChannel : ${type}" th:text="${homeChannel.name}" th:value="${homeChannel.channel}"></option>
  29. </select>
  30. </li>
  31. <li>
  32. 显示数据:<select id="showData" name="showData" th:with="type=${@dict.getType('show_data_type')}">
  33. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  34. </select>
  35. </li>
  36. <li>
  37. APP:<select id="app" name="app" th:with="type=${@dict.getType('app_type')}">
  38. <option value="">所有</option>
  39. <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
  40. </select>
  41. </li>
  42. <li class="select-time">
  43. <label>创建时间: </label>
  44. <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="beginTime"/>
  45. <span>-</span>
  46. <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime"/>
  47. </li>
  48. <li>
  49. <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search();"><i class="fa fa-search"></i>&nbsp;搜索</a>
  50. <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
  51. </li>
  52. </ul>
  53. </div>
  54. </form>
  55. </div>
  56. <div class="col-sm-12 select-table table-striped" style="overflow:scroll;">
  57. <table id="bootstrap-table" data-mobile-responsive="false" style="min-width:1500px;"></table>
  58. </div>
  59. </div>
  60. </div>
  61. <th:block th:include="include :: footer" />
  62. <script th:inline="javascript">
  63. var prefix = ctx + "report/output";
  64. $(function() {
  65. var today = new Date();
  66. today.setDate(today.getDate() - 6);
  67. $("#startTime").val(today.Format("yyyy-MM-dd"));
  68. $("#endTime").val(new Date().Format("yyyy-MM-dd"));
  69. var options = {
  70. url: prefix + "/list",
  71. modalName: "产值报表",
  72. height: $(window).height()-120,
  73. columns: [
  74. {
  75. field: 'signDate',
  76. title: '时间'
  77. },
  78. {
  79. field: 'signNum',
  80. title: '注册人数'
  81. },
  82. {
  83. field: 'firstNum',
  84. title: '第一天',
  85. align : 'center'
  86. },
  87. {
  88. field: 'secondNum',
  89. title: '第二天',
  90. align : 'center'
  91. },
  92. {
  93. field: 'thirdNum',
  94. title: '第三天',
  95. align : 'center'
  96. },
  97. {
  98. field: 'fourthNum',
  99. title: '第四天',
  100. align : 'center'
  101. },
  102. {
  103. field: 'fifthNum',
  104. title: '第五天',
  105. align : 'center'
  106. },
  107. {
  108. field: 'sixthNum',
  109. title: '第六天',
  110. align : 'center'
  111. },
  112. {
  113. field: 'seventhNum',
  114. title: '第七天',
  115. align : 'center'
  116. },
  117. {
  118. field: 'eighthNum',
  119. title: '第八天',
  120. align : 'center'
  121. },
  122. {
  123. field: 'ninthNum',
  124. title: '第九天',
  125. align : 'center'
  126. },
  127. {
  128. field: 'tenthNum',
  129. title: '第十天',
  130. align : 'center'
  131. },
  132. {
  133. field: 'eleventhNum',
  134. title: '第十一天',
  135. align : 'center'
  136. },
  137. {
  138. field: 'twelfthNum',
  139. title: '第十二天',
  140. align : 'center'
  141. },
  142. {
  143. field: 'thirteenthNum',
  144. title: '第十三天',
  145. align : 'center'
  146. },
  147. {
  148. field: 'fourteenthNum',
  149. title: '第十四天',
  150. align : 'center'
  151. },
  152. {
  153. field: 'sumNum',
  154. title: '总计',
  155. align : 'center'
  156. }]
  157. };
  158. $.table.init(options);
  159. });
  160. Date.prototype.Format = function (fmt) { //author: meizz
  161. var o = {
  162. "M+": this.getMonth() + 1, //月份
  163. "d+": this.getDate(), //日
  164. "H+": this.getHours(), //小时
  165. "m+": this.getMinutes(), //分
  166. "s+": this.getSeconds(), //秒
  167. "q+": Math.floor((this.getMonth() + 3) / 3), //季度
  168. "S": this.getMilliseconds() //毫秒
  169. };
  170. if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
  171. for (var k in o)
  172. if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
  173. return fmt;
  174. };
  175. </script>
  176. </body>
  177. </html>