|
|
@@ -1,5 +1,6 @@
|
|
|
-// var serverPath = "http://121.43.55.7"; // 互
|
|
|
-var serverPath = "http://10.235.245.174"; // 政
|
|
|
+// 部署环境【互联网、政务网】
|
|
|
+const serverType = "互联网";
|
|
|
+var serverPath = serverType == "互联网" ? "http://121.43.55.7" : "http://10.235.245.174"; // 政
|
|
|
let systemConfig = {
|
|
|
/* 通用全局变量 */
|
|
|
defaultAccount: {
|
|
|
@@ -25,35 +26,39 @@ let systemConfig = {
|
|
|
*
|
|
|
*/
|
|
|
|
|
|
- // 互联网环境
|
|
|
+ // 互联网环境
|
|
|
// modelIds: [1667, 1690, 1677, 1673,1780],
|
|
|
// columnIds: [1657, 1659, 1666, 1676, 1665, 1651, 1662,1736],
|
|
|
// 政务网环境
|
|
|
- modelIds: [1780, 1777, 1783, 1785, 2154],
|
|
|
- columnIds: [2429, 2428, 2426, 2425, 2430, 2432, 2431, 2840],
|
|
|
+ modelIds:
|
|
|
+ serverType == "互联网" ? [1667, 1690, 1677, 1673, 1780] : [1780, 1777, 1783, 1785, 2154],
|
|
|
+ columnIds:
|
|
|
+ serverType == "互联网"
|
|
|
+ ? [1657, 1659, 1666, 1676, 1665, 1651, 1662, 1736]
|
|
|
+ : [2429, 2428, 2426, 2425, 2430, 2432, 2431, 2840],
|
|
|
|
|
|
- preCountDmsId: 2436, // 政务网 2436 互联网 1652
|
|
|
+ preCountDmsId: serverType == "互联网" ? 1652 : 2436, // 政务网 2436 互联网 1652
|
|
|
|
|
|
// oauth和DMS环境
|
|
|
- backServerPath: serverPath, // 运行管理中使用
|
|
|
+ backServerPath: serverPath, // 运行管理中使用
|
|
|
|
|
|
iframeUrl: serverPath + ":2024/",
|
|
|
|
|
|
// baseServicerPath: "/oneMap",
|
|
|
- baseServicerPath: serverPath + ":1201/qpyzt", // 政 1201 互 13901
|
|
|
+ baseServicerPath: serverType == "互联网" ? "/oneMap" : serverPath + ":13901/qpyzt", // 政 1201 互 13901
|
|
|
|
|
|
// oauth地址
|
|
|
- oauthServiceUrlOrigin: serverPath + ":8888/", // App里使用 互 10086 政 8888
|
|
|
+ oauthServiceUrlOrigin: serverPath + ":" + (serverType == "互联网" ? "10086" : "8888") + "/", // App里使用 互 10086 政 8888
|
|
|
// oauth地址
|
|
|
// oauthServiceUrl: "/proxy_oauth",
|
|
|
- oauthServiceUrl: serverPath + ":8888/oauth/", // App里使用 互 10086 政 8888
|
|
|
+ oauthServiceUrl: serverPath + ":" + (serverType == "互联网" ? "10086" : "8888") + "/oauth", // App里使用 互 10086 政 8888
|
|
|
// oauth前端地址
|
|
|
- oauthWebUrlPort: "2100", // 运行管理中使用 无需动
|
|
|
+ oauthWebUrlPort: "2100", // 运行管理中使用 无需动
|
|
|
// dms前端地址
|
|
|
- dmsWebUrlPort: "2101", // 运行管理中使用 无需动
|
|
|
+ dmsWebUrlPort: "2101", // 运行管理中使用 无需动
|
|
|
// dms地址
|
|
|
// dmsDataProxy: "/proxy_dms",
|
|
|
- dmsDataProxy: serverPath + ":10081/dms/", //无需动
|
|
|
+ dmsDataProxy: serverPath + ":10081/dms/", //无需动
|
|
|
// 引擎基础js
|
|
|
scriptMain: "/static/plugins/skyscenery/SkyScenery.js",
|
|
|
// GEOSERVER_URL_WMS: "http://121.43.55.7:8889/geoserver/kdyjs/wms",
|
|
|
@@ -209,21 +214,21 @@ let systemConfig = {
|
|
|
{
|
|
|
label: "栅格服务发布",
|
|
|
// url: "http://10.235.245.174:2024/?token=1",
|
|
|
- url:"http://10.235.245.174:2033/?mapType=geosceneTile&serverType=y01_air_newest&epsg=sh2000",
|
|
|
+ url: "http://10.235.245.174:2033/?mapType=geosceneTile&serverType=y01_air_newest&epsg=sh2000",
|
|
|
type: "0",
|
|
|
image: "./static/images/sksjgl/sksjfb/栅格服务发布.png",
|
|
|
},
|
|
|
{
|
|
|
label: "矢量服务发布",
|
|
|
// url: "http://10.235.245.174:2024/?token=1",
|
|
|
- url:"http://10.235.245.174:2033/?mapType=wms&serverType=village_dwelling_data_wms&epsg=wgs84&layers=qp_element:village_dwelling_data",
|
|
|
+ url: "http://10.235.245.174:2033/?mapType=wms&serverType=village_dwelling_data_wms&epsg=wgs84&layers=qp_element:village_dwelling_data",
|
|
|
type: "0",
|
|
|
image: "./static/images/sksjgl/sksjfb/矢量服务发布.png",
|
|
|
},
|
|
|
{
|
|
|
label: "动态地图服务发布",
|
|
|
// url: "http://10.235.245.174:2024/?token=1",
|
|
|
- url:"http://10.235.245.174:2033/?mapType=cartodb&serverType=cartodb&cartodbID=23cac72a_696c_11ee_9f3e_0242ac110004",
|
|
|
+ url: "http://10.235.245.174:2033/?mapType=cartodb&serverType=cartodb&cartodbID=23cac72a_696c_11ee_9f3e_0242ac110004",
|
|
|
type: "0",
|
|
|
image: "./static/images/sksjgl/sksjfb/动态地图服务发布.png",
|
|
|
},
|
|
|
@@ -235,7 +240,9 @@ let systemConfig = {
|
|
|
// 微功能演示页面底图地址
|
|
|
layerUrl:
|
|
|
// "https://szlszxdt.qpservice.org.cn/internal_map/?servertype=shmap_blue_web&proxyToken=",
|
|
|
- "http://10.235.245.174:10011/proxy?servertype=j02_basemap_dark&token=",
|
|
|
+ serverType == "互联网"
|
|
|
+ ? "https://szlszxdt.qpservice.org.cn/internal_map/?servertype=shmap_blue_web&proxyToken="
|
|
|
+ : "http://10.235.245.174:10011/proxy?servertype=j02_basemap_dark&token=",
|
|
|
},
|
|
|
yygl: {},
|
|
|
yxgl: {},
|