|
|
|
@ -101,17 +101,21 @@ use \common\libs\MyLib; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$(function() { |
|
|
|
|
search(); |
|
|
|
|
|
|
|
|
|
//固定表头 |
|
|
|
|
function fix(){ |
|
|
|
|
//table设置一定的高度 |
|
|
|
|
var tab=$("#listTable").attr('data-height'); |
|
|
|
|
$('.fixed-table-body').css({'height':tab-40}); |
|
|
|
|
//当浏览器窗口变化时,表头与表格不对齐解决 |
|
|
|
|
$('#align').bootstrapTable(); |
|
|
|
|
$('.table').bootstrapTable(); |
|
|
|
|
$(window).resize(function () { |
|
|
|
|
$('#align').bootstrapTable('resetView'); |
|
|
|
|
$('.table').bootstrapTable('resetView'); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$(function() { |
|
|
|
|
search(); |
|
|
|
|
fix(); |
|
|
|
|
}); |
|
|
|
|
</script> |
|
|
|
|
<?php $this->endBlock(); ?> |
|
|
|
|