重置
diff --git a/gold-system/src/views/managerecharge/rate.vue b/gold-system/src/views/managerecharge/rate.vue
index 9d0aaf3..01df6af 100644
--- a/gold-system/src/views/managerecharge/rate.vue
+++ b/gold-system/src/views/managerecharge/rate.vue
@@ -97,6 +97,62 @@ const get = async function (val) {
// 在这里可以处理错误逻辑,比如显示错误提示等
}
}
+
+// 今天
+const getToday = function () {
+ const today = new Date();
+ const startDate = new Date(
+ today.getFullYear(),
+ today.getMonth(),
+ today.getDate()
+ );
+ const endDate = new Date(
+ today.getFullYear(),
+ today.getMonth(),
+ today.getDate() + 1
+ );
+ // value1!!value1!!lhl狗屎脑子
+ value1.value = [startDate, endDate];
+ console.log('value1', value1.value);
+ get();
+}
+// 昨天
+const getYesterday = function () {
+ const yesterday = new Date();
+ yesterday.setDate(yesterday.getDate() - 1);
+ const startDate = new Date(
+ yesterday.getFullYear(),
+ yesterday.getMonth(),
+ yesterday.getDate()
+ );
+ const endDate = new Date(
+ yesterday.getFullYear(),
+ yesterday.getMonth(),
+ yesterday.getDate() + 1
+ );
+ // 这个也是value1!!
+ value1.value = [startDate, endDate];
+ console.log('value1', value1.value);
+ get();
+}
+// 近7天
+const get7Days = function () {
+ const today = new Date();
+ const startDate = new Date(
+ today.getFullYear(),
+ today.getMonth(),
+ today.getDate() - 6
+ );
+ const endDate = new Date(
+ today.getFullYear(),
+ today.getMonth(),
+ today.getDate() + 1
+ );
+ // value1!!
+ value1.value = [startDate, endDate];
+ console.log('value1', value1.value);
+ get();
+}
// 搜索
const search = function () {
getObj.value.pageNum = 1
@@ -464,6 +520,9 @@ function handleInput(value) {
:size="size"
value-format="YYYY-MM-DD"
/>
+
今
+
昨
+
近7天
{
detailY.value.jwcode = detailY.value.jwcode.replace(/\s/g, '');
}
}
+// 今天
+const getToday = function () {
+ const today = moment()
+ const startDate = today.startOf('day').toDate()
+ const endDate = today.endOf('day').toDate()
+ getTime.value = [startDate, endDate]
+ search()
+}
+
+// 昨天
+const getYesterday = function () {
+ const yesterday = moment().subtract(1, 'day')
+ const startDate = yesterday.startOf('day').toDate()
+ const endDate = yesterday.endOf('day').toDate()
+ getTime.value = [startDate, endDate]
+ search()
+}
+// 近7天
+const get7Days = function () {
+ const startDate = moment().subtract(6, 'day').startOf('day').toDate()
+ const endDate = moment().endOf('day').toDate()
+ getTime.value = [startDate, endDate]
+ search()
+}
// 搜索
const search = function () {
trimJwCode();
@@ -559,8 +583,11 @@ const handleCurrentChange = function (val) {
range-separator="至"
start-placeholder="起始时间"
end-placeholder="结束时间"
- style="margin-right: 700px"
+ style="margin-right: 50px"
/>
+ 今
+ 昨
+ 近7天
导出Excel表格
重置
查询
From 23e2486ea80c2627f6c4bc73cfe887a18c633005 Mon Sep 17 00:00:00 2001
From: zry <18990852002@163.com>
Date: Wed, 30 Apr 2025 16:16:02 +0800
Subject: [PATCH 4/4] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=85=85=E5=80=BC?=
=?UTF-8?q?=E6=B6=88=E8=B4=B9=E6=98=8E=E7=BB=86=E7=9A=84excel=E7=9A=84?=
=?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
gold-system/src/views/recharge/allRecharge.vue | 285 +++++++++++++++++++++++--
1 file changed, 270 insertions(+), 15 deletions(-)
diff --git a/gold-system/src/views/recharge/allRecharge.vue b/gold-system/src/views/recharge/allRecharge.vue
index 574cfce..d61cea4 100644
--- a/gold-system/src/views/recharge/allRecharge.vue
+++ b/gold-system/src/views/recharge/allRecharge.vue
@@ -1,11 +1,16 @@
@@ -463,7 +669,7 @@ const handleSortChange = (column) => {
-
+
充值时间:
{
近7天
-
+
重置
查询
+
+ 导出excel
@@ -670,6 +878,53 @@ const handleSortChange = (column) => {
+
+
+
+
+
+ 你正在导出所有数据
+
+
+ 你正在导出以下数据
+
+ 活动名称:{{ rechargeVo.activityId || '' }}
+ 所属地区:{{ rechargeVo.area || '' }}
+
+ 充值时间:
+ {{ rechargeVo.startDate ? moment(rechargeVo.startDate).format('YYYY-MM-DD HH:mm:ss') : '无起始时间' }} 至 {{ rechargeVo.endDate ? moment(rechargeVo.endDate).format('YYYY-MM-DD HH:mm:ss') : '无结束时间' }}
+
+
+
+
+
+
+
+
+
+
+
+
+