车险提成固定表头

webUi
赵桐华 5 years ago
parent 4d96e17768
commit 091c42859a
  1. 2
      frontend/views/finance/ticheng-jisuan.php
  2. 15
      frontend/views/menu/index.php
  3. 15
      frontend/views/permissions/index.php

@ -131,7 +131,7 @@ use \common\libs\MyLib;
</form>
<div class="row">
<div class="col-md-12">
<table id="listTable" class="table" data-toggle="table" data-height="450">
<table id="listTable" class="table" data-toggle="table" data-height="470">
<thead class="bg-warning">
<tr>
<th data-field="state" data-checkbox="true"></th>

@ -41,7 +41,6 @@ use \common\libs\MyLib;
<?php $this->beginBlock('footer_js'); ?>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
@ -100,22 +99,8 @@ use \common\libs\MyLib;
}
});
}
//固定表头
function fix(){
//table设置一定的高度
var tab=$("#listTable").attr('data-height');
$('.fixed-table-body').css({'height':tab-40});
//当浏览器窗口变化时,表头与表格不对齐解决
$('.table').bootstrapTable();
$(window).resize(function () {
$('.table').bootstrapTable('resetView');
});
}
$(function() {
search();
fix();
});
</script>
<?php $this->endBlock(); ?>

@ -21,7 +21,7 @@ use \common\libs\MyLib;
<div class="ibox-content">
<div class="row">
<div class="col-md-12">
<table id="listTable" class="table" data-toggle="table" data-height="708">
<table id="listTable">
<thead class="bg-warning">
<tr>
<th data-field="id">ID</th>
@ -38,7 +38,6 @@ use \common\libs\MyLib;
<?php $this->beginBlock('footer_js'); ?>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
<script src="/assets/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
@ -97,21 +96,9 @@ use \common\libs\MyLib;
}
});
}
//固定表头
function fix(){
//table设置一定的高度
var tab=$("#listTable").attr('data-height');
$('.fixed-table-body').css({'height':tab-40});
//当浏览器窗口变化时,表头与表格不对齐解决
$('.table').bootstrapTable();
$(window).resize(function () {
$('.table').bootstrapTable('resetView');
});
}
$(function() {
search();
fix();
});
</script>
<?php $this->endBlock(); ?>

Loading…
Cancel
Save