From d6a3eee3eb6225e187689926d5241f782da1dffb Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Fri, 24 May 2024 17:24:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=9F=E8=AE=A1=E5=88=86=E6=9E=90?= =?UTF-8?q?=EF=BC=8C=E6=8C=89=E6=97=A5=E6=9F=A5=E8=AF=A2=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E6=9C=80=E8=BF=9130=E5=A4=A9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/invest/accountDealAnalysis/index.vue | 6 +++--- src/views/invest/creditCardDealAnalysis/index.vue | 6 +++--- src/views/invest/debitDealAnalysis/index.vue | 6 +++--- src/views/invest/investDealAnalysis/index.vue | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/invest/accountDealAnalysis/index.vue b/src/views/invest/accountDealAnalysis/index.vue index f3111cd..734ce97 100644 --- a/src/views/invest/accountDealAnalysis/index.vue +++ b/src/views/invest/accountDealAnalysis/index.vue @@ -252,14 +252,14 @@ const data = reactive({ const { queryParams, 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(-6, 'day') +const start = dayjs(end).add(-30, 'day') 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(-6, 'day') + const start = dayjs(end).add(-30, 'day') queryParams.value.time = [start, end] } else if (type === 2) { const today = new Date() @@ -350,7 +350,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(-6, 'day') + const start = dayjs(end).add(-30, 'day') queryParams.value.time = [start, end] total.value = 0 handleQuery() diff --git a/src/views/invest/creditCardDealAnalysis/index.vue b/src/views/invest/creditCardDealAnalysis/index.vue index 97c817c..7318de8 100644 --- a/src/views/invest/creditCardDealAnalysis/index.vue +++ b/src/views/invest/creditCardDealAnalysis/index.vue @@ -278,14 +278,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(-6, 'day') +const start = dayjs(end).add(-30, 'day') 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(-6, 'day') + const start = dayjs(end).add(-30, 'day') queryParams.value.time = [start, end] } else if (type === 2) { const today = new Date() @@ -399,7 +399,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(-6, 'day') + const start = dayjs(end).add(-30, 'day') queryParams.value.time = [start, end] total.value = 0 handleQuery() diff --git a/src/views/invest/debitDealAnalysis/index.vue b/src/views/invest/debitDealAnalysis/index.vue index 2fb323d..db816de 100644 --- a/src/views/invest/debitDealAnalysis/index.vue +++ b/src/views/invest/debitDealAnalysis/index.vue @@ -278,14 +278,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(-6, 'day') +const start = dayjs(end).add(-30, 'day') 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(-6, 'day') + const start = dayjs(end).add(-30, 'day') queryParams.value.time = [start, end] } else if (type === 2) { const today = new Date() @@ -394,7 +394,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(-6, 'day') + const start = dayjs(end).add(-30, 'day') queryParams.value.time = [start, end] total.value = 0 handleQuery() diff --git a/src/views/invest/investDealAnalysis/index.vue b/src/views/invest/investDealAnalysis/index.vue index f7bd0c5..7e43084 100644 --- a/src/views/invest/investDealAnalysis/index.vue +++ b/src/views/invest/investDealAnalysis/index.vue @@ -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(-6, 'day') + const start = dayjs(end).add(-30, 'day') queryParams.value.time = [start, end] total.value = 0 handleQuery()