ZhuDongming
2020-06-22 6af4ca37a5fa72cedaadfc202e56c9729353fe0a
src/main/webapp/view/newmap.jsp
@@ -347,10 +347,10 @@
        <div class="charts_btn">
        </div>
    </div>
   <%-- <div class="search_box">
        <button id="searchBtn" type="button">搜索</button>
        <textarea style="width: 300px;height:400px;" id="searchParam"></textarea>
    </div>--%>
    <%-- <div class="search_box">
         <button id="searchBtn" type="button">搜索</button>
         <textarea style="width: 300px;height:400px;" id="searchParam"></textarea>
     </div>--%>
    <!-- <div id="popup_box">
          <div id="equ_list" class="listview">
          </div>
@@ -366,6 +366,8 @@
<script>
    //页面初始化
    (function ($) {
        var hostAndPort = document.location.host;
        var hostAddress = hostAndPort.substr(0, hostAndPort.length - 4);
        var moralMap = window.moralMap;
        var params = $.parseJSON($("#mapParams").html());
        moralMap['params'] = params;
@@ -642,7 +644,7 @@
        if (typeof (WebSocket) === "undefined") {
            alert("您的浏览器不支持WebSocket");
        } else {
            ws = new WebSocket('ws://47.96.15.25:8080/screen/webSocket/' + orgId + '&' + regionCode);
            ws = new WebSocket('ws://' + hostAddress + '8080/screen/webSocket/' + orgId + '&' + regionCode);
            ws.onopen = function () {
            };