fix: 时间段修改。

This commit is contained in:
tianyongbao
2024-08-30 18:15:11 +08:00
parent f467e4c4a3
commit 7e5eb749df
4 changed files with 12 additions and 12 deletions

View File

@@ -198,7 +198,7 @@ const data = reactive({
const { queryParams, queryFutureStocksListParams, rules } = toRefs(data)
const today = new Date()
const end = today.getFullYear() + '-' + ('0' + today.getMonth()).slice(-2)
const end = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2)
const start = dayjs(end).add(-59, 'months')
queryParams.value.time = [start, end]
/** 查询期货股票卡管理列表 */
@@ -217,7 +217,7 @@ const handleTimeChange = (type) => {
queryParams.value.time = null
if (type === 2) {
const today = new Date()
const end = today.getFullYear() + '-' + ('0' + today.getMonth()).slice(-2)
const end = today.getFullYear() + '-' + ('0' + (today.getMonth() + 1)).slice(-2)
const start = dayjs(end).add(-59, 'months')
queryParams.value.time = [start, end]
} else if (type === 3) {