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
6592cc58
authored
2024-06-02 18:20:20 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
时间限制
1 parent
cfa5a586
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
18 deletions
src/viewsPc/booking/component/makeUpCalendar.vue
src/viewsPc/booking/component/photoGraphyCalendar.vue
src/viewsPc/booking/component/makeUpCalendar.vue
View file @
6592cc5
...
...
@@ -135,16 +135,15 @@ function getData(){
const
toDay
=
dayjs
(
dayjs
().
format
(
'YYYY-MM-DD'
)).
valueOf
()
const
start
=
dayjs
(
formTime
.
value
.
mealStart
).
valueOf
()
if
(
toDay
<
start
){
currentDate1
.
value
=
query
.
value
.
currentDate
=
dayjs
(
start
).
format
(
'YYYY-MM-DD'
)
currentDate
.
value
=
currentDate1
.
value
=
query
.
value
.
currentDate
=
dayjs
(
start
).
format
(
'YYYY-MM-DD'
)
}
else
{
currentDate1
.
value
=
query
.
value
.
currentDate
=
dayjs
(
toDay
).
format
(
'YYYY-MM-DD'
)
currentDate
.
value
=
currentDate
1
.
value
=
query
.
value
.
currentDate
=
dayjs
(
toDay
).
format
(
'YYYY-MM-DD'
)
}
}
function
getScheduleList
()
{
loading
.
value
=
true
//
query.value.currentDate = dayjs(currentDate.value).format('YYYY-MM-DD')
query
.
value
.
currentDate
=
dayjs
(
currentDate
.
value
).
format
(
'YYYY-MM-DD'
)
if
(
!
query
.
value
.
currentDate
)
return
proxy
.
$message
.
error
(
'请选择时间'
)
booking
.
getActivityMealVoListByStudioId
(
query
.
value
).
then
(
res
=>
{
loading
.
value
=
false
...
...
src/viewsPc/booking/component/photoGraphyCalendar.vue
View file @
6592cc5
...
...
@@ -121,7 +121,7 @@ onMounted(() => {
console
.
log
(
err
)
formTime
.
value
=
null
}).
finally
(()
=>
{
//
getData()
getData
()
getScheduleList
()
})
})
...
...
@@ -140,10 +140,10 @@ function getData(){
}
getScheduleList
()
function
getScheduleList
()
{
loading
.
value
=
true
query
.
value
.
currentDate
=
dayjs
(
currentDate
.
value
).
format
(
'YYYY-MM-DD'
)
console
.
log
(
query
.
value
)
booking
.
getActivityPhotoVoListByShootId
(
query
.
value
).
then
(
res
=>
{
loading
.
value
=
false
schList
.
value
=
res
.
data
...
...
@@ -151,7 +151,6 @@ function getScheduleList() {
}
function
selectDate
(
date
)
{
currentDate1
.
value
=
currentDate
.
value
=
dayjs
(
date
).
toDate
()
console
.
log
(
date
)
getScheduleList
()
}
...
...
@@ -159,8 +158,6 @@ function dateChange(){
currentDate
.
value
=
currentDate1
.
value
calendarRange
.
value
=
[
dayjs
(
currentDate
.
value
).
toDate
(),(
dayjs
(
currentDate
.
value
).
toDate
())]
getScheduleList
()
console
.
log
(
currentDate
.
value
)
console
.
log
(
currentDate1
.
value
)
}
function
goMatch
(
n
)
{
...
...
@@ -169,15 +166,23 @@ function goMatch(n) {
return
}
router
.
push
({
name
:
'photographyOrder'
,
params
:
{
lasId
:
n
.
id
},
query
:
{
date
:
dayjs
(
currentDate
.
value
).
format
(
'YYYY-MM-DD'
)
}
})
ElMessageBox
.
confirm
(
language
.
value
==
0
?
`你当前所预约的时间为
${
query
.
value
.
currentDate
}
是否确定?`
:
`Your current appointment is
${
query
.
value
.
currentDate
}
. Are you sure?`
,{
type
:
'warning'
})
.
then
(()
=>
{
router
.
push
({
name
:
'photographyOrder'
,
params
:
{
lasId
:
n
.
id
},
query
:
{
date
:
dayjs
(
currentDate
.
value
).
format
(
'YYYY-MM-DD'
)
}
})
})
.
catch
(()
=>
{
// catch error
})
}
function
disabledDateRZ
(
date
)
{
...
...
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