Commit 5a7f8ac3 by 杨明

Merge branch 'v3.11.0' of http://192.168.3.233:8090/saas/scrm-micro-home into v3.11.0

2 parents 4cdf4a6b af2078b4
...@@ -44,13 +44,11 @@ export default { ...@@ -44,13 +44,11 @@ export default {
}, },
usageStatistics: false, usageStatistics: false,
template: { template: {
// monthDayName(model) { milestone(event) {
// console.log(model, 11111111111111) return `<span style="color: ${event.color};">${event.title}</span>`
// return model.label },
// }, aaa(event) {
return `<span style="color: ${event.color};">${event.title}</span>`
collapseBtnTitle() {
return `<span>↑</span>`
} }
} }
}, },
...@@ -83,7 +81,7 @@ export default { ...@@ -83,7 +81,7 @@ export default {
let colors = ['#BFEFD5', '#FEE9CC', '#FEDCCF', '', '#CAF2F1', '#ECD0FF'] let colors = ['#BFEFD5', '#FEE9CC', '#FEDCCF', '', '#CAF2F1', '#ECD0FF']
let { eventList, calendarData, calendar, currentDate } = this let { eventList, calendarData, calendar, currentDate } = this
eventList = calendarData.map(item => { eventList = calendarData.map(item => {
return { let obj = {
id: item.id, id: item.id,
calendarId: item.id, calendarId: item.id,
title: item.title, title: item.title,
...@@ -97,6 +95,12 @@ export default { ...@@ -97,6 +95,12 @@ export default {
fontSize: '12px;' fontSize: '12px;'
} }
} }
if (item.startTime == item.endTime) {
obj.category = 'milestone'
} else {
obj.category = 'aaa'
}
return obj
}) })
calendar.createEvents(eventList) calendar.createEvents(eventList)
this.currentDate = dayjs(this.calendar.getDate()).format('YYYY年MM') this.currentDate = dayjs(this.calendar.getDate()).format('YYYY年MM')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!