fix: 信用卡待还,网贷待还,看本月及下个月的数据。
This commit is contained in:
@@ -210,7 +210,7 @@ const { queryParams, queryCreditCardParams, rules } = toRefs(data)
|
||||
const today = new Date()
|
||||
const start = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2) + '-01'
|
||||
// 当前月份的结束日期
|
||||
const endDate = new Date(today.getFullYear(), today.getMonth() + 1, 0)
|
||||
const endDate = new Date(today.getFullYear(), today.getMonth() + 2, 0)
|
||||
const end = `${endDate.getFullYear()}-${(endDate.getMonth() + 1).toString().padStart(2, '0')}-${endDate.getDate().toString().padStart(2, '0')}`
|
||||
queryParams.value.time = [start, end]
|
||||
/** 查询信用卡卡管理列表 */
|
||||
@@ -229,8 +229,7 @@ const handleTimeChange = (type) => {
|
||||
const endDate = new Date(today.getFullYear(), today.getMonth() + 1, 0)
|
||||
const end = `${endDate.getFullYear()}-${(endDate.getMonth() + 1).toString().padStart(2, '0')}-${endDate.getDate().toString().padStart(2, '0')}`
|
||||
queryParams.value.time = [start, end]
|
||||
} else
|
||||
if (type === 2) {
|
||||
} else if (type === 2) {
|
||||
const today = new Date()
|
||||
const start = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2)
|
||||
const end = dayjs(start).add(35, 'months')
|
||||
|
||||
@@ -211,7 +211,7 @@ const { queryParams, queryCreditCardParams, rules } = toRefs(data)
|
||||
const today = new Date()
|
||||
const start = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2) + '-01'
|
||||
// 当前月份的结束日期
|
||||
const endDate = new Date(today.getFullYear(), today.getMonth() + 1, 0)
|
||||
const endDate = new Date(today.getFullYear(), today.getMonth() + 2, 0)
|
||||
const end = `${endDate.getFullYear()}-${(endDate.getMonth() + 1).toString().padStart(2, '0')}-${endDate.getDate().toString().padStart(2, '0')}`
|
||||
queryParams.value.time = [start, end]
|
||||
/** 查询信用卡卡管理列表 */
|
||||
|
||||
Reference in New Issue
Block a user