diff --git a/frontend/views/menu/index.php b/frontend/views/menu/index.php index 5d1430c..30c1bc3 100644 --- a/frontend/views/menu/index.php +++ b/frontend/views/menu/index.php @@ -102,24 +102,10 @@ use \common\libs\MyLib; }); } - //使得table有一定的高度,出现滚动条 - function table(){ - //获取body高度 - var a=$(".gray-bg").height(); - //获取条件选择高度 - var b=$('#searchFrm').height(); - //获取标题高度 - var c=$('.ibox-title').height(); - //获取table高度 - var e=$("#listTable").height(); - var f=$(".ibox-content").height(); - var d=a-c-100; - console.log(e); - console.log(f); - //$('.fixed-table-body').css({'height':d}); - } $(function() { search(); + + //table设置一定的高度 var tab=$("#listTable").attr('data-height'); $('.fixed-table-body').css({'height':tab-40}); }); diff --git a/frontend/views/permissions/index.php b/frontend/views/permissions/index.php index 6e05908..010099a 100644 --- a/frontend/views/permissions/index.php +++ b/frontend/views/permissions/index.php @@ -2,6 +2,7 @@ use \common\libs\MyLib; ?> beginBlock('header_css'); ?> + endBlock(); ?> @@ -21,7 +22,7 @@ use \common\libs\MyLib;
- +
@@ -38,6 +39,7 @@ use \common\libs\MyLib; beginBlock('footer_js'); ?> + @@ -98,6 +100,10 @@ use \common\libs\MyLib; } $(function() { search(); + + //table设置一定的高度 + var tab=$("#listTable").attr('data-height'); + $('.fixed-table-body').css({'height':tab-40}); }); endBlock(); ?>
ID