From ae74235d8d7776d4db335c460529c929b0c00eb7 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期四, 07 四月 2022 15:26:38 +0800 Subject: [PATCH] # --- static/js/data/Asrs.js | 10 +++------- static/js/common.js | 2 +- static/js/utils/DataShow.js | 10 ++++++++-- views/index.html | 2 +- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/static/js/common.js b/static/js/common.js index 36f535e..9067b33 100644 --- a/static/js/common.js +++ b/static/js/common.js @@ -1,4 +1,4 @@ - +var baseUrl = "http://localhost:9090/jkwcs" function CommonFunction() { diff --git a/static/js/data/Asrs.js b/static/js/data/Asrs.js index ed54974..f3f286d 100644 --- a/static/js/data/Asrs.js +++ b/static/js/data/Asrs.js @@ -9,11 +9,9 @@ var Store3DData; function initStore() { $.ajax({ - // url: 'http://47.97.1.152:58080/jkwcs/three/init/store/v1', - url: 'http://localhost:9090/jkwcs/three/init/store/v1', + url: top.baseUrl + '/three/init/store/v1', type: "POST", data: {}, - // async: false, success: function (res) { Store3DData = res; } @@ -23,8 +21,7 @@ var CrnDatas = null; function queryCrnCurrent() { $.ajax({ - // url: 'http://47.97.1.152:58080/jkwcs/three/query/crn/cache/v1', - url: 'http://localhost:9090/jkwcs/three/query/crn/cache/v1', + url: top.baseUrl + '/three/query/crn/cache/v1', type: "GET", data: {}, success: function (res) { @@ -36,8 +33,7 @@ var StaDatas = null; function queryStaCurrent() { $.ajax({ - // url: 'http://47.97.1.152:58080/jkwcs/three/query/crn/cache/v1', - url: 'http://localhost:9090/jkwcs/three/query/sta/cache/v1', + url: top.baseUrl + '/three/query/sta/cache/v1', type: "GET", data: {}, success: function (res) { diff --git a/static/js/utils/DataShow.js b/static/js/utils/DataShow.js index a96c23f..0902ffc 100644 --- a/static/js/utils/DataShow.js +++ b/static/js/utils/DataShow.js @@ -8,8 +8,14 @@ let htmlText=''; switch (type) { case 'locNo': - htmlText+='<p>搴撲綅缂栧彿锛�'+ this.uuid +'</p>'; - + htmlText += '<p>搴撲綅缂栧彿锛�'+ this.uuid +'</p>'; + $.ajax({ + url: top.baseUrl + '/three/query/loc/detl/v1?locNo=' + this.uuid, + type: "GET", + success: function (res) { + console.log(res); + } + }) break case "wrkNo": htmlText+='<p>浠诲姟缂栧彿锛�'+ this.uuid +'</p>'; diff --git a/views/index.html b/views/index.html index cf9d409..fb35e6b 100644 --- a/views/index.html +++ b/views/index.html @@ -9,9 +9,9 @@ <link rel="stylesheet" href="../static/css/index.css"> <link rel="stylesheet" href="../static/css/loader.css" media="all"> <script type="text/javascript" src="../static/js/lib/jquery-3.3.1.min.js"></script> + <script type="text/javascript" src="../static/js/common.js"></script> <script type="text/javascript" src="../static/js/data/Asrs.js"></script> <script type="text/javascript" src="../static/js/utils.js"></script> - <script type="text/javascript" src="../static/js/common.js"></script> <script type="text/javascript" src="../static/js/lib/echarts.min.js"></script> <script type="text/javascript" src="../static/js/data/BuildingData.js"></script> <script type="text/javascript" src="../static/js/data/ConveyData.js"></script> -- Gitblit v1.9.1