switch (rowData.ISREGISTERTASK) {
case 0:
显示north分割线
$('#RightContent').layout('panel', 'north').panel('panel').addClass('layout-split-north');
$('#RightContent').layout('panel', 'north').panel('resize');
//激活拖动
$('#RightContent').layout('panel', 'north').panel('panel').resizable('enable');
break;
case 1:
//隐藏north的分割线
$('#RightContent').layout('panel', 'north').panel('panel').removeClass('layout-split-north');
$('#RightContent').layout('panel', 'north').panel('resize');
//禁用拖动
$('#RightContent').layout('panel', 'north').panel('panel').resizable('disable');
break;
case 2:
$('#RightContent').layout('panel', 'north').panel('panel').removeClass('layout-split-north');
$('#RightContent').layout('panel', 'north').panel('resize');
$('#RightContent').layout('panel', 'north').panel('panel').resizable('disable');
break;
}
转载于:https://www.cnblogs.com/yuking/p/3227951.html