อัพปฎิทิน
This commit is contained in:
parent
83dc2d90a5
commit
973664a0cd
2 changed files with 8 additions and 6 deletions
|
|
@ -151,11 +151,11 @@ const props = defineProps({
|
|||
type: Number,
|
||||
default: () => new Date().getMonth(),
|
||||
},
|
||||
refreshData: {
|
||||
//หน้า main มีการอัพเดทค่าให้ refresh data
|
||||
type: Boolean,
|
||||
required: true,
|
||||
},
|
||||
// refreshData: {
|
||||
// //หน้า main มีการอัพเดทค่าให้ refresh data
|
||||
// type: Boolean,
|
||||
// required: true,
|
||||
// },
|
||||
fetchDataSummaryCalendar: {
|
||||
//ฟังก์ชันอัพเดทสรุปวันหยุด
|
||||
type: Function,
|
||||
|
|
@ -177,7 +177,9 @@ onMounted(async () => {
|
|||
* ค่า props(วันเดือนปีที่เลือก) ตอนอัพเดท ค่าฏิทินให้อัพเดทใหม่
|
||||
*/
|
||||
watch(props, async (count, prevCount) => {
|
||||
const calen = fullCalendar.value.getApi()
|
||||
const date = new Date(props.dateYear, props.dateMonth)
|
||||
calen.gotoDate(date)
|
||||
})
|
||||
const cancel = async (text: string) => {
|
||||
title.value = text
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<subCalendarComponent v-if="currentTab === 'calendar'" />
|
||||
<subCalendarComponent :dateYear="dateMonth.year" :dateMonth="dateMonth.month" v-if="currentTab === 'calendar'" />
|
||||
</div>
|
||||
|
||||
<div class="col-12">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue