jzxttltj.jsp 7.3 KB

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