config.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  1. import pipeConfig from "./pipeConfig.js"
  2. export const pipeConfigInfo = pipeConfig
  3. let temp_esriConfig = null;
  4. let temp_lcInfo = null;
  5. let temp_appconfig = null;
  6. let temp_notificationInterval = null;
  7. let temp_homeInterval = null;
  8. let temp_hyduralicsMenus = null;
  9. /*
  10. * 云服务器上arcgis初始化配置
  11. */
  12. const client_esriConfig = {
  13. 'baseUrl': 'http://172.16.0.2:11020/arcgis_js_api/library/4.16/dojo/dojo.js',
  14. 'baseCssUrl': 'http://172.16.0.2:11020/arcgis_js_api/library/4.16/esri/css/main.css',
  15. 'font_url': 'http://172.16.0.2:11020/arcgis_js_api/library/fonts/',
  16. 'tianditu_url': 'http://172.16.0.2:11020'
  17. }
  18. const client_lcInfo = {
  19. otherUrl: "http://172.16.0.16:30123/auth/oauth/token",//浪潮对接接口(获取token)
  20. // otherUrl2:"http://172.16.0.16:30123/auth/v1/user/me",//浪潮对接接口2(获取用户信息)
  21. otherUrlUser: "http://172.16.0.16:30123/api/sa/api/agent/getUserInfoByStation/1.0",//浪潮对接接口(获取用户信息)
  22. otherUrlWater: "http://172.16.0.16:30123/api/sa/api/agent/getWaterUserInfoByStation/1.0",//浪潮对接接口(获取用户用水信息)
  23. otherUrlWaterPay: "http://172.16.0.16:30123/api/sa/api/agent/getWaterUserPriceInfoByStation/1.0",//浪潮对接接口(获取用户用水价钱)
  24. otherUrlUserdetail: "http://172.16.0.16:30123/api/sa/api/agent/getUserDetailsInfoByStation/1.0",//浪潮对接接口(获取用户详情)
  25. // otherUrlUserdetail: "http://172.16.0.16:30123/api/sa/api/agent/getWaterSummaryTable/1.0",//浪潮对接接口(获取用户详情)
  26. getWaterUserInfosDetails: "http://172.16.0.16:30123/api/sa/api/agent/getWaterUserInfosDetails/1.0",//浪潮对接接口(用户用水缴费)
  27. getWaterNumAverage: "http://172.16.0.16:30123/api/sa/api/agent/getWaterNumAverage/1.0",//浪潮对接接口(用户平均用水量)
  28. getWaterSummaryTable: "http://172.16.0.16:30123/api/sa/api/agent/getWaterSummaryTable/1.0",//浪潮对接接口(营销总表与用户关联关系)
  29. client_id: "12ylhw8ykf9wltln3buwmm41",//对接参数
  30. client_secret: "3j0kqonm7mobs7n0zwjsu36fr2p124rm",//对接参数
  31. grant_type: "authorization_code",//对接参数
  32. redirect_uri: "http://172.16.0.2:11020/index.html",//回调地址
  33. video_url: "http://172.16.0.2:11029/wsplayer/"
  34. };
  35. const client_appconfig = {
  36. // 底图是否采用在线地图,true在线,false离线
  37. 'isonline': true,
  38. // 是否根据后台配置服务
  39. 'isloadServer': false,
  40. // 天地图秘钥 567b65214b47c6cd6a731e3bd8cd03da 700ea8c1e2dd873c349dc880169fd96d 9248d7f5b183142e4f1d5c908fba42e0
  41. //'tianMapKey': '9248d7f5b183142e4f1d5c908fba42e0',
  42. 'tianMapKey': "d42ff494ace495b84079d1d466533f08",
  43. // 地图初始视角中心 马边:103.543616,28.833446, 陵水:110.03174,18.51504 德昌 102.18017 27.40482
  44. 'initCenter': { 'x': 103.84566, 'y': 30.07039 },
  45. // 打印模板
  46. 'templateFolder': 'E:/Datas/客户部署数据/PrintTemplates',
  47. // 地图初始视角级别
  48. 'initZoom': 2,
  49. // 'usertoken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJVc2VySUQiOiIiLCJVU0VSTkFNRSI6IiIsIlJFQUxOQU1FIjoiIiwiV0tJRCI6NDU0NCwiUkFOR0UiOiJYUlRZIiwiUkFOR0VGSUVMRCI6bnVsbCwiQ09ERSI6IlhSVFkiLCJDT05ORUNUU1RSIjoiREFUQUJBU0U9b3JjbDtORVROQU1FPTE5Mi4xNjguMC4xOC9vcmNsO1NFUlZFUj0xOTIuMTY4LjAuMTg7VVNFUklEPXNkZV9kY3N3O1BBU1NXT1JEPVpoc3dfMTIzO1BPUlQ9MTUyMUA1MTUxL3RjcDtWRVJTSU9OPXNkZS5ERUZBVUxUIiwiQm9yblRpbWUiOjAsIkFwcElEIjpudWxsfQ.QBNAdOM7H36k_1lF-z3oRR_E2-QkDyp8wfgTrvssOKANYTSjY5bWvoMxrV52_k1h9ouqv1CM71C8fl7TFioIvw',
  50. //客户环境PG
  51. 'usertoken': "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJVc2VySUQiOiIiLCJVU0VSTkFNRSI6IiIsIlJFQUxOQU1FIjoiIiwiV0tJRCI6NDU0NCwiUkFOR0UiOiJYUlRZIiwiUkFOR0VGSUVMRCI6bnVsbCwiQ09ERSI6IlhSVFkiLCJDT05ORUNUU1RSIjoiREFUQUJBU0U9cGdfbWVpc2hhbl93YXRlcjtORVROQU1FPTE3Mi4xNi4wLjI7U0VSVkVSPTE3Mi4xNi4wLjI7VVNFUklEPXNkZV9tZWlzaGFuO1BBU1NXT1JEPVRvZmx5MDI4ITtQT1JUPTU0MzI7VkVSU0lPTj1zZGUuREVGQVVMVDtEQl9DTElFTlQ9UG9zdGdyZV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OVD1Qb3N0Z3JlU1FMOyIsIkJvcm5UaW1lIjowLCJBcHBJRCI6bnVsbH0.i3pBpXAp4Cv5puUjbLMAnkPRiXtFd2R8RJuTT7N9QHd9QQg_l_NqGZcF6kymlNfCRTUkkNtVbOvespjL2LSQTQ",
  56. // 地图资源服务
  57. 'gisResource': {
  58. // 'tian_online_vector': {
  59. // 'groupname': '天地图在线矢量服务',
  60. // 'type': 'webTiled',
  61. // 'config': [
  62. // { 'name': '矢量地图', 'url': 'http://172.16.0.2:11020/DataServer?T=vec_c&x={col}&y={row}&l={level}&tk=' }
  63. // ]
  64. // },
  65. // 'tian_online_raster': {
  66. // 'groupname': '天地图在线影像服务',
  67. // 'type': 'webTiled',
  68. // 'config': [
  69. // { 'name': '影像地图', 'url': 'http://172.16.0.2:11020/DataServer?T=img_c&x={col}&y={row}&l={level}&tk=' }
  70. // ]
  71. // },
  72. // 'tian_online_vector_label': {
  73. // 'groupname': '天地图在线矢量标注服务',
  74. // 'type': 'webTiled',
  75. // 'config': [
  76. // { 'name': '矢量标注图', 'url': 'http://172.16.0.2:11020/DataServer?T=cva_c&x={col}&y={row}&l={level}&tk=' }
  77. // ]
  78. // },
  79. // 'tian_online_raster_label': {
  80. // 'groupname': '天地图在线影像标注服务',
  81. // 'type': 'webTiled',
  82. // 'config': [
  83. // { 'name': '影像标注图', 'url': 'http://172.16.0.2:11020/DataServer?T=cia_c&x={col}&y={row}&l={level}&tk=' }
  84. // ]
  85. // },
  86. 'tian_online_vector': {
  87. 'groupname': '天地图在线矢量服务',
  88. 'type': 'webTiled',
  89. 'config': [
  90. { 'name': '矢量地图', 'url': 'http://172.16.0.2/{subDomain}.tianditu.com/DataServer?T=vec_c&x={col}&y={row}&l={level}&tk=' }
  91. ]
  92. },
  93. 'tian_online_raster': {
  94. 'groupname': '天地图在线影像服务',
  95. 'type': 'webTiled',
  96. 'config': [
  97. { 'name': '影像地图', 'url': 'http://172.16.0.2/{subDomain}.tianditu.com/DataServer?T=img_c&x={col}&y={row}&l={level}&tk=' }
  98. ]
  99. },
  100. 'tian_online_vector_label': {
  101. 'groupname': '天地图在线矢量标注服务',
  102. 'type': 'webTiled',
  103. 'config': [
  104. { 'name': '矢量标注图', 'url': 'http://172.16.0.2/{subDomain}.tianditu.com/DataServer?T=cva_c&x={col}&y={row}&l={level}&tk=' }
  105. ]
  106. },
  107. 'tian_online_raster_label': {
  108. 'groupname': '天地图在线影像标注服务',
  109. 'type': 'webTiled',
  110. 'config': [
  111. { 'name': '影像标注图', 'url': 'http://172.16.0.2/{subDomain}.tianditu.com/DataServer?T=cia_c&x={col}&y={row}&l={level}&tk=' }
  112. ]
  113. },
  114. 'tian_offline_raster_label': {
  115. 'groupname': '天地图离线标注图服务',
  116. 'type': 'tiled',
  117. 'config': [
  118. { 'name': '标注地图', 'url': 'http://192.168.2.61:6080/arcgis/rest/services/xrty/tysw_imgano/MapServer' }
  119. ]
  120. },
  121. 'tian_offline_vector_label': {
  122. 'groupname': '天地图离线标注图服务',
  123. 'type': 'tiled',
  124. 'config': [
  125. { 'name': '标注地图', 'url': 'http://192.168.2.61:6080/arcgis/rest/services/xrty/tysw_vecano/MapServer' }
  126. ]
  127. },
  128. 'tian_offline_raster': {
  129. 'groupname': '天地图离线影像图服务',
  130. 'type': 'tiled',
  131. 'config': [
  132. { 'name': '影像地图', 'url': 'http://192.168.2.61:6080/arcgis/rest/services/xrty/tysw_img/MapServer' }
  133. ]
  134. },
  135. 'tian_offline_vector': {
  136. 'groupname': '天地图离线矢量服务',
  137. 'type': 'tiled',
  138. 'config': [
  139. { 'name': '矢量地图', 'url': 'https://192.168.2.61:6080/arcgis/rest/services/xrty/tysw_vec/MapServer' }
  140. ]
  141. },
  142. 'river_thema': {
  143. 'groupname': '水系专题图服务',
  144. 'type': 'dynamic',
  145. 'config': [
  146. { 'name': '水系专题图', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/xrty/pipe_river/MapServer' }
  147. ]
  148. },
  149. 'business_map': {
  150. 'groupname': '离线业务地图服务',
  151. 'type': 'dynamic',
  152. 'config': [
  153. { 'name': '业务地图', 'url': 'http://172.16.0.2:6080/arcgis/rest/services/MSSW/PIPE_JS_MEISHAN/MapServer' }
  154. ]
  155. },
  156. 'print': {
  157. 'groupname': '打印服务',
  158. 'config': [
  159. { 'name': '打印地图', 'url': 'http://172.16.0.2:6080/arcgis/rest/services/xrty/TyswPrint/GPServer/TFPrint/execute' }
  160. ]
  161. },
  162. 'geometry': {
  163. 'groupname': '地图图形操作工具',
  164. 'type': 'tiled',
  165. 'config': [
  166. { 'name': '地图工具', 'url': 'http://172.16.0.2:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer' }
  167. ]
  168. },
  169. 'layer_name': {
  170. 'groupname': '获取图层名称服务',
  171. 'config': [
  172. { 'name': '图层名称', 'url': 'http://172.16.0.2:6080/arcgis/rest/services/MSSW/PIPE_JS_MEISHAN/MapServer/exts/TFGeoAPISOE/getLayerInfor' }
  173. ]
  174. },
  175. 'field_intersect': {
  176. 'groupname': '获取重复字段',
  177. 'config': [
  178. { 'name': '字段名称', 'url': 'http://172.16.0.2:6080/arcgis/rest/services/MSSW/PIPE_JS_MEISHAN/MapServer/exts/TFGeoAPISOE/fieldIntersect' }
  179. ]
  180. },
  181. 'fieldUniqueValue': {
  182. 'groupname': '获取字段唯一值',
  183. 'config': [
  184. { 'name': '字段唯一', 'url': 'http://172.16.0.2:6080/arcgis/rest/services/MSSW/PIPE_JS_MEISHAN/MapServer/exts/TFGeoAPISOE/getFieldUniqueValue' }
  185. ]
  186. },
  187. 'statistic': {
  188. 'groupname': '属性统计',
  189. 'config': [
  190. { 'name': '属性统计', 'url': 'http://172.16.0.2:6080/arcgis/rest/services/MSSW/PIPE_JS_MEISHAN/MapServer/exts/TFGeoAPISOE/statistic' }
  191. ]
  192. },
  193. 'horizental_section_analysis': {
  194. 'groupname': '横剖面分析',
  195. 'config': [
  196. { 'name': '横剖面分析', 'url': 'http://172.16.0.2:6080/arcgis/rest/services/MSSW/PIPE_JS_MEISHAN/MapServer/exts/TFGeoAPISOE/HorizentalSectionAnalysis' }
  197. ]
  198. },
  199. 'vertical_section_analysis': {
  200. 'groupname': '纵剖面分析',
  201. 'config': [
  202. { 'name': '纵剖面分析', 'url': 'http://172.16.0.2:6080/arcgis/rest/services/MSSW/PIPE_JS_MEISHAN/MapServer/exts/TFGeoAPISOE/VerticalSectionAnalysis' }
  203. ]
  204. },
  205. 'shutOff_valve_extend_analysis': {
  206. 'groupname': '关阀扩展分析',
  207. 'config': [
  208. { 'name': '关阀扩展分析', 'url': 'http://172.16.0.2:6080/arcgis/rest/services/GPTools/AnalyzeTools/GPServer/ShutOffValveExtend' }
  209. ]
  210. },
  211. 'shutOff_valve_analysis': {
  212. 'groupname': '关阀分析',
  213. 'config': [
  214. { 'name': '关阀分析', 'url': 'http://172.16.0.2:6080/arcgis/rest/services/GPTools/AnalyzeTools/GPServer/ShutOffValveAnalyze' }
  215. ]
  216. },
  217. 'burst_pipe_analyze_analysis': {
  218. 'groupname': '爆管分析',
  219. 'config': [
  220. { 'name': '爆管分析', 'url': 'http://172.16.0.2:6080/arcgis/rest/services/GPTools/AnalyzeTools/GPServer/BurstPipeAnalyze' }
  221. ]
  222. },
  223. 'connected_analysis': {
  224. 'groupname': '连通性分析',
  225. 'config': [
  226. { 'name': '连通性分析', 'url': 'http://172.16.0.2:6080/arcgis/rest/services/GPTools/AnalyzeTools/GPServer/ConnectedAnalyze' }
  227. ]
  228. },
  229. // 'path_analysis': {
  230. // 'groupname': '路径分析',
  231. // 'config': [
  232. // { 'name': '路径分析', 'url': 'http://172.16.0.2:6080/arcgis/rest/services/GPTools/AnalyzeTools/GPServer/PathAnalyzeTysw' }
  233. // ]
  234. // },
  235. 'trace_downStream_analyze': {
  236. 'groupname': '下游追踪分析',
  237. 'config': [
  238. { 'name': '下游追踪分析', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/lsswgp/GPServer/TraceDownstreamAnalyze' }
  239. ]
  240. },
  241. 'path_analysis': {
  242. 'groupname': '路径分析',
  243. 'config': [
  244. { 'name': '路径分析', 'url': 'http://172.16.0.2:6080/arcgis/rest/services/GPTools/AnalyzeTools/GPServer/PathAnalyze' }
  245. ]
  246. },
  247. 'path_analysis_map': {
  248. 'groupname': '路径分析地图',
  249. 'config': [
  250. { 'name': '路径分析地图', 'url': 'http://172.16.0.2:6080/arcgis/rest/services/GPTools/PathAnalyzeTysw/GPServer/PathAnalyzeTysw/submitJob' }
  251. ]
  252. }
  253. },
  254. }
  255. /**
  256. * 轮询时机设置
  257. */
  258. const client_notificationInterval = 30000
  259. const client_homeInterval = 60000
  260. /**
  261. * 客户环境水力模型配置
  262. */
  263. const client_hyduralicsMenus = [
  264. {
  265. name: 'onlineForecast',
  266. title: '在线预测',
  267. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/monitoring'
  268. },
  269. {
  270. name: 'smartScheduling',
  271. title: '智能调度',
  272. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/smart'
  273. },
  274. {
  275. name: 'schedulingPlan',
  276. title: '调度预案',
  277. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/scheduling'
  278. },
  279. {
  280. name: 'planEvaluation',
  281. title: '规划评估',
  282. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/plan'
  283. },
  284. {
  285. name: 'pipeFushing',
  286. title: '管道冲洗',
  287. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/wash'
  288. },
  289. {
  290. name: 'riskAssessment',
  291. title: '风险评估',
  292. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/risk'
  293. },
  294. {
  295. name: 'hydrualicsSysSetting',
  296. title: '系统设置',
  297. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/system'
  298. }
  299. ]
  300. /*
  301. * 云服务器上arcgis初始化配置
  302. */
  303. const company_esriConfig = {
  304. 'baseUrl': 'http://221.182.8.141:3308/arcgis_js_api/v416/arcgis_js_api/library/4.16/dojo/dojo.js',
  305. 'baseCssUrl': 'http://221.182.8.141:3308/arcgis_js_api/v416/arcgis_js_api/library/4.16/esri/css/main.css',
  306. 'font_url': 'http://221.182.8.141:3308/arcgis_js_api/v416/arcgis_js_api/library/fonts/'
  307. }
  308. const company_lcInfo = {
  309. 'baseUrl': 'http://172.16.0.2:11020/arcgis_js_api/library/4.16/dojo/dojo.js',
  310. 'baseCssUrl': 'http://172.16.0.2:11020/arcgis_js_api/library/4.16/esri/css/main.css',
  311. 'font_url': 'http://172.16.0.2:11020/arcgis_js_api/library/fonts/',
  312. 'tianditu_url': 'http://172.16.0.2:11020'
  313. }
  314. const company_appconfig = {
  315. // 底图是否采用在线地图,true在线,false离线
  316. 'isonline': true,
  317. // 是否根据后台配置服务
  318. 'isloadServer': false,
  319. // 天地图秘钥 567b65214b47c6cd6a731e3bd8cd03da 700ea8c1e2dd873c349dc880169fd96d 9248d7f5b183142e4f1d5c908fba42e0
  320. // 'tianMapKey': '9248d7f5b183142e4f1d5c908fba42e0',
  321. 'tianMapKey': "d42ff494ace495b84079d1d466533f08",
  322. // 地图初始视角中心 马边:103.543616,28.833446, 陵水:110.03174,18.51504 德昌 102.18017 27.40482
  323. 'initCenter': { 'x': 103.84566, 'y': 30.07039 },
  324. // 打印模板
  325. 'templateFolder': 'E:/Datas/客户部署数据/PrintTemplates',
  326. // 地图初始视角级别
  327. 'initZoom': 2,
  328. // 'usertoken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJVc2VySUQiOiIiLCJVU0VSTkFNRSI6IiIsIlJFQUxOQU1FIjoiIiwiV0tJRCI6NDU0NCwiUkFOR0UiOiJYUlRZIiwiUkFOR0VGSUVMRCI6bnVsbCwiQ09ERSI6IlhSVFkiLCJDT05ORUNUU1RSIjoiREFUQUJBU0U9b3JjbDtORVROQU1FPTE5Mi4xNjguMC4xOC9vcmNsO1NFUlZFUj0xOTIuMTY4LjAuMTg7VVNFUklEPXNkZV9kY3N3O1BBU1NXT1JEPVpoc3dfMTIzO1BPUlQ9M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ZWlzaGFuO1BPUlQ9NTQzMjtWRVJTSU9OPXNkZS5ERUZBVUxUO0RCX0NMSUVOVD1Qb3N0Z3JlU1FMOyIsIkJvcm5UaW1lIjowLCJBcHBJRCI6bnVsbH0.i3pBpXAp4Cv5puUjbLMAnkPRiXtFd2R8RJuTT7N9QHd9QQg_l_NqGZcF6kymlNfCRTUkkNtVbOvespjL2LSQTQ",
  332. // 地图资源服务
  333. 'gisResource': {
  334. 'tian_online_vector': {
  335. 'groupname': '天地图在线矢量服务',
  336. 'type': 'webTiled',
  337. 'config': [
  338. { 'name': '矢量地图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=vec_c&x={col}&y={row}&l={level}&tk=' }
  339. ]
  340. },
  341. 'tian_online_raster': {
  342. 'groupname': '天地图在线影像服务',
  343. 'type': 'webTiled',
  344. 'config': [
  345. { 'name': '影像地图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=img_c&x={col}&y={row}&l={level}&tk=' }
  346. ]
  347. },
  348. 'tian_online_vector_label': {
  349. 'groupname': '天地图在线矢量标注服务',
  350. 'type': 'webTiled',
  351. 'config': [
  352. { 'name': '矢量标注图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=cva_c&x={col}&y={row}&l={level}&tk=' }
  353. ]
  354. },
  355. 'tian_online_raster_label': {
  356. 'groupname': '天地图在线影像标注服务',
  357. 'type': 'webTiled',
  358. 'config': [
  359. { 'name': '影像标注图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=cia_c&x={col}&y={row}&l={level}&tk=' }
  360. ]
  361. },
  362. 'tian_offline_raster_label': {
  363. 'groupname': '天地图离线标注图服务',
  364. 'type': 'tiled',
  365. 'config': [
  366. { 'name': '标注地图', 'url': 'http://192.168.2.61:6080/arcgis/rest/services/xrty/tysw_imgano/MapServer' }
  367. ]
  368. },
  369. 'tian_offline_vector_label': {
  370. 'groupname': '天地图离线标注图服务',
  371. 'type': 'tiled',
  372. 'config': [
  373. { 'name': '标注地图', 'url': 'http://192.168.2.61:6080/arcgis/rest/services/xrty/tysw_vecano/MapServer' }
  374. ]
  375. },
  376. 'tian_offline_raster': {
  377. 'groupname': '天地图离线影像图服务',
  378. 'type': 'tiled',
  379. 'config': [
  380. { 'name': '影像地图', 'url': 'http://192.168.2.61:6080/arcgis/rest/services/xrty/tysw_img/MapServer' }
  381. ]
  382. },
  383. 'tian_offline_vector': {
  384. 'groupname': '天地图离线矢量服务',
  385. 'type': 'tiled',
  386. 'config': [
  387. { 'name': '矢量地图', 'url': 'https://192.168.2.61:6080/arcgis/rest/services/xrty/tysw_vec/MapServer' }
  388. ]
  389. },
  390. 'river_thema': {
  391. 'groupname': '水系专题图服务',
  392. 'type': 'dynamic',
  393. 'config': [
  394. { 'name': '水系专题图', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/xrty/pipe_river/MapServer' }
  395. ]
  396. },
  397. 'business_map': {
  398. 'groupname': '离线业务地图服务',
  399. 'type': 'dynamic',
  400. 'config': [
  401. { 'name': '业务地图', 'url': 'http://221.182.8.141:6080/arcgis/rest/services/MSSW/PIPE_JS_MEISHAN_PG/MapServer' }
  402. ]
  403. },
  404. 'print': {
  405. 'groupname': '打印服务',
  406. 'config': [
  407. { 'name': '打印地图', 'url': 'http://221.182.8.141:6080/arcgis/rest/services/xrty/TyswPrint/GPServer/TFPrint/execute' }
  408. ]
  409. },
  410. 'geometry': {
  411. 'groupname': '地图图形操作工具',
  412. 'type': 'tiled',
  413. 'config': [
  414. { 'name': '地图工具', 'url': 'http://221.182.8.141:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer' }
  415. ]
  416. },
  417. 'layer_name': {
  418. 'groupname': '获取图层名称服务',
  419. 'config': [
  420. { 'name': '图层名称', 'url': 'http://221.182.8.141:6080/arcgis/rest/services/MSSW/PIPE_JS_MEISHAN_PG/MapServer/exts/TFGeoAPISOE/getLayerInfor' }
  421. ]
  422. },
  423. 'field_intersect': {
  424. 'groupname': '获取重复字段',
  425. 'config': [
  426. { 'name': '字段名称', 'url': 'http://221.182.8.141:6080/arcgis/rest/services/MSSW/PIPE_JS_MEISHAN_PG/MapServer/exts/TFGeoAPISOE/fieldIntersect' }
  427. ]
  428. },
  429. 'fieldUniqueValue': {
  430. 'groupname': '获取字段唯一值',
  431. 'config': [
  432. { 'name': '字段唯一', 'url': 'http://221.182.8.141:6080/arcgis/rest/services/MSSW/PIPE_JS_MEISHAN_PG/MapServer/exts/TFGeoAPISOE/getFieldUniqueValue' }
  433. ]
  434. },
  435. 'statistic': {
  436. 'groupname': '属性统计',
  437. 'config': [
  438. { 'name': '属性统计', 'url': 'http://221.182.8.141:6080/arcgis/rest/services/MSSW/PIPE_JS_MEISHAN_PG/MapServer/exts/TFGeoAPISOE/statistic' }
  439. ]
  440. },
  441. 'horizental_section_analysis': {
  442. 'groupname': '横剖面分析',
  443. 'config': [
  444. { 'name': '横剖面分析', 'url': 'http://221.182.8.141:6080/arcgis/rest/services/MSSW/PIPE_JS_MEISHAN_PG/MapServer/exts/TFGeoAPISOE/HorizentalSectionAnalysis' }
  445. ]
  446. },
  447. 'vertical_section_analysis': {
  448. 'groupname': '纵剖面分析',
  449. 'config': [
  450. { 'name': '纵剖面分析', 'url': 'http://221.182.8.141:6080/arcgis/rest/services/MSSW/PIPE_JS_MEISHAN_PG/MapServer/exts/TFGeoAPISOE/VerticalSectionAnalysis' }
  451. ]
  452. },
  453. 'shutOff_valve_extend_analysis': {
  454. 'groupname': '关阀扩展分析',
  455. 'config': [
  456. { 'name': '关阀扩展分析', 'url': 'http://221.182.8.141:6080/arcgis/rest/services/xrty/tyswgp/GPServer/ShutOffValveExtendTysw' }
  457. ]
  458. },
  459. 'shutOff_valve_analysis': {
  460. 'groupname': '关阀分析',
  461. 'config': [
  462. { 'name': '关阀分析', 'url': 'http://221.182.8.141:6080/arcgis/rest/services/xrty/tyswgp/GPServer/ShutOffValveAnalyzeTysw' }
  463. ]
  464. },
  465. 'burst_pipe_analyze_analysis': {
  466. 'groupname': '爆管分析',
  467. 'config': [
  468. { 'name': '爆管分析', 'url': 'http://221.182.8.141:6080/arcgis/rest/services/xrty/tyswgp/GPServer/BurstPipeAnalyzeTysw' }
  469. ]
  470. },
  471. 'connected_analysis': {
  472. 'groupname': '连通性分析',
  473. 'config': [
  474. { 'name': '连通性分析', 'url': 'http://221.182.8.141:6080/arcgis/rest/services/xrty/tyswgp/GPServer/ConnectedAnalyzeTysw' }
  475. ]
  476. },
  477. // 'path_analysis': {
  478. // 'groupname': '路径分析',
  479. // 'config': [
  480. // { 'name': '路径分析', 'url': 'http://221.182.8.141:6080/arcgis/rest/services/xrty/tyswgp/GPServer/PathAnalyzeTysw' }
  481. // ]
  482. // },
  483. 'trace_downStream_analyze': {
  484. 'groupname': '下游追踪分析',
  485. 'config': [
  486. { 'name': '下游追踪分析', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/lsswgp/GPServer/TraceDownstreamAnalyze' }
  487. ]
  488. },
  489. 'path_analysis': {
  490. 'groupname': '路径分析',
  491. 'config': [
  492. { 'name': '路径分析', 'url': 'http://221.182.8.141:6080/arcgis/rest/services/MSSW/PathAnalyze/GPServer/PathAnalyzeTysw' }
  493. ]
  494. },
  495. }
  496. }
  497. /**
  498. * 轮询时机设置
  499. */
  500. const company_notificationInterval = 30000
  501. const company_homeInterval = 60000
  502. /**
  503. * 客户环境水力模型配置
  504. */
  505. const company_hyduralicsMenus = [
  506. {
  507. name: 'onlineForecast',
  508. title: '在线预测',
  509. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/monitoring'
  510. },
  511. {
  512. name: 'smartScheduling',
  513. title: '智能调度',
  514. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/smart'
  515. },
  516. {
  517. name: 'schedulingPlan',
  518. title: '调度预案',
  519. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/scheduling'
  520. },
  521. {
  522. name: 'planEvaluation',
  523. title: '规划评估',
  524. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/plan'
  525. },
  526. {
  527. name: 'pipeFushing',
  528. title: '管道冲洗',
  529. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/wash'
  530. },
  531. {
  532. name: 'riskAssessment',
  533. title: '风险评估',
  534. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/risk'
  535. },
  536. {
  537. name: 'hydrualicsSysSetting',
  538. title: '系统设置',
  539. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/system'
  540. }
  541. ]
  542. if (pipeConfigInfo.currentType == pipeConfigInfo.type.company) {
  543. temp_esriConfig = company_esriConfig;
  544. temp_lcInfo = client_lcInfo;
  545. temp_appconfig = company_appconfig;
  546. temp_notificationInterval = company_notificationInterval;
  547. temp_homeInterval = company_homeInterval;
  548. temp_hyduralicsMenus = company_hyduralicsMenus;
  549. } else if (pipeConfigInfo.currentType == pipeConfigInfo.type.client) {
  550. temp_esriConfig = client_esriConfig;
  551. temp_lcInfo = client_lcInfo;
  552. temp_appconfig = client_appconfig;
  553. temp_notificationInterval = client_notificationInterval;
  554. temp_homeInterval = client_homeInterval;
  555. temp_hyduralicsMenus = client_hyduralicsMenus;
  556. }
  557. export const esriConfig = temp_esriConfig;
  558. export const lcInfo = temp_lcInfo;
  559. export const appconfig = temp_appconfig;
  560. export const notificationInterval = temp_notificationInterval;
  561. export const homeInterval = temp_homeInterval;
  562. export const hyduralicsMenus = temp_hyduralicsMenus;