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