wmhwttlfx.jsp 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. /* subtitle: {副标题
  43. text: 'Source: WorldClimate.com'
  44. }, */
  45. xAxis: [{
  46. categories: month,//['Jan', 'Feb', 'Mar', 'Apr', 'May'],
  47. crosshair: true
  48. }],
  49. yAxis: [{ // Primary yAxis
  50. labels: {
  51. format: '{value}%',
  52. style: {
  53. color: Highcharts.getOptions().colors[1]
  54. }
  55. },
  56. title: {
  57. text: '增长比率',
  58. style: {
  59. color: Highcharts.getOptions().colors[1]
  60. }
  61. }
  62. }, { // Secondary yAxis
  63. title: {
  64. text: '货物吞吐量',
  65. style: {
  66. color: Highcharts.getOptions().colors[0]
  67. }
  68. },
  69. labels: {
  70. format: '{value}万吨',
  71. style: {
  72. color: Highcharts.getOptions().colors[0]
  73. }
  74. },
  75. opposite: true
  76. }],
  77. tooltip: {
  78. shared: true
  79. },
  80. series: [{
  81. name: '货物吞吐量',
  82. type: 'column',
  83. yAxis: 1,
  84. data: ttl,//[49.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
  85. tooltip: {
  86. valueSuffix: '万吨'
  87. }
  88. }, {
  89. name: '增长比率',
  90. type: 'spline',
  91. data: bl,
  92. tooltip: {
  93. valueSuffix: '%'
  94. }
  95. }]
  96. });
  97. }
  98. </script>
  99. <body>
  100. <form action="${app }/wmhwttlfx/main" id="wmhwttlfxform" method="post" style="margin-top: 30px">
  101. <div>
  102. <table class="search_table" cellpadding="0" cellspacing="0">
  103. <tr>
  104. <th width="11%"></th>
  105. <th width="22%"></th>
  106. <th width="11%"></th>
  107. <th width="22%"></th>
  108. <th width="12%"></th>
  109. <th width="22%"></th>
  110. </tr>
  111. <tr>
  112. <td class="right">
  113. 请选择统计项:&nbsp;
  114. </td>
  115. <td>
  116. <span><select id="tjx" name="tjx" class="form-control" style="width: 80%">
  117. <option value="GK03010202000001000000000000">总外贸量</option>
  118. <option value="GK03010202000021000000000000">进港外贸量</option>
  119. <option value="GK03010202000011000000000000">出港外贸量</option>
  120. </select></span>
  121. </td>
  122. <td class="right">
  123. 选择日期:&nbsp;
  124. </td>
  125. <td>
  126. <input id="startDate" class="Wdate" style="width:80%;" name="startDate" value="${startDate}" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM'})">
  127. </td>
  128. <td class="middle">~</td>
  129. <td>
  130. <input id="endDate" class="Wdate" style="width:80%;" name="endDate" value="${endDate}" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM'})">
  131. </td>
  132. </tr>
  133. <tr>
  134. <td class="right">
  135. 请选择增长比率:&nbsp;
  136. </td>
  137. <td>
  138. <span><select id="zzbl" name="zzbl" class="form-control" style="width: 80%">
  139. <option value="tb">同比</option>
  140. <option value="hb">环比</option>
  141. <option value="zs">增速</option>
  142. </select></span>
  143. </td>
  144. <td></td>
  145. <td></td>
  146. <td></td>
  147. <td>
  148. <a class="btn btn-default btn-sm" href="#" onclick="$('#wmhwttlfxform').submit()">
  149. <i class="glyphicon glyphicon-search"></i>查询
  150. </a>
  151. </td>
  152. </tr>
  153. </table>
  154. </div>
  155. </form>
  156. <h2 align="center" style="margin-top:20px;" ><font style="font-size:16px;color:#196794;font-family:微软雅黑;font-weight: bold;">
  157. (${startDate}月——${endDate}月)港口外贸货物吞吐量分析</font></h2>
  158. <br>
  159. <div id="container" style="min-width:400px;height:400px"></div>
  160. </body>
  161. </html>