Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
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
ba857685
authored
2024-06-18 17:40:55 +0800
by
杨炀
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
7a6d28ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
10 deletions
src/viewsPc/components/pickup.vue
src/viewsPc/index.vue
src/viewsPc/components/pickup.vue
View file @
ba85768
...
...
@@ -50,13 +50,17 @@
<!--
{{
language
==
0
?
'填写的人数需是乘坐同一航班/车次'
:
'The number of people to be filled in must be on the same flight/train'
}}
-->
<!--
</div>
-->
<el-form-item
:label=
"language==0?'抵达日期':'Flight/Train Arrival Date'"
prop=
"pickUpBo.arrivalDate"
<el-form-item
:label=
"language==0?'抵达日期':'Flight/Train Arrival Date'"
prop=
"pickUpBo.arrivalDate"
required
>
<div
style=
"padding: 1px"
>
<el-date-picker
:disabled-date=
"disabledDateRZ"
default-value=
"'2024-07'"
v-model=
"form.pickUpBo.arrivalDate"
format=
"YYYY-MM-DD"
placeholder=
"YYYY-MM-DD"
style=
"width: 100%;"
type=
"date"
value-format=
"YYYY-MM-DD"
/>
</div>
</el-form-item>
<el-form-item
:label=
"language==0?'抵达时间':'Flight/Train Arrival Time'"
prop=
"pickUpBo.arrivaTime"
required
>
...
...
@@ -127,12 +131,16 @@
<!--
</div>
-->
<el-form-item
:label=
"language==0?'离开日期':'Departure Date from Hotel'"
prop=
"downOffBo.arrivalDate"
required
>
<el-date-picker
v-model=
"form.downOffBo.arrivalDate"
format=
"YYYY-MM-DD"
placeholder=
"YYYY-MM-DD"
style=
"width: 100%;"
type=
"date"
value-format=
"YYYY-MM-DD"
/>
required
>
<div
style=
"padding: 1px"
>
<el-date-picker
v-model=
"form.downOffBo.arrivalDate"
format=
"YYYY-MM-DD"
placeholder=
"YYYY-MM-DD"
:disabled-date=
"disabledDateDP"
default-value=
"'2024-07'"
style=
"width: 100%;"
type=
"date"
value-format=
"YYYY-MM-DD"
/>
</div>
</el-form-item>
<el-form-item
:label=
"language==0?'离开时间':'Departure Time from Hotel'"
prop=
"downOffBo.arrivaTime"
required
>
<!--
<el-date-picker-->
...
...
@@ -193,7 +201,7 @@
import
{
useStorage
}
from
"@vueuse/core/index"
;
import
{
getCurrentInstance
,
watch
,
ref
}
from
"vue"
;
import
{
nextTick
}
from
"@vue/runtime-core"
;
import
{
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
{
dayjs
,
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
{
addInvitation
,
countryList
}
from
"@/apiPc/match"
;
import
ImageUpload
from
"@/components/ImageUpload"
;
import
{
masterClassList
,
getByCard
,
submitMasterApply
,
getMasterApply
,
delByCard
,
addPickup
}
from
"@/apiPc/common"
;
...
...
@@ -446,7 +454,34 @@ function getCountryList() {
countrys
.
value
=
res
.
data
})
}
// function initdateRZ() {
// const today = dayjs().format('YYYY-MM-DD')
// form.value.pickUpBo.arrivalDate ='2024-07'
// }
// function initdateDP() {
// const today = dayjs().format('YYYY-MM-DD')
// form.value.downOffBo.arrivalDate ='2024-07'
// }
function
disabledDateRZ
(
date
)
{
// 16-20
//判读今天大与2024-07-16
const
today
=
dayjs
().
format
(
'YYYY-MM-DD'
)
if
(
'2024-07-16'
<
today
)
{
return
!
((
date
.
getTime
()
>=
dayjs
(
today
).
valueOf
())
&&
(
date
.
getTime
()
<=
dayjs
(
'2024-07-20'
).
valueOf
()))
}
else
{
return
!
((
date
.
getTime
()
>=
dayjs
(
'2024-07-16'
).
valueOf
())
&&
(
date
.
getTime
()
<=
dayjs
(
'2024-07-20'
).
valueOf
()))
}
}
function
disabledDateDP
(
date
)
{
// 18-22
//判读今天大与2024-07-18
const
today
=
dayjs
().
format
(
'YYYY-MM-DD'
)
if
(
'2024-07-18'
<
today
)
{
return
!
((
date
.
getTime
()
>=
dayjs
(
today
).
valueOf
())
&&
(
date
.
getTime
()
<=
dayjs
(
'2024-07-22'
).
valueOf
()))
}
else
{
return
!
((
date
.
getTime
()
>=
dayjs
(
'2024-07-18'
).
valueOf
())
&&
(
date
.
getTime
()
<=
dayjs
(
'2024-07-22'
).
valueOf
()))
}
}
</
script
>
<
style
scoped
>
...
...
src/viewsPc/index.vue
View file @
ba85768
...
...
@@ -454,7 +454,6 @@ const init = () => {
})
}
const
carouselChange
=
(
e
)
=>
{
console
.
log
(
e
.
name
)
matchData
.
value
=
maList
.
value
[
e
]
}
const
goDetail
=
(
n
)
=>
{
...
...
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