From 6967393ce9d9199c1bc17add92e51bf93e99a5f3 Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Wed, 19 Jun 2024 16:50:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8A=95=E8=B5=84=E6=94=B6=E7=9B=8A?= =?UTF-8?q?=EF=BC=8C=E7=95=8C=E9=9D=A2=E4=BC=98=E5=8C=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/invest/investDealAnalysis/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/invest/investDealAnalysis/index.vue b/src/views/invest/investDealAnalysis/index.vue index 0439fca..eaf9845 100644 --- a/src/views/invest/investDealAnalysis/index.vue +++ b/src/views/invest/investDealAnalysis/index.vue @@ -211,14 +211,14 @@ const data = reactive({ const { queryParams, queryAcccountsParams, rules } = toRefs(data) const today = new Date() const end = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2) + '-' + ('0' + today.getDate()).slice(-2) -const start = dayjs(end).add(-30, 'day') +const start = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2) + '-01' queryParams.value.time = [start, end] const handleTimeChange = (type) => { queryParams.value.time = null if (type === 1) { const today = new Date() const end = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2) + '-' + ('0' + today.getDate()).slice(-2) - const start = dayjs(end).add(-30, 'day') + const start = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2) + '-01' queryParams.value.time = [start, end] } else if (type === 2) { const today = new Date() @@ -327,7 +327,7 @@ function resetQuery() { queryParams.value.id = null const today = new Date() const end = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2) + '-' + ('0' + today.getDate()).slice(-2) - const start = dayjs(end).add(-30, 'day') + const start = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2) + '-01' queryParams.value.time = [start, end] total.value = 0 handleQuery()