Browse Source

fix(coach/course/list & student/timetable): 修复日历选择后未重新加载数据的问题

- 在教练端课程列表页面,添加日历选择后的数据重新加载逻辑
- 在学生端课表页面,添加日历选择后的数据重新加载逻辑
- 优化学生端课表页面的日期范围获取和日历选中状态设置
master
liutong 12 months ago
parent
commit
cbdb1925c6
  1. 3
      pages/coach/course/list.vue
  2. 9
      pages/student/timetable/index.vue

3
pages/coach/course/list.vue

@ -421,6 +421,9 @@ export default {
changeCalendar(e){
console.log('日历',e)
this.show_calendar = false
this.loadData()
this.filteredData.schedule_date = e.fulldate
this.getList()
},
}

9
pages/student/timetable/index.vue

@ -160,6 +160,10 @@ export default {
await this.getThisDate()
await this.getHeadDate()
await this.getList()
this.getDateRange()
this.setCalendarSelected()
},
//
@ -327,6 +331,11 @@ export default {
changeCalendar(e){
console.log('日历',e)
this.show_calendar = false
console.log('日历',e)
this.show_calendar = false
this.loadData()
this.filteredData.schedule_date = e.fulldate
this.getList()
},

Loading…
Cancel
Save