Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jijin
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
cfa5a586
authored
2024-06-02 17:58:25 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
时间限制
1 parent
3282934d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
3 deletions
src/viewsPc/booking/component/makeUpCalendar.vue
src/viewsPc/booking/component/photoGraphyCalendar.vue
src/viewsPc/booking/component/makeUpCalendar.vue
View file @
cfa5a58
...
...
@@ -35,7 +35,8 @@
format=
"YYYY-MM-DD"
size=
"small"
@
change=
"dateChange"
:disabled-date=
"disabledDate"
:disabled-date=
"disabledDateRZ"
:clearable=
'false'
/>
</div>
</el-col>
...
...
@@ -151,6 +152,20 @@ function getScheduleList() {
schList
.
value
.
forEach
(
item
=>
item
.
active
=
true
)
})
}
function
disabledDateRZ
(
date
)
{
if
(
formTime
.
value
)
{
const
toDay
=
dayjs
(
dayjs
().
format
(
'YYYY-MM-DD'
)).
valueOf
()
const
start
=
dayjs
(
formTime
.
value
.
mealStart
).
valueOf
()
const
end
=
dayjs
(
formTime
.
value
.
mealEnd
).
valueOf
()
if
(
toDay
<
start
)
{
return
date
.
getTime
()
<
start
||
date
.
getTime
()
>
end
}
else
if
(
toDay
>
start
&&
toDay
<
end
)
{
return
date
.
getTime
()
<
toDay
||
date
.
getTime
()
>
end
}
else
return
true
}
}
function
selectDate
(
date
)
{
currentDate1
.
value
=
currentDate
.
value
=
dayjs
(
date
).
toDate
()
console
.
log
(
date
)
...
...
src/viewsPc/booking/component/photoGraphyCalendar.vue
View file @
cfa5a58
...
...
@@ -35,6 +35,8 @@
format=
"YYYY-MM-DD"
size=
"small"
@
change=
"dateChange"
:disabled-date=
"disabledDateRZ"
:clearable=
"false"
/>
</div>
</el-col>
...
...
@@ -178,8 +180,17 @@ function goMatch(n) {
})
}
function
changee
(){
console
.
log
(
value2
.
value
)
function
disabledDateRZ
(
date
)
{
if
(
formTime
.
value
)
{
const
toDay
=
dayjs
(
dayjs
().
format
(
'YYYY-MM-DD'
)).
valueOf
()
const
start
=
dayjs
(
formTime
.
value
.
photoStart
).
valueOf
()
const
end
=
dayjs
(
formTime
.
value
.
photoEnd
).
valueOf
()
if
(
toDay
<
start
)
{
return
date
.
getTime
()
<
start
||
date
.
getTime
()
>
end
}
else
if
(
toDay
>
start
&&
toDay
<
end
)
{
return
date
.
getTime
()
<
toDay
||
date
.
getTime
()
>
end
}
else
return
true
}
}
</
script
>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment