From 27d1521eb54fd9fda4a8415b059df23d8db2a883 Mon Sep 17 00:00:00 2001 From: ZhuDongming <773644075@qq.com> Date: Wed, 24 Jun 2020 11:28:29 +0800 Subject: [PATCH] update --- src/main/webapp/view/newmap.jsp | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/view/newmap.jsp b/src/main/webapp/view/newmap.jsp index 9ff1067..7e39dbc 100644 --- a/src/main/webapp/view/newmap.jsp +++ b/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,7 @@ <script> //��������������� (function ($) { + var hostAndPort = document.location.host; var moralMap = window.moralMap; var params = $.parseJSON($("#mapParams").html()); moralMap['params'] = params; @@ -642,7 +643,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://' + hostAndPort + '/screen/webSocket/' + orgId + '&' + regionCode); ws.onopen = function () { }; @@ -770,7 +771,7 @@ function callJS(jsonData) { var jsonData = JSON.parse(jsonData); var methodName = jsonData.methodName; - $("#searchParam").val(JSON.stringify(jsonData)); + // $("#searchParam").val(JSON.stringify(jsonData)); if ("JumpBaiduMap" == methodName) { moralMap.callJS(jsonData); } else if ("RefreshState" == methodName) { -- Gitblit v1.8.0