From 7159238b5e56cc704a1fb9f783e4ae80ba619268 Mon Sep 17 00:00:00 2001
From: liaozetao <1107136310@qq.com>
Date: Thu, 21 Dec 2023 11:55:30 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=89=8C=E7=85=A7=E6=88=BF?=
=?UTF-8?q?=E7=BB=9F=E8=AE=A1=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/statistic/PermitRoomStatsView.vue | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/src/views/statistic/PermitRoomStatsView.vue b/src/views/statistic/PermitRoomStatsView.vue
index 62d46b8..06c90c1 100644
--- a/src/views/statistic/PermitRoomStatsView.vue
+++ b/src/views/statistic/PermitRoomStatsView.vue
@@ -21,7 +21,8 @@
-
+
+
@@ -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) {