Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
13b2b4a4
Commit
13b2b4a4
authored
Oct 21, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化日期选择功能
parent
ec449be9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
PersonnelManagement.vue
src/components/activity/PersonnelManagement.vue
+13
-1
No files found.
src/components/activity/PersonnelManagement.vue
View file @
13b2b4a4
...
...
@@ -69,32 +69,38 @@
<img
v-else
src=
"../../assets/img/champion/right1.png"
alt
/>
</span>
</div>
<div
class=
"choose choose2"
>
<div
class=
"choose choose2"
v-if=
"index1 >= 0"
>
<div
class=
"block"
v-if=
"index1 === 0"
>
<el-date-picker
class=
"w150"
v-model=
"weekVal"
type=
"week"
format=
"yyyy 第 W 周"
placeholder=
"请选择周"
:picker-options=
"pickerOptions"
@
change=
"getNewWeek"
>
</el-date-picker>
</div>
<div
class=
"block"
v-if=
"index1 === 1"
>
<el-date-picker
class=
"w150"
v-model=
"monthVal"
type=
"month"
value-format=
"yyyyM"
@
change=
"init"
:picker-options=
"pickerOptions"
placeholder=
"请选择月"
>
</el-date-picker>
</div>
<div
class=
"block"
v-if=
"index1 === 2"
>
<el-date-picker
v-model=
"yearVal"
class=
"w150"
align=
"right"
type=
"year"
@
change=
"init"
value-format=
"yyyy"
:picker-options=
"pickerOptions"
placeholder=
"请选择年"
>
</el-date-picker>
</div>
...
...
@@ -442,6 +448,11 @@
export
default
{
data
()
{
return
{
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
();
}
},
weekVal
:
''
,
monthVal
:
''
,
yearVal
:
''
,
...
...
@@ -1271,6 +1282,7 @@ export default {
background
:
url('../../assets/img/champion/btnhover.png')
;
}
.personTable
.choose2
{
width
:
auto
!important
;
margin-left
:
10px
;
}
...
...
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