From f521ebc2551d468c4c478783a18d4b0714394d61 Mon Sep 17 00:00:00 2001 From: suerprisePlus <15810472099@163.com> Date: 星期一, 14 十月 2024 15:00:13 +0800 Subject: [PATCH] 配网大屏功能优化 --- public/config/config.js | 63 +++++++++++++++++++++++++++++++ 1 files changed, 62 insertions(+), 1 deletions(-) diff --git a/public/config/config.js b/public/config/config.js index a46bb66..4099b48 100644 --- a/public/config/config.js +++ b/public/config/config.js @@ -1 +1,62 @@ -console.log(location) \ No newline at end of file +console.log(location); +const host = location.origin; +const isWeb = false; +var isUrl = isWeb ? "103.135.160.14" : "192.168.11.24"; +// api绔彛 +const apiHost = isWeb ? isUrl + "" : isUrl + ":12316"; +// 閰嶇綉绔彛 +const peiWangHost = isWeb ? isUrl + "" : isUrl + ":8101"; +// GeoServer绔彛 +const geoHost = isWeb ? isUrl + "" : isUrl + ":9055"; +// {host}鏇挎崲 +const iisHost = isWeb ? isUrl + ":9036" : "localhost:80"; +// 鐭ヨ瘑鍥捐氨绔彛 +const kgHost = isWeb ? isUrl + ":9036" : isUrl + ":8080"; +// 鏁版嵁鍒嗘瀽绔彛 +const pyHost = isWeb ? isUrl + ":9036" : isUrl + ":8000"; +//rag绔彛 +const ragHost = isWeb ? isUrl + ":9036" : "192.168.11.24:8103"; +// 鏈湴鏁版嵁鍦板潃 +const pwythHost = "http://localhost/pwyth"; +//閰嶇疆 +const config = { + // server鏈嶅姟 + apiServices: "http://" + apiHost + "/server/", + // 鐭ヨ瘑鍥捐氨鏈嶅姟 + kgServices: "http://" + kgHost, + // 閰嶇綉鏈嶅姟 + peiWangServices: "http://" + peiWangHost + "/peiwang/", + //鏁版嵁鍒嗘瀽鎺ュ彛 + pyServices: "http://" + pyHost + "/py", + //rag鏈嶅姟鍦板潃 + // ragServices: "http://" + ragHost+ "/api/vi", + ragServices: "http://" + ragHost+ "/rag_sxdw/api/vi", + imageUrl: "", + // sdk鏄剧ず + sdkImg: host + "/CimSDK/", + // 澶╁湴鍥� + tdToken: "94a34772eb88317fcbf8428e10448561", + // geoServer鏈嶅姟 + geoServer: { + url: "http://" + geoHost + "/geoserver/sxpw", + wms: "/wms", + wfs: "", + layers:["sxpw:sxdwx","sxpw:tygdtif17"] + + }, + pySocket:"ws://192.168.11.24:8101/peiwang/ws/asset", + //鍦颁笅鏁版嵁 + terrain: { + isShow: false, + isUrl: pwythHost + "/terrain/" + }, + domTilesets: { + url: pwythHost + "/qingxie/tileset.json" + }, + baseModel:{ + serveType: 'Tileset', + url: pwythHost + "/modles/TY/tileset.json", + cnName:"baseModel", + id:"baseModel", + }, +}; -- Gitblit v1.9.3