Jquery完整日历时段持续时间和营业时间问题

Jquery完整日历时段持续时间和营业时间问题,jquery,fullcalendar-scheduler,Jquery,Fullcalendar Scheduler,我在我的网站上使用jQuery FullCalendar和scheduler为医生预约。此处根据所选诊所分支工作时间和科室持续时间动态绑定营业时间和时段持续时间。因此,根据这些工作时间和时段持续时间,工作时间以一半的时段结束或开始。因此,我们不能利用这段时间,该部门将失去一个等待时间的约会。有什么解决方案吗?我遇到了类似的日历控件问题,当插槽持续时间超过60分钟时,事件单元格无法正确呈现。我从StackOverFlow获得了以下解决方案。尽管这可能对你有帮助,还是请你去吧。在fullCalend

我在我的网站上使用jQuery FullCalendar和scheduler为医生预约。此处根据所选诊所分支工作时间和科室持续时间动态绑定营业时间和时段持续时间。因此,根据这些工作时间和时段持续时间,工作时间以一半的时段结束或开始。因此,我们不能利用这段时间,该部门将失去一个等待时间的约会。有什么解决方案吗?

我遇到了类似的日历控件问题,当插槽持续时间超过60分钟时,事件单元格无法正确呈现。我从StackOverFlow获得了以下解决方案。尽管这可能对你有帮助,还是请你去吧。在fullCalendar事件处理程序中调用下面的函数

function resetCalendarHeight() {
// reset height and contentHeight properties on month view
if (isNullOrEmpty($('.fc-slats')) || $('.fc-slats').length == 0) {
    $('#calendar').css('height', '530px');
    //$('.fc-row.fc-week.fc-widget-content').css('height', '76');
    $('#calendar').fullCalendar('option', 'contentHeight', 'undefined');
    return false;
}
 // day view or week view set the content height to 'auto' 
// then adjust the height  of the container
$('#calendar').fullCalendar('option', 'contentHeight', 'auto');
var bottomDifference = $('#calendar-container')[0].getBoundingClientRect().bottom - $('.fc-slats')[0].getBoundingClientRect().bottom;
var currentHeight = $(".fc-slats > table").css("height").replace('px', '');
var newHeight = parseInt(currentHeight) + bottomDifference;
$(".fc-slats > table").css("height", newHeight);
$('.fc-scroller.fc-time-grid-container').css('overflow-x', 'auto');
$('.fc-scroller.fc-time-grid-container').css('overflow-y', 'overlay');
$('.fc-scroller.fc-time-grid-container').css('height', newHeight);
return true;}



$('#calendar').fullCalendar({
slotDuration:'45',
    events: function (start, end, timezone, callback) {
            resetCalendarHeight();
    }})