新增牌照房统计字段
This commit is contained in:
@@ -21,7 +21,8 @@
|
||||
<button id="btnSearch" class="btn btn-sm btn-primary">查询</button>
|
||||
<button id="btnExport" class="btn btn-sm btn-primary">总计导出</button>
|
||||
<button id="btnExportByDate" class="btn btn-sm btn-primary">按天导出</button>
|
||||
|
||||
<button id="btnToday" class="btn btn-sm btn-default">今日</button>
|
||||
<button id="btnWeek" class="btn btn-sm btn-default">本周</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -64,6 +65,11 @@ export default {
|
||||
{ field: 'normalGiftAmount', title: '普通礼物总额', align: 'center', width: '5%' },
|
||||
{ field: 'backpackGiftUv', title: '背包送礼UV(送礼人数)', align: 'center', width: '5%' },
|
||||
{ field: 'backpackGiftAmount', title: '背包礼物总额', align: 'center', width: '5%' },
|
||||
{ field: 'hour', title: '开厅时长(h)', align: 'center', width: '5%' },
|
||||
{ field: 'newUserInRoomNum', title: '新用户进房人数', align: 'center', width: '5%' },
|
||||
{ field: 'newUserSendGiftNum', title: '新用户送礼人数', align: 'center', width: '5%' },
|
||||
{ field: 'newUserSendGiftAmount', title: '新用户送礼总额', align: 'center', width: '5%' },
|
||||
{ field: 'newUserRetained', title: '新用户进房次留', align: 'center', width: '5%' },
|
||||
],
|
||||
undefinedText: "-",
|
||||
cache: false,
|
||||
@@ -114,6 +120,19 @@ export default {
|
||||
$('#btnSearch').on('click', function () {
|
||||
TableHelper.doRefresh('#table');
|
||||
});
|
||||
$('#btnToday').on('click', function () {
|
||||
const startTime = new Date(new Date().setHours(0, 0, 0, 0));
|
||||
const endTime = new Date(new Date().setHours(23, 59, 59, 0));
|
||||
$('#qStartDate').val(formatTime(startTime));
|
||||
$('#qEndDate').val(formatTime(endTime));
|
||||
});
|
||||
$('#btnWeek').on('click', function () {
|
||||
const today = new Date(new Date().setHours(0, 0, 0, 0));
|
||||
const startTime = new Date(today.getTime() - 7 * 24 * 60 * 60 * 1000);
|
||||
const endTime = new Date(new Date().setHours(23, 59, 59, 0));
|
||||
$('#qStartDate').val(formatTime(startTime));
|
||||
$('#qEndDate').val(formatTime(endTime));
|
||||
});
|
||||
});
|
||||
function formatTime(val) {
|
||||
if (val) {
|
||||
|
Reference in New Issue
Block a user