This commit is contained in:
qiuyuan 2025-09-10 12:23:20 +08:00
parent 75c1e98756
commit ef84fb565e

View File

@ -176,7 +176,11 @@
<!-- 日历组件 -->
<u-calendar :key="calendarKey" :show="showCalendar" mode="single" :min-date="minDate" :max-date="maxDate"
<u-calendar
:key="calendarKey"
:show="showCalendar"
mode="single" :min-date="minDate"
:max-date="maxDate"
@confirm="handleDateConfirm" @close="showCalendar = false" :mask-close-able="true"></u-calendar>
<!-- 时间选择器 -->
@ -321,12 +325,12 @@
endTimePickerValue: ``,
applyInfo:{},
//
// selectedDate: `${year}-${month}-${day}`,
// minDate: `${year}-${month}-${day}`,
// maxDate: `${year + 1}-12-31`,
selectedDate: `2025-08-11`, // 81
minDate: `2025-08-01`, // 81
maxDate: `2025-08-31`, // 831
selectedDate: `${year}-${month}-${day}`,
minDate: `${year}-${month}-${day}`,
maxDate: ``,
// selectedDate: `2025-08-11`, // 81
// minDate: `2025-08-01`, // 81
// maxDate: `2025-08-31`, // 831
//
// startTime: `2025-08`,
@ -334,10 +338,10 @@
// startTimeValue: `${startHours.toString().padStart(2, '0')}:${startMinutes.toString().padStart(2, '0')}`,
// endTimeValue: `${endHours.toString().padStart(2, '0')}:${endMinutes.toString().padStart(2, '0')}`,
startTimeValue: `09:00`,
endTimeValue: `10:00`,
startTimePickerValue: `2025-08-11 09:00`,
endTimePickerValue: `2025-08-11 10:00`,
// startTimeValue: `09:00`,
// endTimeValue: `10:00`,
// startTimePickerValue: `2025-08-11 09:00`,
// endTimePickerValue: `2025-08-11 10:00`,
//
remark: '',
@ -393,9 +397,11 @@
return `${year}${month}`;
} else {
//
const date = new Date(this.selectedDate);
const date = new Date();
console.log("=====date",date)
const weekdays = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'];
const month = date.getMonth() + 1;
console.log("=====month",month)
const day = date.getDate();
const weekday = weekdays[date.getDay()];