Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
27e5605c
Commit
27e5605c
authored
Jul 06, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
dfadb7dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
5 deletions
+21
-5
active-from.vue
src/components/activity/active-from.vue
+21
-5
No files found.
src/components/activity/active-from.vue
View file @
27e5605c
...
...
@@ -396,20 +396,36 @@
this
.
addMsg
.
EndAge
=
val
.
max
},
//限制活动开始时间小于结束时间
StartTimeOptions
(
date
){
return
Date
.
parse
(
date
)
<=
Date
.
parse
(
this
.
addMsg
.
EndTime
)
StartTimeOptions
(
date
){
let
endTime
=
"2050/1/1"
if
(
this
.
addMsg
.
EndTime
){
endTime
=
this
.
addMsg
.
EndTime
}
return
Date
.
parse
(
date
)
<=
Date
.
parse
(
endTime
)
},
//限制活动结束时间大于开始时间
EndTimeOptions
(
date
){
return
Date
.
parse
(
date
)
>=
Date
.
parse
(
this
.
addMsg
.
StartTime
)
let
startTime
=
"2000/1/1"
if
(
this
.
addMsg
.
StartTime
){
startTime
=
this
.
addMsg
.
StartTime
}
return
Date
.
parse
(
date
)
>=
Date
.
parse
(
startTime
)
},
//限制活动报名开始时间小于报名结束时间
SignStartTimeOptions
(
date
){
return
Date
.
parse
(
date
)
<=
Date
.
parse
(
this
.
addMsg
.
SignEndTime
)
let
endTime
=
"2050/1/1"
if
(
this
.
addMsg
.
SignEndTime
){
endTime
=
this
.
addMsg
.
SignEndTime
}
return
Date
.
parse
(
date
)
<=
Date
.
parse
(
endTime
)
},
//限制活动报名结束时间大于报名开始时间
SignEndTimeOptions
(
date
){
return
Date
.
parse
(
date
)
>=
Date
.
parse
(
this
.
addMsg
.
SignStartTime
)
let
startTime
=
"2000/1/1"
if
(
this
.
addMsg
.
SignStartTime
){
startTime
=
this
.
addMsg
.
SignStartTime
}
return
Date
.
parse
(
date
)
>=
Date
.
parse
(
startTime
)
},
uploadFile
(
files
)
{
UploadSelfFile
(
"course"
,
files
[
0
],
res
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment