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
f8f58738
Commit
f8f58738
authored
Mar 09, 2018
by
gaochao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
14ea3982
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
HmFullCalendar.vue
src/views/haomo/components/calendar/HmFullCalendar.vue
+8
-3
No files found.
src/views/haomo/components/calendar/HmFullCalendar.vue
View file @
f8f58738
<
template
>
<
template
>
<div
class=
"calender"
>
<div
class=
"calender"
>
<full-calendar
:events=
"fcEvents"
locale=
"en"
></full-calendar>
<i
class=
"el-icon-date"
@
click=
"dialogTableVisible = true"
></i>
<el-dialog
title=
"日历"
:visible
.
sync=
"dialogTableVisible"
>
<full-calendar
:events=
"fcEvents"
locale=
"en"
></full-calendar>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -29,7 +33,8 @@
...
@@ -29,7 +33,8 @@
},
},
data
()
{
data
()
{
return
{
return
{
fcEvents
:
[]
fcEvents
:
[],
dialogTableVisible
:
false
}
}
},
},
computed
:
{
computed
:
{
...
@@ -44,7 +49,7 @@
...
@@ -44,7 +49,7 @@
const
self
=
this
const
self
=
this
console
.
log
(
self
.
schema
)
console
.
log
(
self
.
schema
)
request
(
self
.
schema
.
modelUnderscorePlural
).
then
(
resp
=>
{
request
(
self
.
schema
.
modelUnderscorePlural
).
then
(
resp
=>
{
//
console.log(resp.data)
console
.
log
(
resp
.
data
)
_
.
each
(
resp
.
data
,
function
(
item
,
index
)
{
_
.
each
(
resp
.
data
,
function
(
item
,
index
)
{
const
test
=
_
.
cloneDeep
(
self
.
demoEvents
)
const
test
=
_
.
cloneDeep
(
self
.
demoEvents
)
test
.
title
=
item
[
self
.
demoEvents
.
title
]
test
.
title
=
item
[
self
.
demoEvents
.
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