jtgdzctzfx.jsp 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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('${zzbl}'!=''){
  25. $("#zzbl").val('${zzbl}');
  26. }
  27. }
  28. function initChart(){
  29. var amount = ${amountList};
  30. var month = ${dateList};
  31. var bl = ${bl}
  32. $('#container').highcharts({
  33. chart: {
  34. zoomType: 'xy'
  35. },
  36. lang : {
  37. contextButtonTitle : "图表菜单",
  38. resetRoom : "重置",
  39. printChart : "打印图片",
  40. downloadJPEG : "下载JPEG 图片",
  41. downloadPDF : "下载PDF文档",
  42. downloadPNG : "下载PNG 图片",
  43. downloadSVG : "下载SVG 矢量图",
  44. exportButtonTitle : "导出图片",
  45. },
  46. title: {
  47. text: ''
  48. },
  49. xAxis: [{
  50. categories: month,
  51. }],
  52. yAxis: [{
  53. labels: {
  54. format: '{value}%',
  55. style: {
  56. color: '#89A54E'
  57. }
  58. },
  59. title: {
  60. text: '增长比率',
  61. style: {
  62. color:'#89A54E'
  63. }
  64. }
  65. }, { // Secondary yAxis
  66. title: {
  67. text: '交通固定资产投资',
  68. style: {
  69. color: '#4572A7'
  70. }
  71. },
  72. labels: {
  73. format: '{value}万元',
  74. style: {
  75. color: '#4572A7'
  76. }
  77. },
  78. opposite: true
  79. }],
  80. tooltip: {
  81. shared: true
  82. },
  83. series: [{
  84. name: '交通固定资产投资',
  85. type: 'column',
  86. yAxis: 1,
  87. data: amount,
  88. tooltip: {
  89. valueSuffix: '万元'
  90. }
  91. }, {
  92. name: '增长比率',
  93. type: 'spline',
  94. data: bl,
  95. tooltip: {
  96. valueSuffix: '%'
  97. }
  98. }]
  99. });
  100. }
  101. </script>
  102. <body>
  103. <form action="${app }/jtgdzctzfx/main" id="jtgdzctzfxform" method="post" style="margin-top: 30px">
  104. <div>
  105. <table class="search_table" cellpadding="0" cellspacing="0">
  106. <tr>
  107. <th width="11%"></th>
  108. <th width="22%"></th>
  109. <th width="11%"></th>
  110. <th width="22%"></th>
  111. <th width="12%"></th>
  112. <th width="22%"></th>
  113. </tr>
  114. <tr>
  115. <td class="right">
  116. 选择日期:&nbsp;
  117. </td>
  118. <td>
  119. <input id="startDate" class="Wdate" style="width:80%;" name="startDate" value="${startDate}" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM',maxDate: '#F{$dp.$D(\'endDate\',{d:0})}'})">
  120. </td>
  121. <td class="middle">~</td>
  122. <td>
  123. <input id="endDate" class="Wdate" style="width:80%;" name="endDate" value="${endDate}" type="text" onFocus="WdatePicker({lang:'zh-cn',skin:'default',dateFmt:'yyyy-MM',minDate: '#F{$dp.$D(\'startDate\',{d:0})}'})">
  124. </td>
  125. <td class="right">
  126. 请选择增长比率:&nbsp;
  127. </td>
  128. <td>
  129. <span><select id="zzbl" name="zzbl" class="form-control" style="width: 80%">
  130. <option value="tb">同比</option>
  131. <option value="hb">环比</option>
  132. <option value="zs">增速</option>
  133. </select></span>
  134. </td>
  135. <td>
  136. <a class="btn btn-default btn-sm" href="#" onclick="$('#jtgdzctzfxform').submit()">
  137. <i class="glyphicon glyphicon-search"></i>查询
  138. </a>
  139. </td>
  140. </tr>
  141. </table>
  142. </div>
  143. </form>
  144. <h2 align="center" style="margin-top:20px;" ><font style="font-size:16px;color:#196794;font-family:微软雅黑;font-weight: bold;">
  145. (${startDate}月——${endDate}月)交通固定资产投资分析</font></h2>
  146. <br>
  147. <div id="container" style="min-width:400px;height:400px"></div>
  148. </body>
  149. </html>