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
b5ba89d0
Commit
b5ba89d0
authored
May 14, 2018
by
郜超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
806c8ece
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
HmFullCalendar.vue
src/views/haomo/components/calendar/HmFullCalendar.vue
+2
-2
index.vue
src/views/haomo/components/calendar/index.vue
+2
-1
No files found.
src/views/haomo/components/calendar/HmFullCalendar.vue
View file @
b5ba89d0
<
template
>
<
template
>
<div
class=
"calendarlist"
>
<div
class=
"calendarlist"
>
<i
class=
"el-icon-date"
@
click=
"dialogTableVisible = true"
></i>
<i
class=
"el-icon-date"
@
click=
"dialogTableVisible = true"
:style=
"demoEvent.iconStyle"
></i>
<el-dialog
:visible
.
sync=
"dialogTableVisible"
>
<el-dialog
:visible
.
sync=
"dialogTableVisible"
>
<div
class=
"datebook-root"
:style=
'componentW?"width:"+componentW+";":""'
>
<div
class=
"datebook-root"
:style=
'componentW?"width:"+componentW+";":""'
>
<div
class=
'top-panel'
>
<div
class=
'top-panel'
>
...
@@ -484,7 +484,7 @@
...
@@ -484,7 +484,7 @@
var
saveTime
=
''
var
saveTime
=
''
var
filterparams
=
self
.
demoEvent
.
filterparams
var
filterparams
=
self
.
demoEvent
.
filterparams
request
(
self
.
schema
.
modelUnderscorePlural
,
{
request
(
self
.
schema
.
modelUnderscorePlural
,
{
params
:
{
'sortItem'
:
self
.
demoEvent
.
timeOrder
,
'pageSize'
:
10000
,
filters
:
{
filterparams
}
}
params
:
{
'sortItem'
:
self
.
demoEvent
.
timeOrder
,
'pageSize'
:
10000
,
filters
:
filterparams
}
}).
then
(
resp
=>
{
}).
then
(
resp
=>
{
console
.
log
(
resp
.
data
,
'========='
)
console
.
log
(
resp
.
data
,
'========='
)
_
.
each
(
resp
.
data
,
function
(
item
)
{
_
.
each
(
resp
.
data
,
function
(
item
)
{
...
...
src/views/haomo/components/calendar/index.vue
View file @
b5ba89d0
...
@@ -29,7 +29,8 @@
...
@@ -29,7 +29,8 @@
date
:
'createTime'
,
date
:
'createTime'
,
events
:
'email'
,
events
:
'email'
,
timeOrder
:
'create_time'
,
timeOrder
:
'create_time'
,
filterparams
:
''
filterparams
:
''
,
iconStyle
:
'color: #00BF8B'
}
}
// title为需要传入的事件名所对应的的字段名,date为时间所对应的字段,events为事件所对应的字段,都不是必传
// title为需要传入的事件名所对应的的字段名,date为时间所对应的字段,events为事件所对应的字段,都不是必传
// timeOrder为所有所有事件按照数据库的哪个字段排序,为下划线格式
// timeOrder为所有所有事件按照数据库的哪个字段排序,为下划线格式
...
...
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