修改
This commit is contained in:
parent
75c1e98756
commit
ef84fb565e
@ -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>
|
@confirm="handleDateConfirm" @close="showCalendar = false" :mask-close-able="true"></u-calendar>
|
||||||
|
|
||||||
<!-- 时间选择器 -->
|
<!-- 时间选择器 -->
|
||||||
@ -321,12 +325,12 @@
|
|||||||
endTimePickerValue: ``,
|
endTimePickerValue: ``,
|
||||||
applyInfo:{},
|
applyInfo:{},
|
||||||
// 日期相关
|
// 日期相关
|
||||||
// selectedDate: `${year}-${month}-${day}`,
|
selectedDate: `${year}-${month}-${day}`,
|
||||||
// minDate: `${year}-${month}-${day}`,
|
minDate: `${year}-${month}-${day}`,
|
||||||
// maxDate: `${year + 1}-12-31`,
|
maxDate: ``,
|
||||||
selectedDate: `2025-08-11`, // 默认选中8月1日
|
// selectedDate: `2025-08-11`, // 默认选中8月1日
|
||||||
minDate: `2025-08-01`, // 最小可选8月1日
|
// minDate: `2025-08-01`, // 最小可选8月1日
|
||||||
maxDate: `2025-08-31`, // 最大可选8月31日
|
// maxDate: `2025-08-31`, // 最大可选8月31日
|
||||||
|
|
||||||
// 时间相关
|
// 时间相关
|
||||||
// startTime: `2025-08`,
|
// startTime: `2025-08`,
|
||||||
@ -334,10 +338,10 @@
|
|||||||
// startTimeValue: `${startHours.toString().padStart(2, '0')}:${startMinutes.toString().padStart(2, '0')}`,
|
// startTimeValue: `${startHours.toString().padStart(2, '0')}:${startMinutes.toString().padStart(2, '0')}`,
|
||||||
// endTimeValue: `${endHours.toString().padStart(2, '0')}:${endMinutes.toString().padStart(2, '0')}`,
|
// endTimeValue: `${endHours.toString().padStart(2, '0')}:${endMinutes.toString().padStart(2, '0')}`,
|
||||||
|
|
||||||
startTimeValue: `09:00`,
|
// startTimeValue: `09:00`,
|
||||||
endTimeValue: `10:00`,
|
// endTimeValue: `10:00`,
|
||||||
startTimePickerValue: `2025-08-11 09:00`,
|
// startTimePickerValue: `2025-08-11 09:00`,
|
||||||
endTimePickerValue: `2025-08-11 10:00`,
|
// endTimePickerValue: `2025-08-11 10:00`,
|
||||||
// 新增备注字段
|
// 新增备注字段
|
||||||
remark: '',
|
remark: '',
|
||||||
|
|
||||||
@ -393,9 +397,11 @@
|
|||||||
return `${year}年${month}月`;
|
return `${year}年${month}月`;
|
||||||
} else {
|
} else {
|
||||||
// 普通会议室模式,显示完整日期
|
// 普通会议室模式,显示完整日期
|
||||||
const date = new Date(this.selectedDate);
|
const date = new Date();
|
||||||
|
console.log("=====date",date)
|
||||||
const weekdays = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'];
|
const weekdays = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'];
|
||||||
const month = date.getMonth() + 1;
|
const month = date.getMonth() + 1;
|
||||||
|
console.log("=====month",month)
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
const weekday = weekdays[date.getDay()];
|
const weekday = weekdays[date.getDay()];
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user