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()