123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <!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="btn-group-sm" id="toolbar" role="group">
- <a class="btn btn-success" onclick="$.table.exportExcel()" shiro:hasPermission="report:overage:excel">
- <i class="fa fa-cloud-download"></i> 导出Excel
- </a>
- </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/overage";
- $(function() {
- var today = new Date();
- $("#startTime").val(today.Format("yyyy-MM-dd"));
- $("#endTime").val(today.Format("yyyy-MM-dd"));
- var options = {
- url: prefix + "/list",
- exportUrl: prefix + "/export",
- modalName: "余额报表",
- height: $(window).height()-120,
- columns: [
- {
- field: 'createDate',
- title: '时间'
- },
- {
- field: 'goldSum',
- title: '金币总额'
- },
- {
- field: 'diamondSum',
- title: '钻石总额',
- align : 'center'
- },
- {
- field: 'giftNomalDiamondSum',
- title: '普通礼物钻石',
- align : 'center'
- },
- {
- field: 'giftDrawDiamondSum',
- 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>
|