完整的angularjs日历一些日期隐藏在更改月份之后

时间:2017-04-22 12:08:16

标签: javascript angularjs angularjs-directive calendar fullcalendar

我有angularjs完整的日历。当我在日程安排日期填充日历时显示红线,但是当我下个月像MAY一样去回到四月时,有些日期是隐藏的。有谁知道如何解决这个问题?

appendScheduleToCalendar(schedule_entry) {
    var event = {};
    event.start = new Date(schedule_entry.sch_start);
    event.end = new Date(schedule_entry.sch_end);
    event.title = schedule_entry.title;
    if (schedule_entry.available) {
      event.className = ['cal_available'];
    } else {
      event.className = ['cal_unavailable'];
    }
    //event.sch_type = schedule_entry.sch_type;
    event._id = schedule_entry._id;
    this.eventSources[0].push(event);
}

enter image description here enter image description here

0 个答案:

没有答案