add store closed day in event record calendar
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user