标准化活动日历

This commit is contained in:
shenyanpei
2021-11-11 16:56:56 +08:00
parent 16a01b7d27
commit fee582a82e
+28 -24
View File
@@ -151,37 +151,41 @@ export default {
type: 1 type: 1
} }
meetingByMonth(data).then(res => { meetingByMonth(data).then(res => {
// 对传参的数据转义 if (res.length !== 0) {
res.forEach(item => { // 对传参的数据转义
item.attend = JSON.parse(item.attend) res.forEach(item => {
item.files = JSON.parse(item.files) item.attend = JSON.parse(item.attend)
this.$set(item, 'partPeople', []) item.files = JSON.parse(item.files)
}) this.$set(item, 'partPeople', [])
res.forEach(item => {
item.attend.forEach(msgAtt => {
item.partPeople.push(msgAtt.fillPeople)
}) })
})
this.resDate = res res.forEach(item => {
this.dealMyDate() item.attend.forEach(msgAtt => {
this.todayData = [] item.partPeople.push(msgAtt.fillPeople)
this.resDate.forEach(item=>{ })
if (item.date.slice(0,10) === this.nowDate) { })
this.todayData.push(item) this.resDate = res
} this.dealMyDate()
}) this.todayData = []
this.resDate.forEach(item=>{
if (item.date.slice(0,10) === this.nowDate) {
this.todayData.push(item)
}
})
}
}) })
}, },
/** 获取当前点击日历表格数据*/ /** 获取当前点击日历表格数据*/
calendarOnClick(val) { calendarOnClick(val) {
this.todayData = [] this.todayData = []
this.timeDay = val this.timeDay = val
this.resDate.forEach(item => { if (this.resDate.length !== 0) {
if (item.date.slice(0, 10) === this.timeDay.day) { this.resDate.forEach(item => {
this.todayData.push(item) if (item.date.slice(0, 10) === this.timeDay.day) {
} 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') {