|
@@ -208,6 +208,7 @@ const nextMonthClick = () => {
|
|
|
|
|
|
//天被点击
|
|
|
const datesDayClick = (item) => {
|
|
|
+ console.log(selectedDate.value,'selectedDate');
|
|
|
if (item.type !== 'excluded') {
|
|
|
let {year,month} = selectedDate.value
|
|
|
choiceDate.value = {year: year, month: month, date: item.key}
|
|
@@ -220,7 +221,12 @@ const datesDayClick = (item) => {
|
|
|
const datePickerChange = (val) => {
|
|
|
const toDayJs = dayjs(val);
|
|
|
toPicker.value = toDayJs.format('YYYY-MM')
|
|
|
+ selectedDate.value = {
|
|
|
+ year: toDayJs.year(),
|
|
|
+ month: toDayJs.month() + 1
|
|
|
+ }
|
|
|
getDatesDay(toDayJs.year(), toDayJs.month() + 1)
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//返回选择的日期
|