Commit 785fcf0a925031a24bf8f6f275518c0f72aab140
1 parent
fd0e1faf
适应屏幕调整表格高度
Showing
3 changed files
with
12 additions
and
6 deletions
src/main/resources/static/pages/forms/statement/historyMessage.html
| @@ -46,7 +46,7 @@ | @@ -46,7 +46,7 @@ | ||
| 46 | </form> | 46 | </form> |
| 47 | </div> | 47 | </div> |
| 48 | <div class="portlet-body"> | 48 | <div class="portlet-body"> |
| 49 | - <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px;max-height: 520px;"> | 49 | + <div class="table-container" id="table" style="margin-top: 10px;overflow:auto;min-width: 906px;"> |
| 50 | <table class="table table-bordered table-hover table-checkable" id="forms"> | 50 | <table class="table table-bordered table-hover table-checkable" id="forms"> |
| 51 | <thead> | 51 | <thead> |
| 52 | <tr class="hidden"> | 52 | <tr class="hidden"> |
| @@ -80,6 +80,7 @@ | @@ -80,6 +80,7 @@ | ||
| 80 | format : 'YYYY-MM-DD', | 80 | format : 'YYYY-MM-DD', |
| 81 | locale : 'zh-cn' | 81 | locale : 'zh-cn' |
| 82 | }); | 82 | }); |
| 83 | + $("#table").height($(window).height()-280); | ||
| 83 | 84 | ||
| 84 | $.get('/basic/lineCode2Name',function(result){ | 85 | $.get('/basic/lineCode2Name',function(result){ |
| 85 | var data=[]; | 86 | var data=[]; |
src/main/resources/static/pages/forms/statement/lbStatuAnaly.html
| @@ -57,7 +57,7 @@ | @@ -57,7 +57,7 @@ | ||
| 57 | <span class="item-label" style="width: 80px;">选择线路: </span> | 57 | <span class="item-label" style="width: 80px;">选择线路: </span> |
| 58 | <select class="form-control" name="line" id="line" style="width: 150px;"></select> | 58 | <select class="form-control" name="line" id="line" style="width: 150px;"></select> |
| 59 | </div> | 59 | </div> |
| 60 | - <div style="display: inline-block; margin-left: 10px"> | 60 | + <div style="display: inline-block; margin-left: 10px; display: none;"> |
| 61 | <span class="item-label" style="width: 80px;">时刻类型: </span> | 61 | <span class="item-label" style="width: 80px;">时刻类型: </span> |
| 62 | <select class="form-control" name="model" id="model" style="width: 165px;"> | 62 | <select class="form-control" name="model" id="model" style="width: 165px;"> |
| 63 | <option value="">请选择...</option> | 63 | <option value="">请选择...</option> |
| @@ -93,7 +93,7 @@ | @@ -93,7 +93,7 @@ | ||
| 93 | </form> | 93 | </form> |
| 94 | </div> | 94 | </div> |
| 95 | <div class="portlet-body"> | 95 | <div class="portlet-body"> |
| 96 | - <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | 96 | + <div class="table-container" id="table" style="margin-top: 0px;overflow:auto;min-width: 906px;height:481px;"> |
| 97 | <table class="table table-bordered table-hover table-checkable" id="forms"> | 97 | <table class="table table-bordered table-hover table-checkable" id="forms"> |
| 98 | <thead> | 98 | <thead> |
| 99 | 99 | ||
| @@ -135,6 +135,7 @@ | @@ -135,6 +135,7 @@ | ||
| 135 | format : 'HH:mm', | 135 | format : 'HH:mm', |
| 136 | locale : 'zh-cn' | 136 | locale : 'zh-cn' |
| 137 | }); | 137 | }); |
| 138 | + $("#table").height($(window).height()-320); | ||
| 138 | 139 | ||
| 139 | var d = new Date(); | 140 | var d = new Date(); |
| 140 | var year = d.getFullYear(); | 141 | var year = d.getFullYear(); |
| @@ -239,6 +240,7 @@ | @@ -239,6 +240,7 @@ | ||
| 239 | $("#subCompany").on("change",initXl); | 240 | $("#subCompany").on("change",initXl); |
| 240 | function initXl(){ | 241 | function initXl(){ |
| 241 | var data=[]; | 242 | var data=[]; |
| 243 | + data.push({id:" ", text:"全部线路"}); | ||
| 242 | if(fage){ | 244 | if(fage){ |
| 243 | $("#line").select2("destroy").html(''); | 245 | $("#line").select2("destroy").html(''); |
| 244 | } | 246 | } |
| @@ -310,6 +312,8 @@ | @@ -310,6 +312,8 @@ | ||
| 310 | } | 312 | } |
| 311 | var reason = $("input[name='reason']"); | 313 | var reason = $("input[name='reason']"); |
| 312 | var params = {}; | 314 | var params = {}; |
| 315 | + if(line == " ") | ||
| 316 | + line = ""; | ||
| 313 | // line = $("#line").val(); | 317 | // line = $("#line").val(); |
| 314 | startDate = $("#startDate").val(); | 318 | startDate = $("#startDate").val(); |
| 315 | endDate = $("#endDate").val(); | 319 | endDate = $("#endDate").val(); |
| @@ -454,7 +458,7 @@ | @@ -454,7 +458,7 @@ | ||
| 454 | <thead> | 458 | <thead> |
| 455 | <tr> | 459 | <tr> |
| 456 | <th class="hidden"></th> | 460 | <th class="hidden"></th> |
| 457 | - <th rowspan="3">日期</th> | 461 | + <th rowspan="3" style=" width:120px;">日期</th> |
| 458 | <th rowspan="3">时段</th> | 462 | <th rowspan="3">时段</th> |
| 459 | <th rowspan="3">公司</th> | 463 | <th rowspan="3">公司</th> |
| 460 | <th rowspan="3">分公司</th> | 464 | <th rowspan="3">分公司</th> |
src/main/resources/static/pages/forms/statement/waybill.html
| @@ -71,7 +71,7 @@ | @@ -71,7 +71,7 @@ | ||
| 71 | </div> | 71 | </div> |
| 72 | </div> | 72 | </div> |
| 73 | <div class="col-md-9" id="printArea"> | 73 | <div class="col-md-9" id="printArea"> |
| 74 | - <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px;height: 520px"> | 74 | + <div class="table-container" id="xcld_height" style="margin-top: 10px;overflow:auto;min-width: 906px;"> |
| 75 | <table class="table table-bordered table-checkable" id="forms"> | 75 | <table class="table table-bordered table-checkable" id="forms"> |
| 76 | <tbody class="ludan_1"> | 76 | <tbody class="ludan_1"> |
| 77 | 77 | ||
| @@ -106,6 +106,7 @@ | @@ -106,6 +106,7 @@ | ||
| 106 | locale : 'zh-cn' | 106 | locale : 'zh-cn' |
| 107 | }); | 107 | }); |
| 108 | 108 | ||
| 109 | + $("#xcld_height").height($(window).height()-100); | ||
| 109 | var d = new Date(); | 110 | var d = new Date(); |
| 110 | var year = d.getFullYear(); | 111 | var year = d.getFullYear(); |
| 111 | var month = d.getMonth() + 1; | 112 | var month = d.getMonth() + 1; |
| @@ -257,7 +258,7 @@ | @@ -257,7 +258,7 @@ | ||
| 257 | if($(this).children().size() < 2){ | 258 | if($(this).children().size() < 2){ |
| 258 | return; | 259 | return; |
| 259 | } | 260 | } |
| 260 | - | 261 | + $("#xcld_height").height($(window).height()-100); |
| 261 | $(this).children().each(function(index){ | 262 | $(this).children().each(function(index){ |
| 262 | params[index] = $(this).text(); | 263 | params[index] = $(this).text(); |
| 263 | }); | 264 | }); |