config.js 26 KB

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