jzxttltj.jsp 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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. lang : {
  45. contextButtonTitle : "图表菜单",
  46. resetRoom : "重置",
  47. printChart : "打印图片",
  48. downloadJPEG : "下载JPEG 图片",
  49. downloadPDF : "下载PDF文档",
  50. downloadPNG : "下载PNG 图片",
  51. downloadSVG : "下载SVG 矢量图",
  52. exportButtonTitle : "导出图片",
  53. },
  54. xAxis: [{
  55. categories: eval(name)
  56. }],
  57. yAxis: [{ // Primary yAxis
  58. labels: {
  59. formatter: function() {
  60. return this.value +'%';
  61. },
  62. style: {
  63. color: '#89A54E'
  64. }
  65. },
  66. title: {
  67. text: '同比增长率',
  68. style: {
  69. color: '#89A54E'
  70. }
  71. },
  72. opposite: true,
  73. plotLines:[{
  74. color:'red', //线的颜色,定义为红色
  75. dashStyle:'ShortDash', //默认值,这里定义为实线
  76. value:aa, //定义在那个值上显示标示线,这里是在x轴上刻度为3的值处垂直化一条线
  77. width:2 //标示线的宽度,2px
  78. },{
  79. color:'yellow', //线的颜色,定义为红色
  80. dashStyle:'ShortDash', //默认值,这里定义为实线
  81. value:bb, //定义在那个值上显示标示线,这里是在x轴上刻度为1的值处垂直化一条线
  82. width:2 //标示线的宽度,2px
  83. }]
  84. }, { // Secondary yAxis
  85. min:0,
  86. gridLineWidth: 0,
  87. title: {
  88. text: '吞吐量',
  89. style: {
  90. color: '#4572A7'
  91. }
  92. },
  93. labels: {
  94. formatter: function() {
  95. return this.value +' 万吨';
  96. },
  97. style: {
  98. color: '#4572A7'
  99. }
  100. }
  101. }, { // Tertiary yAxis
  102. gridLineWidth: 0,
  103. title: {
  104. text: '环比增长率',
  105. style: {
  106. color: '#AA4643'
  107. }
  108. },
  109. labels: {
  110. formatter: function() {
  111. return this.value +' %';
  112. },
  113. style: {
  114. color: '#AA4643'
  115. }
  116. },
  117. opposite: true
  118. }],
  119. tooltip: {
  120. shared: true
  121. },
  122. series: [{
  123. name: '吞吐量',
  124. color: '#4572A7',
  125. type: 'column',
  126. yAxis: 1,
  127. data: eval('['+zttl+']'),
  128. tooltip: {
  129. valueSuffix: ' 万吨'
  130. }
  131. }, {
  132. name: '环比增长率',
  133. type: 'spline',
  134. color: '#AA4643',
  135. yAxis: 2,
  136. data: eval('['+hb+']'),
  137. marker: {
  138. enabled: false
  139. },
  140. dashStyle: 'shortdot',
  141. tooltip: {
  142. valueSuffix: ' %'
  143. }
  144. }, {
  145. name: '同比增长率',
  146. color: '#89A54E',
  147. type: 'spline',
  148. data: eval('['+tb+']'),
  149. tooltip: {
  150. valueSuffix: ' %'
  151. }
  152. }]
  153. });
  154. });
  155. function searchMain(){
  156. $("#jzxttltjform").submit();
  157. }
  158. </script>
  159. <style type="text/css">
  160. .main_table td{
  161. text-align:left;
  162. padding-left:20px;
  163. width:50px;
  164. }
  165. </style>
  166. </head>
  167. <body>
  168. <div style="margin-top:30px;">
  169. <form action="${app }/jzxttltj/main" id="jzxttltjform" method="post">
  170. <table class="search_table" cellpadding="0" cellspacing="0" align="center" >
  171. <tr>
  172. <th width="11%"></th>
  173. <th width="22%"></th>
  174. <th width="11%"></th>
  175. <th width="22%"></th>
  176. <th width="12%"></th>
  177. </tr>
  178. <tr align="center">
  179. <td align="right" >报告时间起:&nbsp;</td>
  180. <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>
  181. <td align="right">报告时间止:&nbsp;</td>
  182. <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>
  183. <th width="12%"></th>
  184. </tr>
  185. <tr>
  186. <tr align="center">
  187. <td align="right" >航线分类:&nbsp;</td>
  188. <td align="left" >
  189. <select class='hxselectpicker' name="hx" id="hx">
  190. <option></option>
  191. <option value="1" <c:if test="${hx ==1}">selected</c:if>>国际航线</option>
  192. <option value="2" <c:if test="${hx ==2}">selected</c:if>>内支线</option>
  193. <option value="3" <c:if test="${hx ==3}">selected</c:if>>国内航线</option>
  194. </select>
  195. </td>
  196. <td align="right" ></td>
  197. <td align="left" ></td>
  198. <td align="left">
  199. <a class="btn btn-default btn-sm" href="#" onclick="searchMain()">
  200. <i class="glyphicon glyphicon-search"></i>检索</a>
  201. </td>
  202. </tr>
  203. <tr>
  204. </tr>
  205. </table>
  206. </form>
  207. </div>
  208. <h2 align="center" style="margin-top:20px;" ><font style="font-size:16px;color:#196794;font-family:微软雅黑;font-weight: bold;">
  209. (${startDate}月——${endDate}月)集装箱吞吐量统计图</font></h2>
  210. <br>
  211. <div id="container" style="min-width: 200px; min-height:300px; margin: 0 auto;"></div>
  212. </body>
  213. </html>