add store closed day in event record calendar

This commit is contained in:
Timi
2026-08-13 14:50:35 +08:00
parent fa1f5f1f2d
commit e43ba9db8d
5 changed files with 82 additions and 7 deletions
@@ -6,6 +6,7 @@
empty-text="当前月份暂无登记事件记录"
:loading="isCalendarLoading"
:records="monthRecords"
:store-id="storeId"
@list="value => emit('list', value)"
/>
</template>
@@ -17,6 +18,7 @@ import EventRecordCalendar, { type EventRecordCalendarListPayload } from "@/comp
import type { EventItem } from "@/types/EventItem";
import type { EventRecord } from "@/types/EventRecord";
import type { StoreEventRecordCalendarView } from "@/types/Store";
import { useCurrentStoreStore } from "@/store/currentStoreStore";
import { Time } from "timi-web";
const emit = defineEmits<{
@@ -28,6 +30,8 @@ const selectedEventIdList = ref<string[]>([]);
const monthRecords = ref<EventRecord[]>([]);
const isCalendarLoading = ref(false);
const monthCursor = ref(getMonthStart(new Date()));
const currentStoreStore = useCurrentStoreStore();
const storeId = computed(() => currentStoreStore.currentStoreId);
let calendarRequestId = 0;
watch(monthCursor, async () => {