123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <!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('金币赠送记录')" />
- </head>
- <body class="gray-bg">
- <div class="container-div">
- <div class="row">
- <div class="col-sm-12 search-collapse">
- <form id="role-form">
- <div class="select-list">
- <ul>
- <li>
- 平台:<select id="osType" name="osType" th:with="type=${@dict.getType('os_type')}">
- <option value="">所有</option>
- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
- </select>
- </li>
- <li>
- 性别:<select id="gender" name="gender" th:with="type=${@dict.getType('sys_user_sex')}">
- <option value="">所有</option>
- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
- </select>
- </li>
- <li>
- 渠道:<select name="channel" id="channel" th:with="type=${homeChannelList}">
- <option value=''>全部</option>
- <option th:each="homeChannel : ${type}" th:text="${homeChannel.name}" th:value="${homeChannel.channel}"></option>
- </select>
- </li>
- <li>
- 显示数据:<select id="showData" name="showData" th:with="type=${@dict.getType('show_data_type')}">
- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
- </select>
- </li>
- <li>
- APP:<select id="app" name="app" th:with="type=${@dict.getType('app_type')}">
- <option value="">所有</option>
- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
- </select>
- </li>
- <li class="select-time">
- <label>创建时间: </label>
- <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="beginTime"/>
- <span>-</span>
- <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="endTime"/>
- </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" style="overflow:scroll;">
- <table id="bootstrap-table" data-mobile-responsive="false" style="min-width:1500px;"></table>
- </div>
- </div>
- </div>
- <th:block th:include="include :: footer" />
- <script th:inline="javascript">
- var prefix = ctx + "report/output";
- $(function() {
- var today = new Date();
- today.setDate(today.getDate() - 6);
- $("#startTime").val(today.Format("yyyy-MM-dd"));
- $("#endTime").val(new Date().Format("yyyy-MM-dd"));
- var options = {
- url: prefix + "/list",
- modalName: "产值报表",
- height: $(window).height()-120,
- columns: [
- {
- field: 'signDate',
- title: '时间'
- },
- {
- field: 'signNum',
- title: '注册人数'
- },
- {
- field: 'firstNum',
- title: '第一天',
- align : 'center'
- },
- {
- field: 'secondNum',
- title: '第二天',
- align : 'center'
- },
- {
- field: 'thirdNum',
- title: '第三天',
- align : 'center'
- },
- {
- field: 'fourthNum',
- title: '第四天',
- align : 'center'
- },
- {
- field: 'fifthNum',
- title: '第五天',
- align : 'center'
- },
- {
- field: 'sixthNum',
- title: '第六天',
- align : 'center'
- },
- {
- field: 'seventhNum',
- title: '第七天',
- align : 'center'
- },
- {
- field: 'eighthNum',
- title: '第八天',
- align : 'center'
- },
- {
- field: 'ninthNum',
- title: '第九天',
- align : 'center'
- },
- {
- field: 'tenthNum',
- title: '第十天',
- align : 'center'
- },
- {
- field: 'eleventhNum',
- title: '第十一天',
- align : 'center'
- },
- {
- field: 'twelfthNum',
- title: '第十二天',
- align : 'center'
- },
- {
- field: 'thirteenthNum',
- title: '第十三天',
- align : 'center'
- },
- {
- field: 'fourteenthNum',
- title: '第十四天',
- align : 'center'
- },
- {
- field: 'sumNum',
- title: '总计',
- align : 'center'
- }]
- };
- $.table.init(options);
- });
- Date.prototype.Format = function (fmt) { //author: meizz
- var o = {
- "M+": this.getMonth() + 1, //月份
- "d+": this.getDate(), //日
- "H+": this.getHours(), //小时
- "m+": this.getMinutes(), //分
- "s+": this.getSeconds(), //秒
- "q+": Math.floor((this.getMonth() + 3) / 3), //季度
- "S": this.getMilliseconds() //毫秒
- };
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
- for (var k in o)
- if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
- return fmt;
- };
- </script>
- </body>
- </html>
|