default.jsp 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  4. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  5. <%
  6. String path = request.getContextPath();
  7. String basePath = request.getScheme() + "://"
  8. + request.getServerName() + ":" + request.getServerPort()
  9. + path + "/";
  10. %>
  11. <!DOCTYPE html>
  12. <html lang="en">
  13. <head>
  14. <base href="<%=basePath%>">
  15. <!-- jsp文件头和头部 -->
  16. <%@ include file="../index/top.jsp"%>
  17. <!-- 百度echarts -->
  18. <script src="plugins/echarts/echarts.min.js"></script>
  19. <script type="text/javascript">
  20. setTimeout("getTop(globalThis).hangge()",500);
  21. </script>
  22. <style>
  23. html,
  24. body,
  25. #container {
  26. width: 80%;
  27. height: 100%;
  28. }
  29. ul{margin:0;padding:0;list-style:none;}
  30. .table1 {
  31. display: table;
  32. border-collapse: collapse;
  33. border: 1px solid #ccc;
  34. width: 76%;
  35. height: 100%;
  36. position: relative;
  37. left: 80%;
  38. top: -100%;
  39. }
  40. .table-caption{display:table-caption;margin:0;padding:0;font-size:16px;}
  41. .table-column-group{display:table-column-group;}
  42. .table-column{display:table-column;width:100px;}
  43. .table-row-group{display:table-row-group;}
  44. .table-row-head{display:table-row;background:#BCD2EE;}
  45. .table-row-1{display:table-row;background:#CCCCCC;}
  46. .table-row-2{display:table-row;background:#EAEAEA;}
  47. .table-row-group .table-row-1:hover,.table-footer-group .table-row-1:hover{background:#f6f6f6;}
  48. .table-row-group .table-row-2:hover,.table-footer-group .table-row-2:hover{background:#f6f6f6;}
  49. .table-cell{display:table-cell;padding:0 0px;white-space:nowrap;border:1px solid #ccc;vertical-align: middle;}
  50. .table-header-group{display:table-header-group;font-weight:bold;font-size:18px;}
  51. .table-footer-group{display:table-footer-group;font-weight:bold;font-size:18px;}
  52. </style>
  53. </head>
  54. <body>
  55. <div id="container"></div>
  56. <div class="table1">
  57. <div class="table-header-group">
  58. <ul class="table-row-head">
  59. <li class="center table-cell">路公司</li>
  60. <li class="center table-cell">桥梁</li>
  61. <li class="center table-cell">隧道</li>
  62. <li class="center table-cell">路线</li>
  63. </ul>
  64. </div>
  65. <div class="table-footer-group">
  66. <ul class="table-row-head">
  67. <li class="center table-cell">合计</li>
  68. <li class="center table-cell">5994个</li>
  69. <li class="center table-cell">3个</li>
  70. <li class="center table-cell">4870.14KM</li>
  71. </ul>
  72. </div>
  73. <div class="table-row-group">
  74. <ul class="table-row-1">
  75. <li class="center table-cell" style="line-height:29px;">江苏省高速公路经营管理中心</li>
  76. <li class="center table-cell">960个</li>
  77. <li class="center table-cell">1个</li>
  78. <li class="center table-cell">465.4KM</li>
  79. </ul>
  80. <ul class="table-row-2">
  81. <li class="center table-cell" style="line-height:29px;">江苏宁沪高速公路股份有限公司</li>
  82. <li class="center table-cell">590个</li>
  83. <li class="center table-cell">1个</li>
  84. <li class="center table-cell">373.77KM</li>
  85. </ul>
  86. <ul class="table-row-1">
  87. <li class="center table-cell">江苏京沪高速公路有限公司</li>
  88. <li class="center table-cell">409个</li>
  89. <li class="center table-cell">0个</li>
  90. <li class="center table-cell">459.98KM</li>
  91. </ul>
  92. <ul class="table-row-2">
  93. <li class="center table-cell">江苏扬子江高速通道管理有限公司</li>
  94. <li class="center table-cell">351个</li>
  95. <li class="center table-cell">0个</li>
  96. <li class="center table-cell">266.8KM</li>
  97. </ul>
  98. <ul class="table-row-1">
  99. <li class="center table-cell">江苏苏通大桥有限责任公司</li>
  100. <li class="center table-cell">182个</li>
  101. <li class="center table-cell">0个</li>
  102. <li class="center table-cell">243.81KM</li>
  103. </ul>
  104. <ul class="table-row-2">
  105. <li class="center table-cell">江苏润扬大桥发展有限责任公司</li>
  106. <li class="center table-cell">55个</li>
  107. <li class="center table-cell">0个</li>
  108. <li class="center table-cell">34.35KM</li>
  109. </ul>
  110. <ul class="table-row-1">
  111. <li class="center table-cell">江苏泰州大桥有限公司</li>
  112. <li class="center table-cell">121个</li>
  113. <li class="center table-cell">0个</li>
  114. <li class="center table-cell">90.92KM</li>
  115. </ul>
  116. <ul class="table-row-2">
  117. <li class="center table-cell">江苏连徐高速公路有限公司</li>
  118. <li class="center table-cell">762个</li>
  119. <li class="center table-cell">0个</li>
  120. <li class="center table-cell">468.6KM</li>
  121. </ul>
  122. <ul class="table-row-1">
  123. <li class="center table-cell">江苏沿江高速公路有限公司</li>
  124. <li class="center table-cell">305个</li>
  125. <li class="center table-cell">0个</li>
  126. <li class="center table-cell">287.7KM</li>
  127. </ul>
  128. <ul class="table-row-2">
  129. <li class="center table-cell" style="line-height:29px;">江苏宁杭高速公路有限公司</li>
  130. <li class="center table-cell">251个</li>
  131. <li class="center table-cell">1个</li>
  132. <li class="center table-cell">273.57KM</li>
  133. </ul>
  134. <ul class="table-row-1">
  135. <li class="center table-cell" style="line-height:29px;">江苏宁靖盐高速公路有限公司</li>
  136. <li class="center table-cell">469个</li>
  137. <li class="center table-cell">0个</li>
  138. <li class="center table-cell">356.26KM</li>
  139. </ul>
  140. <ul class="table-row-2">
  141. <li class="center table-cell">江苏宁宿徐高速公路有限公司</li>
  142. <li class="center table-cell">558个</li>
  143. <li class="center table-cell">0个</li>
  144. <li class="center table-cell">356.18KM</li>
  145. </ul>
  146. <ul class="table-row-1">
  147. <li class="center table-cell">江苏东部高速公路管理有限公司</li>
  148. <li class="center table-cell">500个</li>
  149. <li class="center table-cell">0个</li>
  150. <li class="center table-cell">522.9KM</li>
  151. </ul>
  152. <ul class="table-row-2">
  153. <li class="center table-cell">江苏宿淮盐高速公路管理有限公司</li>
  154. <li class="center table-cell">481个</li>
  155. <li class="center table-cell">0个</li>
  156. <li class="center table-cell">289.07KM</li>
  157. </ul>
  158. <!-- <ul class="table-row-2">
  159. <li class="center table-cell">江苏汾灌高速公路管理有限公司</li>
  160. <li class="center table-cell">150个</li>
  161. <li class="center table-cell">75个</li>
  162. <li class="center table-cell">1个</li>
  163. <li class="center table-cell">252KM</li>
  164. </ul> -->
  165. </div>
  166. </div>
  167. <!-- 加载地图JSAPI脚本 -->
  168. <script src="https://webapi.amap.com/maps?v=1.4.13&key=870d02557626b11b47494ec4cdeba2aa"></script>
  169. <script>
  170. var map = new AMap.Map('container', {
  171. resizeEnable: true, //是否监控地图容器尺寸变化
  172. zoom:7, //初始化地图层级
  173. center: [119.01381,32.951424] //初始化地图中心点
  174. });
  175. $(function(){
  176. getTop(globalThis).hangge();
  177. $.ajax({
  178. type : "get",
  179. url : '<%=basePath%>' + 'main/getMapData',
  180. dataType : 'json',
  181. success : function(data){
  182. var polylines = [];
  183. var path = [];
  184. var currroad = '12345';
  185. for(var i=0;i<data.length;i++){
  186. if(data[i].ROAD_NO != currroad){
  187. if(path.length > 0) polylines.push(new AMap.Polyline({path: path}));
  188. path = [];
  189. currroad = data[i].ROAD_NO;
  190. }
  191. path.push(new AMap.LngLat(data[i].LONGITUDE,data[i].LATITUDE));
  192. if(!isNaN(data[i].LONGITUDE) && !isNaN(data[i].LATITUDE)){
  193. path.push(new AMap.LngLat(data[i].LONGITUDE,data[i].LATITUDE));
  194. }
  195. }
  196. /* var path = [
  197. new AMap.LngLat("119.168904","32.913423"),
  198. new AMap.LngLat('119.152341','32.15381')
  199. ]; */
  200. polylines.push(new AMap.Polyline({path: path}));
  201. var overlayGroup = new AMap.OverlayGroup(polylines);
  202. overlayGroup.setOptions({
  203. strokeColor: 'red',
  204. strokeWeight: 3
  205. });
  206. map.add(overlayGroup);
  207. }
  208. });
  209. });
  210. </script>
  211. </body>
  212. </html>