fix: 时间段修改。
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user