|
|
@ -97,7 +97,7 @@ use \common\libs\MyLib; |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
<div class="row" style="margin-top:20px;"> |
|
|
|
<div class="row" style="margin-top:20px;"> |
|
|
|
<div class="col-md-12"> |
|
|
|
<div class="col-md-12"> |
|
|
|
<table id="listTable" class="table" data-toggle="table"> |
|
|
|
<table id="listTable" class="table" data-toggle="table" data-height="491"> |
|
|
|
<thead class="bg-warning"> |
|
|
|
<thead class="bg-warning"> |
|
|
|
<tr > |
|
|
|
<tr > |
|
|
|
<th data-field="state" data-checkbox="true"></th> |
|
|
|
<th data-field="state" data-checkbox="true"></th> |
|
|
@ -157,17 +157,7 @@ use \common\libs\MyLib; |
|
|
|
function fix(){ |
|
|
|
function fix(){ |
|
|
|
//table设置一定的高度 |
|
|
|
//table设置一定的高度 |
|
|
|
var tab=$("#listTable").attr('data-height'); |
|
|
|
var tab=$("#listTable").attr('data-height'); |
|
|
|
|
|
|
|
$('.fixed-table-body').css({'height':tab-40}); |
|
|
|
var a=$(".ibox-content").height(); |
|
|
|
|
|
|
|
var b=$("#searchFrm").height(); |
|
|
|
|
|
|
|
var c=a-b; |
|
|
|
|
|
|
|
console.log(a+"----"+b); |
|
|
|
|
|
|
|
console.log(c); |
|
|
|
|
|
|
|
if(c<100){ |
|
|
|
|
|
|
|
alert("不够"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//$('.fixed-table-body').css({'height':tab-40}); |
|
|
|
|
|
|
|
//当浏览器窗口变化时,表头与表格不对齐解决 |
|
|
|
//当浏览器窗口变化时,表头与表格不对齐解决 |
|
|
|
$('.table').bootstrapTable(); |
|
|
|
$('.table').bootstrapTable(); |
|
|
|
$(window).resize(function () { |
|
|
|
$(window).resize(function () { |
|
|
|