config.js 25 KB

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