default.jsp.bak 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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. <li class="center table-cell">路线</li>
  64. </ul>
  65. </div>
  66. <div class="table-footer-group">
  67. <ul class="table-row-head">
  68. <li class="center table-cell">合计</li>
  69. <li class="center table-cell">9256个</li>
  70. <li class="center table-cell">1400个</li>
  71. <li class="center table-cell">50个</li>
  72. <li class="center table-cell">4436KM</li>
  73. </ul>
  74. </div>
  75. <div class="table-row-group">
  76. <ul class="table-row-1">
  77. <li class="center table-cell" style="line-height:29px;">江苏省高速公路经营管理中心</li>
  78. <li class="center table-cell">1417个</li>
  79. <li class="center table-cell">125个</li>
  80. <li class="center table-cell">8个</li>
  81. <li class="center table-cell">917KM</li>
  82. </ul>
  83. <ul class="table-row-2">
  84. <li class="center table-cell" style="line-height:29px;">江苏宁杭高速公路有限公司</li>
  85. <li class="center table-cell">311个</li>
  86. <li class="center table-cell">125个</li>
  87. <li class="center table-cell">8个</li>
  88. <li class="center table-cell">179KM</li>
  89. </ul>
  90. <ul class="table-row-1">
  91. <li class="center table-cell" style="line-height:29px;">江苏宁靖盐高速公路有限公司</li>
  92. <li class="center table-cell">474个</li>
  93. <li class="center table-cell">125个</li>
  94. <li class="center table-cell">8个</li>
  95. <li class="center table-cell">270KM</li>
  96. </ul>
  97. <ul class="table-row-2">
  98. <li class="center table-cell">江苏宁宿徐高速公司有限公司</li>
  99. <li class="center table-cell">750个</li>
  100. <li class="center table-cell">92个</li>
  101. <li class="center table-cell">2个</li>
  102. <li class="center table-cell">307KM</li>
  103. </ul>
  104. <ul class="table-row-1">
  105. <li class="center table-cell">江苏宿淮盐高速公路管理有限公司</li>
  106. <li class="center table-cell">763个</li>
  107. <li class="center table-cell">89个</li>
  108. <li class="center table-cell">2个</li>
  109. <li class="center table-cell">242KM</li>
  110. </ul>
  111. <ul class="table-row-2">
  112. <li class="center table-cell">江苏广靖锡澄高速公路有限责任公司</li>
  113. <li class="center table-cell">799个</li>
  114. <li class="center table-cell">88个</li>
  115. <li class="center table-cell">1个</li>
  116. <li class="center table-cell">349KM</li>
  117. </ul>
  118. <ul class="table-row-1">
  119. <li class="center table-cell">江苏东部高速公路管理有限公司</li>
  120. <li class="center table-cell">768个</li>
  121. <li class="center table-cell">95个</li>
  122. <li class="center table-cell">2个</li>
  123. <li class="center table-cell">456KM</li>
  124. </ul>
  125. <ul class="table-row-2">
  126. <li class="center table-cell">江苏宁常镇溧高速公路有限公司</li>
  127. <li class="center table-cell">396个</li>
  128. <li class="center table-cell">67个</li>
  129. <li class="center table-cell">1个</li>
  130. <li class="center table-cell">189KM</li>
  131. </ul>
  132. <ul class="table-row-1">
  133. <li class="center table-cell" style="line-height:29px;">江苏宁沪高速公路股份有限公司</li>
  134. <li class="center table-cell">734个</li>
  135. <li class="center table-cell">125个</li>
  136. <li class="center table-cell">8个</li>
  137. <li class="center table-cell">265KM</li>
  138. </ul>
  139. <ul class="table-row-2">
  140. <li class="center table-cell">江苏扬子大桥股份有限公司</li>
  141. <li class="center table-cell">162个</li>
  142. <li class="center table-cell">115个</li>
  143. <li class="center table-cell">7个</li>
  144. <li class="center table-cell">58KM</li>
  145. </ul>
  146. <ul class="table-row-1">
  147. <li class="center table-cell">江苏京沪高速公路有限公司</li>
  148. <li class="center table-cell">748个</li>
  149. <li class="center table-cell">124个</li>
  150. <li class="center table-cell">6个</li>
  151. <li class="center table-cell">373KM</li>
  152. </ul>
  153. <ul class="table-row-2">
  154. <li class="center table-cell">江苏苏通大桥有限责任公司</li>
  155. <li class="center table-cell">682个</li>
  156. <li class="center table-cell">110个</li>
  157. <li class="center table-cell">6个</li>
  158. <li class="center table-cell">73KM</li>
  159. </ul>
  160. <ul class="table-row-1">
  161. <li class="center table-cell">江苏润扬大桥发展有限责任公司</li>
  162. <li class="center table-cell">118个</li>
  163. <li class="center table-cell">108个</li>
  164. <li class="center table-cell">5个</li>
  165. <li class="center table-cell">35KM</li>
  166. </ul>
  167. <ul class="table-row-2">
  168. <li class="center table-cell">江苏泰州大桥有限公司</li>
  169. <li class="center table-cell">68个</li>
  170. <li class="center table-cell">106个</li>
  171. <li class="center table-cell">3个</li>
  172. <li class="center table-cell">130KM</li>
  173. </ul>
  174. <ul class="table-row-1">
  175. <li class="center table-cell">江苏连徐高速有限公司</li>
  176. <li class="center table-cell">1228个</li>
  177. <li class="center table-cell">104个</li>
  178. <li class="center table-cell">3个</li>
  179. <li class="center table-cell">397KM</li>
  180. </ul>
  181. <ul class="table-row-2">
  182. <li class="center table-cell">江苏沿江高速有限公司</li>
  183. <li class="center table-cell">786个</li>
  184. <li class="center table-cell">102个</li>
  185. <li class="center table-cell">3个</li>
  186. <li class="center table-cell">196KM</li>
  187. </ul>
  188. <!-- <ul class="table-row-2">
  189. <li class="center table-cell">江苏汾灌高速公路管理有限公司</li>
  190. <li class="center table-cell">150个</li>
  191. <li class="center table-cell">75个</li>
  192. <li class="center table-cell">1个</li>
  193. <li class="center table-cell">252KM</li>
  194. </ul> -->
  195. </div>
  196. </div>
  197. <!-- 加载地图JSAPI脚本 -->
  198. <script src="https://webapi.amap.com/maps?v=1.4.13&key=870d02557626b11b47494ec4cdeba2aa"></script>
  199. <script>
  200. var map = new AMap.Map('container', {
  201. resizeEnable: true, //是否监控地图容器尺寸变化
  202. zoom:7, //初始化地图层级
  203. center: [119.01381,32.951424] //初始化地图中心点
  204. });
  205. $(function(){
  206. getTop(globalThis).hangge();
  207. $.ajax({
  208. type : "get",
  209. url : '<%=basePath%>' + 'main/getMapData',
  210. dataType : 'json',
  211. success : function(data){
  212. var polylines = [];
  213. var path = [];
  214. var currroad = '12345';
  215. for(var i=0;i<data.length;i++){
  216. if(data[i].ROAD_NO != currroad){
  217. if(path.length > 0) polylines.push(new AMap.Polyline({path: path}));
  218. path = [];
  219. currroad = data[i].ROAD_NO;
  220. }
  221. path.push(new AMap.LngLat(data[i].LONGITUDE,data[i].LATITUDE));
  222. if(!isNaN(data[i].LONGITUDE) && !isNaN(data[i].LATITUDE)){
  223. path.push(new AMap.LngLat(data[i].LONGITUDE,data[i].LATITUDE));
  224. }
  225. }
  226. /* var path = [
  227. new AMap.LngLat("119.168904","32.913423"),
  228. new AMap.LngLat('119.152341','32.15381')
  229. ]; */
  230. polylines.push(new AMap.Polyline({path: path}));
  231. var overlayGroup = new AMap.OverlayGroup(polylines);
  232. overlayGroup.setOptions({
  233. strokeColor: 'red',
  234. strokeWeight: 3
  235. });
  236. map.add(overlayGroup);
  237. }
  238. });
  239. });
  240. </script>
  241. </body>
  242. </html>