Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
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
JIRA
JIRA
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
HireTest
VueElementTemplate
Commits
4fbcc3ac
Commit
4fbcc3ac
authored
Apr 27, 2018
by
李静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
7e44cc9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
HmFullCalendar.vue
src/views/haomo/components/calendar/HmFullCalendar.vue
+12
-3
No files found.
src/views/haomo/components/calendar/HmFullCalendar.vue
View file @
4fbcc3ac
...
...
@@ -241,7 +241,8 @@
*monthChange事件,切换月份时触发,刷新日历显示,并传回当前月份的数组,包含该月第一天的0:0:0 和 该月最后一天的23:59:59 的时间戳,例如,7月,返回 [1498838400000,1501516799000] ,对应:Sat Jul 01 2017 00:00:00 GMT+0800 (中国标准时间) 和 Mon Jul 31 2017 23:59:59 GMT+0800 (中国标准时间)
*/
import
request
from
'@/utils/request'
// import _ from 'lodash'
import
_
from
'lodash'
import
moment
from
'moment'
export
default
{
data
()
{
return
{
...
...
@@ -251,7 +252,8 @@
dialogTableVisible
:
false
,
show
:
false
,
currentDate
:
''
,
event
:
''
event
:
''
,
schedules1
:
[]
}
},
props
:
{
...
...
@@ -483,7 +485,14 @@
request
(
self
.
schema
.
modelUnderscorePlural
,
{
params
:
{}
}).
then
(
resp
=>
{
console
.
log
(
resp
.
data
)
console
.
log
(
resp
.
data
,
'========='
)
_
.
each
(
resp
.
data
,
function
(
item
)
{
const
event
=
{}
event
.
date
=
moment
(
item
.
createTime
).
format
(
'X'
)
*
1000
event
.
title
=
item
.
username
self
.
schedules1
.
push
(
event
)
})
console
.
log
(
self
.
schedules1
)
})
}
},
...
...
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