123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- <!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 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/daily";
- $(function() {
- var today = new Date();
- $("#startTime").val(today.Format("yyyy-MM-dd"));
- $("#endTime").val(today.Format("yyyy-MM-dd"));
- var options = {
- url: prefix + "/list",
- modalName: "每日报表",
- height: $(window).height()-120,
- columns: [
- {
- field: 'str1',
- title: '时间'
- },
- {
- field: 'str2',
- title: '新注册人数'
- },
- {
- field: 'str3',
- title: '邀请注册人数',
- align : 'center'
- },
- {
- field: 'str4',
- title: '新充值人数',
- align : 'center'
- },
- {
- field: 'str5',
- title: '新充值金额'
- },
- {
- field: 'str6',
- title: '老用户活跃人数',
- align : 'center'
- },
- {
- field: 'str7',
- title: '老用户充值人数',
- align : 'center'
- },
- {
- field: 'str8',
- title: '老用户充值金额'
- },
- {
- field: 'str9',
- title: '钻石兑金币人数',
- align : 'center'
- },
- {
- field: 'str10',
- title: '钻石兑金币金额',
- align : 'center'
- },
- {
- field: 'str11',
- title: '钻石提现人数'
- },
- {
- field: 'str12',
- title: '钻石提现金额',
- align : 'center'
- },
- {
- field: 'str13',
- title: '红包提现人数',
- align : 'center'
- },
- {
- field: 'str14',
- title: '红包提现金额'
- },
- {
- field: 'str15',
- title: '新用户充值人数(8元)',
- align : 'center'
- },
- {
- field: 'str16',
- title: '新用户充值人数(9-48元)',
- align : 'center'
- },
- {
- field: 'str17',
- title: '新用户充值人数(49-98元)'
- },
- {
- field: 'str18',
- title: '新用户充值人数(99-198)元',
- align : 'center'
- },
- {
- field: 'str19',
- title: '新用户充值人数(199-498)元',
- align : 'center'
- },
- {
- field: 'str20',
- title: '新用户充值人数(499元--)'
- },
- {
- field: 'str21',
- title: '新用户充值金额(8元)',
- align : 'center'
- },
- {
- field: 'str22',
- title: '新用户充值金额(9-48元)',
- align : 'center'
- },
- {
- field: 'str23',
- title: '新用户充值金额(49-98元)'
- },
- {
- field: 'str24',
- title: '新用户充值金额(99-198)元',
- align : 'center'
- },
- {
- field: 'str25',
- title: '新用户充值金额(199-498)元',
- align : 'center'
- },
- {
- field: 'str26',
- title: '新用户充值金额(499元--)'
- },
- {
- field: 'str27',
- title: '老用户充值人数(8元)',
- align : 'center'
- },
- {
- field: 'str28',
- title: '老用户充值人数(9-48元)',
- align : 'center'
- },
- {
- field: 'str29',
- title: '老用户充值人数(49-98元)'
- },
- {
- field: 'str30',
- title: '老用户充值人数(99-198)元',
- align : 'center'
- },
- {
- field: 'str31',
- title: '老用户充值人数(199-498)元',
- align : 'center'
- },
- {
- field: 'str32',
- title: '老用户充值人数(499元--)',
- align : 'center'
- },
- {
- field: 'str33',
- title: '老用户充值金额(8元)',
- align : 'center'
- },
- {
- field: 'str34',
- title: '老用户充值金额(9-48元)',
- align : 'center'
- },
- {
- field: 'str35',
- title: '老用户充值金额(49-98元)',
- align : 'center'
- },
- {
- field: 'str36',
- title: '老用户充值金额(99-198)元',
- align : 'center'
- },
- {
- field: 'str37',
- title: '老用户充值金额(199-498)元',
- align : 'center'
- },
- {
- field: 'str38',
- title: '老用户充值金额(499元--)',
- align : 'center'
- },
- {
- field: 'str39',
- title: '宝箱人数',
- align : 'center'
- },
- {
- field: 'str40',
- title: '总投入',
- align : 'center'
- },
- {
- field: 'str41',
- title: '总抽中',
- align : 'center'
- },
- {
- field: 'str42',
- title: '官方赠送金币',
- align : 'center'
- },
- {
- field: 'str43',
- title: '活动奖励金币',
- align : 'center'
- },
- {
- field: 'str44',
- 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>
|