From 36fbd1e5a40e319e6ac5f43d11c99ba4b66e93a3 Mon Sep 17 00:00:00 2001 From: surprise <15810472099@163.com> Date: 星期三, 29 十一月 2023 16:50:16 +0800 Subject: [PATCH] 坡度分析下载修改 --- public/config/config.js | 29 ++++++++++++++++++++++++++--- 1 files changed, 26 insertions(+), 3 deletions(-) diff --git a/public/config/config.js b/public/config/config.js index f6a3fee..d5b83f2 100644 --- a/public/config/config.js +++ b/public/config/config.js @@ -1,5 +1,28 @@ -const BASE_URL = "http://192.168.20.83:8088/MoonServer/"; //鍚庣鎺ュ彛鍦板潃 -// const BASE_URL = "http://192.168.20.106:9000/MoonServer/"; //鍚庣鎺ュ彛鍦板潃 +//鏄惁涓虹敓浜х幆澧� +var isWeb = location.hostname.indexOf("103.85.165.") > -1; +//鏄惁涓虹敓浜х幆澧� +const webUrl = location.href.indexOf("/web") > -1 ? "/web" : ""; +// var webHost = isWeb ? "103.85.165.99" + ":28888" : '106.120.22.35' + ":28888"; +var webHost = isWeb ? "103.85.165.99" + ":28888" : '192.168.20.83' + ":8888"; +// var webHost = isWeb ? "103.85.165.99" + ":28888" : '100.10.1.169' + ":8088"; +// WebSocket 鏈嶅姟鍦板潃 +var socketUrl = 'ws://' + webHost + '/MoonServer/ws/select'; +//閰嶇疆鏂囦欢鍦板潃 +const config = { + mapMoon: webUrl + "/mapscreen/index.html", + //鍧″害鍒嗘瀽鍥惧眰 + esri: 'https://192.168.22.61:6443/arcgis/services/鏃犳爣棰�/MapServer/WMSServer?', + //SDK璁稿彲 + StaticFileBaseUrl: webUrl + "/WebSDK/", -var isWeb = location.hostname.indexOf("103.85.165.") > -1; \ No newline at end of file + proxy: "http://" + webHost + "/MoonServer", + + BASE_URL: "http://" + webHost + "/MoonServer", + + conditions: [ + ["=", "<>", "like"], + [">=", ">", " =", "<=", "<", "<>"], + [">=", ">", " =", "<=", "<", "<>"], + ], +}; -- Gitblit v1.9.3