mirror of
https://gitee.com/xiongmao1988/rax-medical.git
synced 2026-06-12 15:51:46 +08:00
setDate方法放到setWeek中
This commit is contained in:
parent
b7fb92e927
commit
83a4416bbb
|
|
@ -74,7 +74,6 @@ const record = ref([] as any)
|
||||||
const currentDate = ref<Date>(new Date())
|
const currentDate = ref<Date>(new Date())
|
||||||
|
|
||||||
setWeek()
|
setWeek()
|
||||||
setDate(currentDate.value)
|
|
||||||
|
|
||||||
function formatDate(date: any) {
|
function formatDate(date: any) {
|
||||||
return monthEn[new Date(date).getMonth()] + '月 ' + new Date(date).getFullYear()
|
return monthEn[new Date(date).getMonth()] + '月 ' + new Date(date).getFullYear()
|
||||||
|
|
@ -110,11 +109,13 @@ function setWeek(type?: 'up' | 'down') {
|
||||||
content: '测试测试'
|
content: '测试测试'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
// setTimeout(() => {
|
// 定时器等待动画执行
|
||||||
for (let i = 0; i < 7; i++) {
|
setTimeout(() => {
|
||||||
week.value.push(getFirstDayOfWeek(date, i + 1))
|
for (let i = 0; i < 7; i++) {
|
||||||
}
|
week.value.push(getFirstDayOfWeek(date, i + 1))
|
||||||
// }, 0)
|
}
|
||||||
|
}, 0)
|
||||||
|
setDate(currentDate.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleOpen = () => {
|
const handleOpen = () => {
|
||||||
|
|
@ -243,6 +244,7 @@ const saveData = (e: any) => {
|
||||||
color: white;
|
color: white;
|
||||||
|
|
||||||
span {
|
span {
|
||||||
|
color: white;
|
||||||
border-color: $main-color;
|
border-color: $main-color;
|
||||||
background: $main-color;
|
background: $main-color;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user