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
a975ca5a
Commit
a975ca5a
authored
Apr 03, 2018
by
gaochao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
4ac6a7b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
HmFullCalendar.vue
src/views/haomo/components/calendar/HmFullCalendar.vue
+5
-6
index.vue
src/views/haomo/components/calendar/index.vue
+1
-0
No files found.
src/views/haomo/components/calendar/HmFullCalendar.vue
View file @
a975ca5a
<
template
>
<div
class=
"calender"
>
<i
class=
"el-icon-date"
@
click=
"dialogTableVisible = true"
></i>
<el-dialog
:visible
.
sync=
"dialogTableVisible"
>
<el-dialog
:visible
.
sync=
"dialogTableVisible"
style=
"line-hight:16px;"
>
<full-calendar
:events=
"fcEvents"
lang=
"zh"
...
...
@@ -57,11 +57,10 @@
methods
:
{
getList
()
{
const
self
=
this
console
.
log
(
self
.
schema
)
request
(
self
.
schema
.
modelUnderscorePlural
).
then
(
resp
=>
{
console
.
log
(
resp
.
data
)
_
.
each
(
resp
.
data
,
function
(
item
,
index
)
{
const
test
=
_
.
cloneDeep
(
self
.
demoEvents
)
const
test
=
{}
test
.
title
=
item
[
self
.
demoEvents
.
title
]
if
(
item
[
self
.
demoEvents
.
end
]
==
null
)
{
item
[
self
.
demoEvents
.
end
]
=
item
[
self
.
demoEvents
.
start
]
...
...
@@ -73,13 +72,13 @@
console
.
log
(
self
.
fcEvents
)
})
},
changeMonth
(
start
,
end
,
current
)
{
'changeMonth'
(
start
,
end
,
current
)
{
console
.
log
(
'changeMonth'
,
start
.
format
(),
end
.
format
(),
current
.
format
())
},
eventClick
(
event
,
jsEvent
,
pos
)
{
'eventClick'
(
event
,
jsEvent
,
pos
)
{
console
.
log
(
'eventClick'
,
event
,
jsEvent
,
pos
)
},
dayClick
(
day
,
jsEvent
)
{
'dayClick'
(
day
,
jsEvent
)
{
console
.
log
(
'dayClick'
,
day
,
jsEvent
)
}
}
...
...
src/views/haomo/components/calendar/index.vue
View file @
a975ca5a
...
...
@@ -24,6 +24,7 @@
},
created
()
{
this
.
schema
=
schema
// 传入对应的字段
this
.
demoEvents
=
{
title
:
'username'
,
start
:
'createTime'
,
...
...
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