maps.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
  6. <title>上海市卫生健康委公共服务机构GIS查询平台</title>
  7. <link rel="stylesheet" href="js/bootstrap/bootstrap.min.css">
  8. <script src="assets/js/jquery-3.1.0.js"></script>
  9. <script src="js/bootstrap/bootstrap.min.js"></script>
  10. <script src="assets/js/jquery.base64.js"></script>
  11. <script src="common/Config_JS/Config_Load.js"></script>
  12. <script src="common/DBUtil_JS/WsCommonClassJava.js"></script>
  13. <script src="common/ProjectClass/taskQueryDataBase.min.js"></script>
  14. <script src="common/dataClass/DataCommonClass.js"></script>
  15. <script src="common/dataClass/CreateTableByColumns.js"></script>
  16. <link rel="stylesheet" href="http://139.196.105.31/arcgis_js_api/library/4.17/esri/themes/light/main.css" />
  17. <script src="http://139.196.105.31/arcgis_js_api/library/4.17/init.js"></script>
  18. <link rel="stylesheet" href="assets/css/echartsLayerCss.css">
  19. <script src="common/mapClass/MapClassPostgis.min.js"></script>
  20. <style>
  21. html,
  22. body,
  23. #mapDiv {
  24. padding: 0;
  25. margin: 0;
  26. min-width: 650px;
  27. min-height: 500px;
  28. height: 100%;
  29. width: 100%;
  30. }
  31. #toolDiv{
  32. -moz-box-shadow: 2px 2px 10px rgba(0,0, 0, 0.4);
  33. -webkit-box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
  34. box-shadow:2px 2px 10px rgba(0, 0, 0, 0.4);
  35. z-index: 11;
  36. }
  37. #listDiv{
  38. min-width: 200px;
  39. -moz-box-shadow: 2px 2px 10px rgba(0,0, 0, 0.5);
  40. -webkit-box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  41. box-shadow:2px 2px 10px rgba(0, 0, 0, 0.5);
  42. /*background-clip: padding-box;*/
  43. z-index: 10;
  44. }
  45. .borderDiv{
  46. border-radius:10px;
  47. border: 1px solid #9d9d9d;
  48. padding: 10px;
  49. }
  50. .linearText {
  51. display: inline-block;
  52. background-image: -webkit-linear-gradient(bottom, rgb(7, 33, 119), rgb(151, 178, 252), rgb(0, 217, 255));
  53. -webkit-background-clip: text;
  54. -webkit-text-fill-color: transparent;
  55. }
  56. .titleText{
  57. font-size:1.5em
  58. }
  59. .subTitleText{
  60. font-size:0.5em
  61. }
  62. </style>
  63. <script>
  64. $(function () {
  65. initDo();
  66. showLoadingWin();
  67. });
  68. function resizeDiv(){
  69. let height=$(window).height()-$("#toolDiv").height();
  70. console.log(height);
  71. $("#listDiv").css("height",height+"px");
  72. $("#mapDiv").css("height",height+"px");
  73. }
  74. function initDo() {
  75. if (global_config_json) {
  76. $(window).resize(function(){
  77. resizeDiv();
  78. });
  79. resizeDiv();
  80. initTDMap();
  81. }else
  82. {
  83. setTimeout(initDo,100);
  84. }
  85. }
  86. function mapLoaded() {
  87. getEmu();
  88. hideLoadingWin();
  89. }
  90. function getEmu(){
  91. getEmuQuName();
  92. getHospitalType();
  93. }
  94. function ddlQu_change(){
  95. getEmuStreetName($("#ddlQu").val());
  96. }
  97. function btSearchClick(){
  98. searchHospital();
  99. }
  100. function btSearchKeyClick(){
  101. searchHospitalStreet();
  102. }
  103. </script>
  104. </head>
  105. <body>
  106. <div id="toolDiv" class="col-lg-12 col-md-12 col-sm-12">
  107. <!-- 表头-->
  108. <table>
  109. <tr>
  110. <td rowspan="2"><img src="assets/images/LOGO.png"></td>
  111. <td><label class="linearText titleText" style="vertical-align: bottom;display: table-cell">上海市卫生健康委公共服务机构GIS查询平台</label></td>
  112. <td rowspan="2"><div class="borderDiv" style="margin-left: 100px;">
  113. <input id="txtSearchKey" type="text" placeholder="输入机构名或地址进行模糊查询" onblur="AntiSqlValid(this)" style="width: 300px;height: 26px;">
  114. <button class="glyphicon glyphicon-search" onclick="btSearchKeyClick()" style="height: 26px;"></button>
  115. </div></td>
  116. </tr>
  117. <tr>
  118. <td class="text-center"><a class="linearText subTitleText" href="https://wsjkw.sh.gov.cn" target="_blank" style="vertical-align: top;">https://wsjkw.sh.gov.cn</a></td>
  119. </tr>
  120. </table>
  121. </div>
  122. <div class="col-lg-2 col-sm-4 col-md-3" id="listDiv">
  123. <h4><label for="ddlListDiv">机构点查询</label></h4>
  124. <div id="ddlListDiv" class="borderDiv">
  125. <label for="ddlQu">区县选择</label>
  126. <select id="ddlQu" class="form-control" onchange="ddlQu_change()"></select>
  127. <label for="ddlJd">街道选择</label>
  128. <select id="ddlJd" class="form-control">
  129. <option value="-1">全部街镇</option>
  130. </select>
  131. <label for="ddlHospitalType">机构选择</label>
  132. <select id="ddlHospitalType" class="form-control"></select>
  133. <div class="text-right">
  134. <button class="btn btn-primary" onclick="clearSearchSelect();">重置</button>
  135. <button id="btSearch" class="btn btn-success" onclick="btSearchClick()">搜索</button>
  136. </div>
  137. <div class="panel panel-success">
  138. <div class="panel-heading" style="background-color: rgba(87,147,216,0.9);color:white;">
  139. <h3 class="panel-title">
  140. 机构名称
  141. </h3>
  142. </div>
  143. <div class="panel-body" style="background-color: #b7cde9">
  144. <div id="divDataListHouse"></div>
  145. <ul class="pagination pagination-sm" id="divDataListHousePage">
  146. </ul>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. <div class="col-lg-10 col-sm-8 col-md-9" style="padding-left: 0px;">
  152. <div id="mapDiv">
  153. </div>
  154. </div>
  155. <div class="modal fade" id="my-modal-loading" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  156. <div class="modal-dialog">
  157. <div class="modal-content">
  158. <div class="modal-body">正在加载地图,请稍后...</div>
  159. </div><!-- /.modal-content -->
  160. </div><!-- /.modal -->
  161. </div>
  162. <input type="hidden" id="hidHouseId">
  163. <input type="hidden" id="hidProjectId">
  164. </body>
  165. </html>