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
黄瑜
VueElementTemplate
Commits
7e44cc9b
Commit
7e44cc9b
authored
Apr 27, 2018
by
李静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
0ac432f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
HmFullCalendar.vue
src/views/haomo/components/calendar/HmFullCalendar.vue
+11
-3
index.vue
src/views/haomo/components/calendar/index.vue
+5
-1
No files found.
src/views/haomo/components/calendar/HmFullCalendar.vue
View file @
7e44cc9b
...
@@ -241,6 +241,7 @@
...
@@ -241,6 +241,7 @@
*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 (中国标准时间)
*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
request
from
'@/utils/request'
// import _ from 'lodash'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -265,6 +266,12 @@
...
@@ -265,6 +266,12 @@
initTime
:
{
initTime
:
{
required
:
false
required
:
false
},
},
title
:
{
required
:
false
},
event
:
{
required
:
false
},
schedules
:
{
schedules
:
{
type
:
Array
,
type
:
Array
,
required
:
false
required
:
false
...
@@ -473,9 +480,10 @@
...
@@ -473,9 +480,10 @@
},
},
getDailyEvent
()
{
getDailyEvent
()
{
const
self
=
this
const
self
=
this
console
.
log
(
self
.
schema
)
request
(
self
.
schema
.
modelUnderscorePlural
,
{
request
(
self
.
schema
.
modelUnderscorePlural
).
then
(
resp
=>
{
params
:
{}
console
.
log
(
resp
.
data
,
'---------'
)
}).
then
(
resp
=>
{
console
.
log
(
resp
.
data
)
})
})
}
}
},
},
...
...
src/views/haomo/components/calendar/index.vue
View file @
7e44cc9b
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
<hm-full-calendar
<hm-full-calendar
:width=
"width"
:width=
"width"
:schedules=
"schedules"
:schedules=
"schedules"
:schema=
"schema['CcDuty']"
:schema=
"schema['HmUser']"
:title=
"title"
:event=
"event"
@
dateChange=
"datechange"
@
dateChange=
"datechange"
@
monthChange=
"monthchange"
@
monthChange=
"monthchange"
></hm-full-calendar>
></hm-full-calendar>
...
@@ -25,6 +27,8 @@
...
@@ -25,6 +27,8 @@
return
{
return
{
show
:
false
,
show
:
false
,
width
:
'300px'
,
width
:
'300px'
,
title
:
''
,
event
:
''
,
schedules
:
[{
date
:
1524043625000
,
title
:
'个梵蒂是的舞蹈服可接受的看似简单计算的话束带结发会计师对海口市记得回复是框架的看就好山东矿机会计师发送的甲方是看得见看见的说法开始冈地方'
},
{
date
:
1523955299000
,
title
:
'个梵蒂冈地方'
}]
schedules
:
[{
date
:
1524043625000
,
title
:
'个梵蒂是的舞蹈服可接受的看似简单计算的话束带结发会计师对海口市记得回复是框架的看就好山东矿机会计师发送的甲方是看得见看见的说法开始冈地方'
},
{
date
:
1523955299000
,
title
:
'个梵蒂冈地方'
}]
}
}
},
},
...
...
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