Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-home
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5a7f8ac3
authored
May 23, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.11.0' of
http://192.168.3.233:8090/saas/scrm-micro-home
into v3.11.0
2 parents
4cdf4a6b
af2078b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
src/views/home/components/Marketing/components/ScheduleCalendar/index.vue
src/views/home/components/Marketing/components/ScheduleCalendar/index.vue
View file @
5a7f8ac
...
...
@@ -44,13 +44,11 @@ export default {
},
usageStatistics
:
false
,
template
:
{
// monthDayName(model) {
// console.log(model, 11111111111111)
// return model.label
// },
collapseBtnTitle
()
{
return
`<span>↑</span>`
milestone
(
event
)
{
return
`<span style="color:
${
event
.
color
}
;">
${
event
.
title
}
</span>`
},
aaa
(
event
)
{
return
`<span style="color:
${
event
.
color
}
;">
${
event
.
title
}
</span>`
}
}
},
...
...
@@ -83,7 +81,7 @@ export default {
let
colors
=
[
'#BFEFD5'
,
'#FEE9CC'
,
'#FEDCCF'
,
''
,
'#CAF2F1'
,
'#ECD0FF'
]
let
{
eventList
,
calendarData
,
calendar
,
currentDate
}
=
this
eventList
=
calendarData
.
map
(
item
=>
{
return
{
let
obj
=
{
id
:
item
.
id
,
calendarId
:
item
.
id
,
title
:
item
.
title
,
...
...
@@ -97,6 +95,12 @@ export default {
fontSize
:
'12px;'
}
}
if
(
item
.
startTime
==
item
.
endTime
)
{
obj
.
category
=
'milestone'
}
else
{
obj
.
category
=
'aaa'
}
return
obj
})
calendar
.
createEvents
(
eventList
)
this
.
currentDate
=
dayjs
(
this
.
calendar
.
getDate
()).
format
(
'YYYY年MM'
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment