标准化活动日历
This commit is contained in:
@@ -151,6 +151,7 @@ export default {
|
|||||||
type: 1
|
type: 1
|
||||||
}
|
}
|
||||||
meetingByMonth(data).then(res => {
|
meetingByMonth(data).then(res => {
|
||||||
|
if (res.length !== 0) {
|
||||||
// 对传参的数据转义
|
// 对传参的数据转义
|
||||||
res.forEach(item => {
|
res.forEach(item => {
|
||||||
item.attend = JSON.parse(item.attend)
|
item.attend = JSON.parse(item.attend)
|
||||||
@@ -171,17 +172,20 @@ export default {
|
|||||||
this.todayData.push(item)
|
this.todayData.push(item)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
/** 获取当前点击日历表格数据*/
|
/** 获取当前点击日历表格数据*/
|
||||||
calendarOnClick(val) {
|
calendarOnClick(val) {
|
||||||
this.todayData = []
|
this.todayData = []
|
||||||
this.timeDay = val
|
this.timeDay = val
|
||||||
|
if (this.resDate.length !== 0) {
|
||||||
this.resDate.forEach(item => {
|
this.resDate.forEach(item => {
|
||||||
if (item.date.slice(0, 10) === this.timeDay.day) {
|
if (item.date.slice(0, 10) === this.timeDay.day) {
|
||||||
this.todayData.push(item)
|
this.todayData.push(item)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
// 点击日历头部日期变化
|
// 点击日历头部日期变化
|
||||||
this.formData.year = val.day.slice(0, 4) + '年'
|
this.formData.year = val.day.slice(0, 4) + '年'
|
||||||
if (val.day.slice(5, 6) === '0') {
|
if (val.day.slice(5, 6) === '0') {
|
||||||
|
|||||||
Reference in New Issue
Block a user