|
@ -120,6 +120,7 @@ export default { |
|
|
watch: { |
|
|
watch: { |
|
|
visibleCalendar() { |
|
|
visibleCalendar() { |
|
|
this.init(); |
|
|
this.init(); |
|
|
|
|
|
// this.iniDate(); |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
@ -134,11 +135,17 @@ export default { |
|
|
|
|
|
|
|
|
init() { |
|
|
init() { |
|
|
if (!this.currentDate) { |
|
|
if (!this.currentDate) { |
|
|
|
|
|
this.iniDate(); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
iniDate() { |
|
|
this.handleClickDate( |
|
|
this.handleClickDate( |
|
|
this.visibleCalendar.find((item) => item.isToday) || |
|
|
this.visibleCalendar |
|
|
|
|
|
.filter((item) => item.thisMonth) |
|
|
|
|
|
.find((item) => item.isToday) || |
|
|
this.visibleCalendar.filter((item) => item.thisMonth)[0] |
|
|
this.visibleCalendar.filter((item) => item.thisMonth)[0] |
|
|
); |
|
|
); |
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
handleClickDate(item) { |
|
|
handleClickDate(item) { |
|
|