Commit 2a8176e3225e779815ec30d37836051e6ffae664
1 parent
bfc434ff
屏幕自适应
Showing
2 changed files
with
15 additions
and
6 deletions
src/main/resources/static/pages/forms/statement/waybill.html
| ... | ... | @@ -55,7 +55,7 @@ |
| 55 | 55 | <div class="portlet-body"> |
| 56 | 56 | <div class="row"> |
| 57 | 57 | <div class="col-md-3"> |
| 58 | - <div class="" style="margin-top: 10px;overflow:auto;height: 520px"> | |
| 58 | + <div class="" id="left_height" style="margin-top: 10px;overflow:auto;"> | |
| 59 | 59 | <table class="table table-bordered table-hover table-checkable pre-scrollable" id="info"> |
| 60 | 60 | <thead> |
| 61 | 61 | <tr class="hidden"> |
| ... | ... | @@ -106,7 +106,9 @@ |
| 106 | 106 | locale : 'zh-cn' |
| 107 | 107 | }); |
| 108 | 108 | |
| 109 | + $("#left_height").height($(window).height()-100); | |
| 109 | 110 | $("#xcld_height").height($(window).height()-100); |
| 111 | + | |
| 110 | 112 | var d = new Date(); |
| 111 | 113 | var year = d.getFullYear(); |
| 112 | 114 | var month = d.getMonth() + 1; |
| ... | ... | @@ -187,8 +189,9 @@ |
| 187 | 189 | fage=true; |
| 188 | 190 | } |
| 189 | 191 | var date = ''; |
| 190 | - var line =''; | |
| 192 | + var line = ''; | |
| 191 | 193 | $("#query").on("click",function(){ |
| 194 | + $("#left_height").height($(window).height()-100); | |
| 192 | 195 | line = $("#line").val(); |
| 193 | 196 | date = $("#date").val(); |
| 194 | 197 | $(".hidden").removeClass("hidden"); | ... | ... |
src/main/resources/static/pages/report/message/message.html
| ... | ... | @@ -50,7 +50,7 @@ |
| 50 | 50 | <div class="portlet-body"> |
| 51 | 51 | <div class="row"> |
| 52 | 52 | <div class="col-md-3"> |
| 53 | - <div class="" style="margin-top: 10px;overflow:auto;height: 860px"> | |
| 53 | + <div class="" id="left_table" style="margin-top: 10px;overflow:auto;height: 860px"> | |
| 54 | 54 | <table class="table table-bordered table-hover table-checkable pre-scrollable" id="info_msg"> |
| 55 | 55 | <thead> |
| 56 | 56 | <tr class="hidden"> |
| ... | ... | @@ -67,7 +67,7 @@ |
| 67 | 67 | </div> |
| 68 | 68 | </div> |
| 69 | 69 | <div class="col-md-9" id="printArea"> |
| 70 | - <div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px"> | |
| 70 | + <div class="table-container" id="table" style="margin-top: 10px;overflow:auto;min-width: 906px"> | |
| 71 | 71 | <table class="table table-bordered table-hover table-checkable" id="forms"> |
| 72 | 72 | <thead> |
| 73 | 73 | <tr class="hidden"> |
| ... | ... | @@ -106,6 +106,10 @@ |
| 106 | 106 | format : 'YYYY-MM-DD', |
| 107 | 107 | locale : 'zh-cn' |
| 108 | 108 | }); |
| 109 | + | |
| 110 | + $("#left_table").height($(window).height()-100); | |
| 111 | + $("#table").height($(window).height()-100); | |
| 112 | + | |
| 109 | 113 | var d = new Date(); |
| 110 | 114 | var year = d.getFullYear(); |
| 111 | 115 | var month = d.getMonth() + 1; |
| ... | ... | @@ -171,7 +175,8 @@ |
| 171 | 175 | if($("#date").val() == null || $("#date").val().trim().length == 0){ |
| 172 | 176 | layer.msg("请选择时间!"); |
| 173 | 177 | return; |
| 174 | - } | |
| 178 | + } | |
| 179 | + $("#left_table").height($(window).height()-100); | |
| 175 | 180 | line = $("#line").val(); |
| 176 | 181 | date = $("#date").val(); |
| 177 | 182 | var code = $("#code").val(); |
| ... | ... | @@ -194,7 +199,8 @@ |
| 194 | 199 | $("#info_msg tbody").on("click","tr",function(){ |
| 195 | 200 | if($(this).children().size() < 2){ |
| 196 | 201 | return; |
| 197 | - } | |
| 202 | + } | |
| 203 | + $("#table").height($(window).height()-100); | |
| 198 | 204 | $(this).children().each(function(index){ |
| 199 | 205 | params[index] = $(this).text(); |
| 200 | 206 | }); | ... | ... |