feat: 球局详情完善 & 球局列表默认查一个月

This commit is contained in:
2025-09-11 14:02:32 +08:00
parent 35d3b12737
commit 8a0cc2373b
3 changed files with 14 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
import { create } from "zustand";
import dayjs from "dayjs";
import {
getGamesList,
getGamesIntegrateList,
@@ -19,9 +20,10 @@ import dateRangeUtils from '@/utils/dateRange'
type TennisStore = ListState & ListActions;
const toDate = dateRangeUtils?.formatDate(new Date())
const defaultDateRange: [string, string] = [dayjs().format('YYYY-MM-DD'), dayjs().add(1, 'M').format('YYYY-MM-DD')]
const defaultFilterOptions: IFilterOptions = {
dateRange: [toDate, toDate], // 日期区间
dateRange: defaultDateRange, // 日期区间
timeSlot: "", // 时间段
ntrp: [1, 5], // NTRP 水平区间
venueType: "", // 场地类型