gkhwttlfx.jsp 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@ page import="java.text.SimpleDateFormat"%>
  4. <%@ include file="../../common.jsp"%>
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <meta charset="utf-8">
  9. <title>港口吞吐量分析</title>
  10. <meta name="viewport" content="width=device-width, initial-scale=1">
  11. <link rel="stylesheet" type="text/css" href="${app }/static/css/public.css" />
  12. <link rel="stylesheet" type="text/css" href="${app }/static/css/other.css" />
  13. <script type="text/javascript" src="${app }/static/js/highcharts.js"></script>
  14. <script type="text/javascript" src="${app }/static/js/highcharts-3d.js"></script>
  15. <script type="text/javascript" src="${app }/static/js/exporting.js"></script>
  16. </head>
  17. <script>
  18. $(document).ready(function () {
  19. initChart();
  20. initSelect();
  21. iFrameHeightIframe('${menuid}');//自适应高度
  22. });
  23. function initSelect(){
  24. if('${tjx}'!=''){
  25. $("#tjx").val('${tjx}');
  26. }
  27. if('${zzbl}'!=''){
  28. $("#zzbl").val('${zzbl}');
  29. }
  30. }
  31. function initChart(){
  32. var ttl = ${ttl};
  33. var month = ${dateList};
  34. var bl = ${bl}
  35. $('#container').highcharts({
  36. chart: {
  37. zoomType: 'xy'
  38. },
  39. title: {
  40. text: ''
  41. },
  42. xAxis: [{
  43. categories: month,
  44. }],
  45. yAxis: [{
  46. labels: {
  47. format: '{value}%',
  48. style: {
  49. color: '#89A54E'
  50. }
  51. },
  52. title: {
  53. text: '增长比率',
  54. style: {
  55. color:'#89A54E'
  56. }
  57. }
  58. }, { // Secondary yAxis
  59. title: {
  60. text: '货物吞吐量',
  61. style: {
  62. color: '#4572A7'
  63. }
  64. },
  65. labels: {
  66. format: '{value}万吨',
  67. style: {
  68. color: '#4572A7'
  69. }
  70. },
  71. opposite: true
  72. }],
  73. tooltip: {
  74. shared: true
  75. },
  76. series: [{
  77. name: '吞吐量',
  78. type: 'column',
  79. yAxis: 1,
  80. data: ttl,
  81. tooltip: {
  82. valueSuffix: '吨'
  83. }
  84. }, {
  85. name: '增长比率',
  86. type: 'spline',
  87. data: bl,
  88. tooltip: {
  89. valueSuffix: '%'
  90. }
  91. }]
  92. });
  93. }
  94. </script>
  95. <body>
  96. <form action="${app }/hwttlfx/main" id="hwttlfxform" method="post" style="margin-top: 30px">
  97. <div>
  98. <table class="search_table" cellpadding="0" cellspacing="0">
  99. <tr>
  100. <th width="11%"></th>
  101. <th width="22%"></th>
  102. <th width="11%"></th>
  103. <th width="22%"></th>
  104. <th width="12%"></th>
  105. <th width="22%"></th>
  106. </tr>
  107. <tr>
  108. <td class="right">
  109. 请选择统计项:&nbsp;
  110. </td>
  111. <td>
  112. <span><select id="tjx" name="tjx" class="form-control" style="width: 80%">
  113. <option value="GK03010202000000000000000000">合计</option>
  114. <option value="GK03010202000010000000000000">进港</option>
  115. <option value="GK03010202000020000000000000">出港</option>
  116. </select></span>
  117. </td>
  118. <td class="right">
  119. 选择日期:&nbsp;
  120. </td>
  121. <td>
  122. <input id="startDate" class="Wdate" style="width:80%;" name="startDate" value="${startDate}" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM'})">
  123. </td>
  124. <td class="middle">~</td>
  125. <td>
  126. <input id="endDate" class="Wdate" style="width:80%;" name="endDate" value="${endDate}" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM'})">
  127. </td>
  128. </tr>
  129. <tr>
  130. <td class="right">
  131. 请选择增长比率:&nbsp;
  132. </td>
  133. <td>
  134. <span><select id="zzbl" name="zzbl" class="form-control" style="width: 80%">
  135. <option value="tb">同比</option>
  136. <option value="hb">环比</option>
  137. <option value="zs">增速</option>
  138. </select></span>
  139. </td>
  140. <td></td>
  141. <td></td>
  142. <td></td>
  143. <td>
  144. <a class="btn btn-default btn-sm" href="#" onclick="$('#hwttlfxform').submit()">
  145. <i class="glyphicon glyphicon-search"></i>查询
  146. </a>
  147. </td>
  148. </tr>
  149. </table>
  150. </div>
  151. </form>
  152. <h2 align="center" style="margin-top:20px;" ><font style="font-size:16px;color:#196794;font-family:微软雅黑;font-weight: bold;">
  153. (${startDate}月——${endDate}月)港口货物吞吐量分析</font></h2>
  154. <br>
  155. <div id="container" style="min-width:400px;height:400px"></div>
  156. </body>
  157. </html>