jzxttltj.jsp 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <!DOCTYPE html >
  2. <html >
  3. <%@ page language="java" contentType="text/html; charset=UTF-8"
  4. pageEncoding="UTF-8"%>
  5. <%@ page import="java.text.SimpleDateFormat"%>
  6. <%@ include file="../../common.jsp"%>
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <title>集装箱吞吐量统计</title>
  10. </head>
  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/exporting.js"></script>
  15. <script type="text/javascript" src="${app }/static/js/highcharts-3d.js"></script>
  16. <script type="text/javascript">
  17. $(document).ready(function () {
  18. iFrameHeightIframe('${menuid}');//自适应高度
  19. $('.hxselectpicker').selectpicker({
  20. width:'80%'
  21. });
  22. });
  23. $(function () {
  24. var list = '${list}';
  25. var zttl=[];
  26. var name=[];
  27. var hb=[];
  28. var tb=[]
  29. var aa='${zcl}';
  30. var bb=-+'${zcl}';
  31. $.each(JSON.parse(list), function (n, value) {
  32. name[n]=value.tjmonth+"月";
  33. zttl[n]=value.ttl;
  34. hb[n]=value.hb;
  35. tb[n]=value.tb;
  36. });
  37. $('#container').highcharts({
  38. title:{
  39. text:""
  40. },
  41. chart: {
  42. zoomType: 'xy'
  43. },
  44. xAxis: [{
  45. categories: eval(name)
  46. }],
  47. yAxis: [{ // Primary yAxis
  48. labels: {
  49. formatter: function() {
  50. return this.value +'%';
  51. },
  52. style: {
  53. color: '#89A54E'
  54. }
  55. },
  56. title: {
  57. text: '同比增长率',
  58. style: {
  59. color: '#89A54E'
  60. }
  61. },
  62. opposite: true,
  63. plotLines:[{
  64. color:'red', //线的颜色,定义为红色
  65. dashStyle:'ShortDash', //默认值,这里定义为实线
  66. value:aa, //定义在那个值上显示标示线,这里是在x轴上刻度为3的值处垂直化一条线
  67. width:2 //标示线的宽度,2px
  68. },{
  69. color:'yellow', //线的颜色,定义为红色
  70. dashStyle:'ShortDash', //默认值,这里定义为实线
  71. value:bb, //定义在那个值上显示标示线,这里是在x轴上刻度为1的值处垂直化一条线
  72. width:2 //标示线的宽度,2px
  73. }]
  74. }, { // Secondary yAxis
  75. min:0,
  76. gridLineWidth: 0,
  77. title: {
  78. text: '吞吐量',
  79. style: {
  80. color: '#4572A7'
  81. }
  82. },
  83. labels: {
  84. formatter: function() {
  85. return this.value +' 万吨';
  86. },
  87. style: {
  88. color: '#4572A7'
  89. }
  90. }
  91. }, { // Tertiary yAxis
  92. gridLineWidth: 0,
  93. title: {
  94. text: '环比增长率',
  95. style: {
  96. color: '#AA4643'
  97. }
  98. },
  99. labels: {
  100. formatter: function() {
  101. return this.value +' %';
  102. },
  103. style: {
  104. color: '#AA4643'
  105. }
  106. },
  107. opposite: true
  108. }],
  109. tooltip: {
  110. shared: true
  111. },
  112. series: [{
  113. name: '吞吐量',
  114. color: '#4572A7',
  115. type: 'column',
  116. yAxis: 1,
  117. data: eval('['+zttl+']'),
  118. tooltip: {
  119. valueSuffix: ' 万吨'
  120. }
  121. }, {
  122. name: '环比增长率',
  123. type: 'spline',
  124. color: '#AA4643',
  125. yAxis: 2,
  126. data: eval('['+hb+']'),
  127. marker: {
  128. enabled: false
  129. },
  130. dashStyle: 'shortdot',
  131. tooltip: {
  132. valueSuffix: ' %'
  133. }
  134. }, {
  135. name: '同比增长率',
  136. color: '#89A54E',
  137. type: 'spline',
  138. data: eval('['+tb+']'),
  139. tooltip: {
  140. valueSuffix: ' %'
  141. }
  142. }]
  143. });
  144. });
  145. function searchMain(){
  146. $("#jzxttltjform").submit();
  147. }
  148. </script>
  149. <style type="text/css">
  150. .main_table td{
  151. text-align:left;
  152. padding-left:20px;
  153. width:50px;
  154. }
  155. </style>
  156. </head>
  157. <body>
  158. <div style="margin-top:30px;">
  159. <form action="${app }/jzxttltj/main" id="jzxttltjform" method="post">
  160. <table class="search_table" cellpadding="0" cellspacing="0" align="center" >
  161. <tr>
  162. <th width="11%"></th>
  163. <th width="22%"></th>
  164. <th width="11%"></th>
  165. <th width="22%"></th>
  166. <th width="12%"></th>
  167. </tr>
  168. <tr align="center">
  169. <td align="right" >报告时间起:&nbsp;</td>
  170. <td align="left" ><input id="d4311" class="Wdate" name="startDate" value="${startDate}" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM',maxDate: '#F{$dp.$D(\'d4312\',{d:0})}'})"></td>
  171. <td align="right">报告时间止:&nbsp;</td>
  172. <td align="left" ><input id="d4312" class="Wdate" name="endDate" value="${endDate}" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM',minDate: '#F{$dp.$D(\'d4311\',{d:0})}'})"></td>
  173. <th width="12%"></th>
  174. </tr>
  175. <tr>
  176. <tr align="center">
  177. <td align="right" >航线分类:&nbsp;</td>
  178. <td align="left" >
  179. <select class='hxselectpicker' name="hx" id="hx">
  180. <option></option>
  181. <option value="1" <c:if test="${hx ==1}">selected</c:if>>国际航线</option>
  182. <option value="2" <c:if test="${hx ==2}">selected</c:if>>内支线</option>
  183. <option value="3" <c:if test="${hx ==3}">selected</c:if>>国内航线</option>
  184. </select>
  185. </td>
  186. <td align="right" ></td>
  187. <td align="left" ></td>
  188. <td align="left">
  189. <a class="btn btn-default btn-sm" href="#" onclick="searchMain()">
  190. <i class="glyphicon glyphicon-search"></i>检索</a>
  191. </td>
  192. </tr>
  193. <tr>
  194. </tr>
  195. </table>
  196. </form>
  197. </div>
  198. <h2 align="center" style="margin-top:20px;" ><font style="font-size:16px;color:#196794;font-family:微软雅黑;font-weight: bold;">
  199. (${startDate}月——${endDate}月)集装箱吞吐量统计图</font></h2>
  200. <br>
  201. <div id="container" style="min-width: 200px; min-height:300px; margin: 0 auto;"></div>
  202. </body>
  203. </html>