Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds-front
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
beyond-clouds-front
Commits
52e6a1f4
Commit
52e6a1f4
authored
Feb 20, 2020
by
yanju
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-issue#3' into 'master'
fix-issue#3 See merge request pigbigbig/beyond-clouds-front!87
parents
83953f89
abedbb33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
components/pc/datePicker/date.js
+1
-1
components/pc/datePicker/datePicker.vue
+2
-2
No files found.
components/pc/datePicker/date.js
View file @
52e6a1f4
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
const
format
=
(
date
)
=>
{
const
format
=
(
date
)
=>
{
const
dateObj
=
new
Date
(
date
);
const
dateObj
=
new
Date
(
date
);
const
year
=
dateObj
.
getFullYear
();
const
year
=
dateObj
.
getFullYear
();
const
month
=
dateObj
.
getMonth
()
>
10
?
`
${
dateObj
.
getMonth
()
+
1
}
`
:
`0
${
dateObj
.
getMonth
()
+
1
}
`
;
const
month
=
dateObj
.
getMonth
()
>
8
?
`
${
dateObj
.
getMonth
()
+
1
}
`
:
`0
${
dateObj
.
getMonth
()
+
1
}
`
;
const
day
=
dateObj
.
getDate
()
>
9
?
`
${
dateObj
.
getDate
()}
`
:
`0
${
dateObj
.
getDate
()}
`
;
const
day
=
dateObj
.
getDate
()
>
9
?
`
${
dateObj
.
getDate
()}
`
:
`0
${
dateObj
.
getDate
()}
`
;
return
`
${
year
}
-
${
month
}
-
${
day
}
`
return
`
${
year
}
-
${
month
}
-
${
day
}
`
};
};
...
...
components/pc/datePicker/datePicker.vue
View file @
52e6a1f4
...
@@ -92,13 +92,13 @@
...
@@ -92,13 +92,13 @@
// 改变月份
// 改变月份
changeMonth
(
count
)
{
changeMonth
(
count
)
{
const
changedDate
=
new
Date
(
this
.
year
,
this
.
month
+
count
-
1
);
const
changedDate
=
new
Date
(
this
.
year
,
this
.
month
+
count
-
1
);
console
.
log
(
changedDate
);
this
.
datePicker
.
changeDate
(
changedDate
);
this
.
datePicker
.
changeDate
(
changedDate
);
},
},
// 选择日期
// 选择日期
selectDate
(
selectedDate
)
{
selectDate
(
selectedDate
)
{
let
selectedDate2
=
selectedDate
;
this
.
selectedDate
=
selectedDate
.
value
;
this
.
selectedDate
=
selectedDate
.
value
;
console
.
log
(
selectedDate
)
this
.
$refs
.
input
.
blur
();
this
.
$refs
.
input
.
blur
();
this
.
$emit
(
config
.
event
.
listenDateChange
,
selectedDate
)
this
.
$emit
(
config
.
event
.
listenDateChange
,
selectedDate
)
...
...
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