From 66274e03aca75182e878b17052461c3a703543bf Mon Sep 17 00:00:00 2001 From: wangshuai Date: Sat, 10 Aug 2024 09:25:19 +0800 Subject: [PATCH] =?UTF-8?q?1;=E9=BB=98=E8=AE=A4=E6=97=B6=E9=97=B4=E5=89=8D?= =?UTF-8?q?=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/point/consume/index.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ruoyi-ui/src/views/point/consume/index.vue b/ruoyi-ui/src/views/point/consume/index.vue index 661a03b..80e78b0 100644 --- a/ruoyi-ui/src/views/point/consume/index.vue +++ b/ruoyi-ui/src/views/point/consume/index.vue @@ -169,7 +169,7 @@ export default { platform: null, updateType: null, integralUpdateNum: null, - integralUpdateTime: new Date(), + integralUpdateTime: null, integralBalance: null, agentRemark: null, }, @@ -181,9 +181,16 @@ export default { }; }, created() { + this.queryParams.integralUpdateTime = this.formatDate(new Date()); this.getList(); }, methods: { + formatDate(date) { + const year = date.getFullYear(); + const month = (date.getMonth() + 1).toString().padStart(2, '0'); + const day = date.getDate().toString().padStart(2, '0'); + return `${year}-${month}-${day}`; + }, /** 查询积分变更记录列表 */ getList() { this.loading = true;