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 {
},
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')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!