config.js 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747
  1. /*
  2. *公司初始化配置
  3. */
  4. export const esriConfig = {
  5. 'baseUrl': 'http://192.168.2.238:8080/arcgis_js_api/v416/arcgis_js_api/library/4.16/dojo/dojo.js',
  6. 'baseCssUrl': 'http://192.168.2.238:8080/arcgis_js_api/v416/arcgis_js_api/library/4.16/esri/css/main.css',
  7. 'font_url': 'http://192.168.2.238:8080/arcgis_js_api/v416/arcgis_js_api/library/fonts/',
  8. }
  9. export const iserverConfig = {
  10. // 'baseUrl': 'http://117.174.10.73:8090/iserver/'
  11. 'baseUrl': 'http://192.168.2.238:8090/iserver/'
  12. }
  13. export const appconfig = {
  14. // 底图是否采用在线地图,true在线,false离线
  15. 'isonline': true,
  16. // 是否根据后台配置服务
  17. 'isloadServer': true,
  18. // 天地图秘钥
  19. // 'tianMapKey': '700ea8c1e2dd873c349dc880169fd96d',
  20. 'tianMapKey':'9248d7f5b183142e4f1d5c908fba42e0',
  21. // 打印模板
  22. 'templateFolder': 'D:/xrty/template',
  23. // 地图初始视角中心
  24. // 'initCenter': { 'x': 104.44483, 'y': 30.85523 },
  25. // 临时使用
  26. 'initCenter': [101.724022, 26.580702],
  27. // [101.724022, 26.580702] 攀枝花
  28. // [104.1958, 30.0181] 仁寿
  29. 'initLayers': 'pipemap&&smlayergroup', // 用于配置图层树 pipemap&&group
  30. // 地图初始视角级别
  31. 'initZoom': 15,
  32. // token
  33. 'usertoken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJVc2VySUQiOiIiLCJVU0VSTkFNRSI6IiIsIlJFQUxOQU1FIjoiIiwiV0tJRCI6NDU0NCwiUkFOR0UiOiJYUlRZIiwiUkFOR0VGSUVMRCI6bnVsbCwiQ09ERSI6IlhSVFkiLCJDT05ORUNUU1RSIjoiREFUQUJBU0U9b3JjbDtORVROQU1FPTE5Mi4xNjguMi4yNDIvb3JjbDtTRVJWRVI9MTkyLjE2OC4yLjI0MjtVU0VSSUQ9dGZfeHJ0eV9nZW87UEFTU1dPUkQ9dGZfeHJ0eV9nZW87UE9SVD0xNTIxQDUxNTEvdGNwO1ZFUlNJT049c2RlLkRFRkFVTFQiLCJCb3JuVGltZSI6MCwiQXBwSUQiOm51bGx9.bMNoX6nsvNYukk47_UnT9IHGlNIWclbmiXTj3ak1i5KuF5LGexfwV7TwF80nP08GEPaNwScgk7lbJkRHcqtT8w',
  34. // 地图资源服务
  35. 'gisResource': {
  36. 'printer': {
  37. 'name': '打印地址',
  38. 'url': 'http://117.174.10.73:8090/iserver/services/webprinting/rest/webprinting/v1'
  39. },
  40. // add iserverResource
  41. "iserver_resource": {
  42. 'netAnalysisService': {
  43. 'name': '网络分析服务',
  44. 'url': iserverConfig.baseUrl + 'services/transportationAnalyst-tf_rsps/rest/networkanalyst/NETWORK_PSPS@tofly'
  45. },
  46. 'dataService': {
  47. 'name': '数据服务',
  48. 'url': iserverConfig.baseUrl + "services/data-tf_rsps/rest/data",
  49. 'dataSource': "tofly",
  50. 'dataSet': ["psmap"],
  51. 'dataSetInfo': [
  52. // { 'name': 'TF_PSPS_PIPE_B', 'label': '排水管线' },
  53. // { 'name': 'TF_PSPS_POINT_B', 'label': '排水管点' },
  54. // { 'name': 'TF_PSPS_OUTFALL_B', 'label': '排放口' },
  55. ]
  56. },
  57. 'layerService': {
  58. 'name': '图层服务',
  59. 'layers': [
  60. {
  61. 'name': '矢量底图',
  62. 'type': 'wmtslayer',
  63. 'url': 'http://t0.tianditu.gov.cn/vec_c/wmts?tk=',
  64. 'visible': true
  65. },
  66. {
  67. 'name': '影像底图',
  68. 'type': 'wmtslayer',
  69. 'url': 'http://t0.tianditu.gov.cn/img_c/wmts?tk=',
  70. 'visible': false
  71. },
  72. {
  73. 'name': '矢量标注',
  74. 'type': 'wmtslayer',
  75. 'url': 'http://t0.tianditu.gov.cn/cva_c/wmts?tk=',
  76. 'visible': true
  77. },
  78. {
  79. 'name': '影像标注',
  80. 'type': 'wmtslayer',
  81. 'url': 'http://t0.tianditu.gov.cn/cia_c/wmts?tk=',
  82. 'visible': false
  83. },
  84. // {
  85. // 'parentname': "底图",
  86. // 'name': '矢量底图',
  87. // 'type': 'tdtlayer',
  88. // 'url': 'http://t3.tianditu.gov.cn/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=',
  89. // 'visible': true,
  90. // "id": 2
  91. // },
  92. // {
  93. // 'parentname': "底图",
  94. // 'name': '影像底图',
  95. // 'type': 'tdtlayer',
  96. // 'url': 'http://t3.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=',
  97. // 'visible': false,
  98. // "id": 3
  99. // },
  100. // {
  101. // 'parentname': "底图",
  102. // 'name': '标注底图',
  103. // 'type': 'tdtlayer',
  104. // 'url': 'http://t4.tianditu.gov.cn/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=',
  105. // 'visible': true,
  106. // "id": 4
  107. // // },
  108. {
  109. 'name': 'pipemap',
  110. 'title': '综合管网',
  111. 'type': 'smlayergroup',
  112. 'url': iserverConfig.baseUrl + 'services/map-tf_rsps/rest/maps/pipemap',
  113. 'visible': true,
  114. 'legendUrl': 'http://192.168.2.238:8090/iserver/services/map-tf_rsps/rest/maps/pipemap/layers/',
  115. 'sublayers': []
  116. }
  117. ]
  118. }
  119. },
  120. 'tian_online_vector': {
  121. 'groupname': '天地图在线矢量服务',
  122. 'type': 'webTiled',
  123. 'config': [
  124. // { 'name': '矢量地图', 'url': 'https://iserver.supermap.io/iserver/services/map-world/rest/maps/World' }
  125. // { 'name': '矢量地图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=vec_c&x={col}&y={row}&l={level}&tk=' }
  126. ]
  127. },
  128. 'tian_online_raster': {
  129. 'groupname': '天地图在线影像服务',
  130. 'type': 'webTiled',
  131. 'config': [
  132. { 'name': '影像地图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=img_c&x={col}&y={row}&l={level}&tk=' }
  133. ]
  134. },
  135. 'tian_online_vector_label': {
  136. 'groupname': '天地图在线矢量标注服务',
  137. 'type': 'webTiled',
  138. 'config': [
  139. { 'name': '矢量标注图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=cva_c&x={col}&y={row}&l={level}&tk=' }
  140. ]
  141. },
  142. 'tian_online_raster_label': {
  143. 'groupname': '天地图在线影像标注服务',
  144. 'type': 'webTiled',
  145. 'config': [
  146. { 'name': '影像标注图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=cia_c&x={col}&y={row}&l={level}&tk=' }
  147. ]
  148. },
  149. 'tian_offline_raster_label': {
  150. 'groupname': '天地图离线标注图服务',
  151. 'type': 'tiled',
  152. 'config': [
  153. { 'name': '标注地图', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/tysw_imgano/MapServer' }
  154. ]
  155. },
  156. 'tian_offline_vector_label': {
  157. 'groupname': '天地图离线标注图服务',
  158. 'type': 'tiled',
  159. 'config': [
  160. { 'name': '标注地图', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/tysw_vecano/MapServer' }
  161. ]
  162. },
  163. 'tian_offline_raster': {
  164. 'groupname': '天地图离线影像图服务',
  165. 'type': 'tiled',
  166. 'config': [
  167. { 'name': '影像地图', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/tysw_img/MapServer' }
  168. ]
  169. },
  170. 'tian_offline_vector': {
  171. 'groupname': '天地图离线矢量服务',
  172. 'type': 'tiled',
  173. 'config': [
  174. { 'name': '矢量地图', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/tysw_vec/MapServer' }
  175. ]
  176. },
  177. 'river_thema': {
  178. 'groupname': '水系专题图服务',
  179. 'type': 'dynamic',
  180. 'config': [
  181. { 'name': '水系专题图', 'url': 'http://192.168.2.245:6080/arcgis/rest/services/xrty/pipe_river/MapServer' }
  182. ]
  183. },
  184. 'business_map': {
  185. 'groupname': '离线业务地图服务',
  186. 'type': 'dynamic',
  187. 'config': [
  188. { 'name': '业务地图', 'url': 'http://221.182.8.141:8090/iserver/services/map-tf_rsps-2/rest/maps/pipemap' }
  189. ]
  190. },
  191. 'print': {
  192. 'groupname': '打印服务',
  193. 'config': [
  194. { 'name': '打印地图', 'url': 'http://192.168.2.245:6080/arcgis/rest/services/xrty/TyswPrint/GPServer/TFPrint/execute' }
  195. ]
  196. },
  197. 'layer_name': {
  198. 'groupname': '获取图层名称服务',
  199. 'config': [
  200. { 'name': '图层名称', 'url': 'http://192.168.2.245:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/getLayerInfor' }
  201. ]
  202. },
  203. 'field_intersect': {
  204. 'groupname': '获取重复字段',
  205. 'config': [
  206. { 'name': '字段名称', 'url': 'http://192.168.2.245:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/fieldIntersect' }
  207. ]
  208. },
  209. 'fieldUniqueValue': {
  210. 'groupname': '获取字段唯一值',
  211. 'config': [
  212. { 'name': '字段唯一', 'url': 'http://192.168.2.245:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/getFieldUniqueValue' }
  213. ]
  214. },
  215. 'statistic': {
  216. 'groupname': '属性统计',
  217. 'config': [
  218. { 'name': '属性统计', 'url': 'http://192.168.2.245:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/statistic' }
  219. ]
  220. },
  221. 'horizental_section_analysis': {
  222. 'groupname': '横剖面分析',
  223. 'config': [
  224. { 'name': '横剖面分析', 'url': 'http://192.168.2.245:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/HorizentalSectionAnalysis' }
  225. ]
  226. },
  227. 'vertical_section_analysis': {
  228. 'groupname': '纵剖面分析',
  229. 'config': [
  230. { 'name': '纵剖面分析', 'url': 'http://192.168.2.245:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/VerticalSectionAnalysis' }
  231. ]
  232. },
  233. 'shutOff_valve_extend_analysis': {
  234. 'groupname': '关阀扩展分析',
  235. 'config': [
  236. { 'name': '关阀扩展分析', 'url': 'http://192.168.2.245:6080/arcgis/rest/services/xrty/tyswgp/GPServer/ShutOffValveExtendTysw' }
  237. ]
  238. },
  239. 'shutOff_valve_analysis': {
  240. 'groupname': '关阀分析',
  241. 'config': [
  242. { 'name': '关阀分析', 'url': 'http://192.168.2.245:6080/arcgis/rest/services/xrty/tyswgp/GPServer/ShutOffValveAnalyzeTysw' }
  243. ]
  244. },
  245. 'burst_pipe_analyze_analysis': {
  246. 'groupname': '爆管分析',
  247. 'config': [
  248. { 'name': '爆管分析', 'url': 'http://192.168.2.245:6080/arcgis/rest/services/xrty/tyswgp/GPServer/BurstPipeAnalyzeTysw' }
  249. ]
  250. },
  251. 'connected_analysis': {
  252. 'groupname': '连通性分析',
  253. 'config': [
  254. { 'name': '连通性分析', 'url': 'http://192.168.2.245:6080/arcgis/rest/services/xrty/tyswgp/GPServer/ConnectedAnalyzeTysw' }
  255. ]
  256. },
  257. 'geometry': {
  258. 'groupname': '图形服务',
  259. 'type': 'geometry',
  260. 'config': [
  261. { 'name': '图形服务', 'url': 'http://192.168.2.245:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer' }
  262. ]
  263. }
  264. },
  265. //大屏地图服务
  266. 'bigScreenMapService':{
  267. 'initCenter': [104.1629, 30.0039],
  268. 'initZoom': 16,
  269. 'layerService': {
  270. 'name': '大屏图层服务',
  271. 'layers': [
  272. {
  273. 'name': 'citymap',
  274. 'title': '底图服务',
  275. 'type': 'bigScreenBaseMap',
  276. 'url': iserverConfig.baseUrl + 'services/map-tf_rsps_dp/rest/maps/citymap',
  277. 'visible': true,
  278. 'sublayers': []
  279. },
  280. {
  281. 'name': 'pipemap',
  282. 'title': '管线服务',
  283. 'type': 'bigScreenPipeMap',
  284. 'url': iserverConfig.baseUrl + 'services/map-tf_rsps_dp/rest/maps/pipemap',
  285. 'visible': true,
  286. 'sublayers': []
  287. }
  288. ]
  289. }
  290. }
  291. }
  292. /*
  293. * 云服务器上arcgis初始化配置
  294. */
  295. // export const esriConfig = {
  296. // 'baseUrl': 'http://118.24.21.156:8099/arcgis_js_api/library/4.16/dojo/dojo.js',
  297. // 'baseCssUrl': 'http://118.24.21.156:8099/arcgis_js_api/library/4.16/esri/css/main.css',
  298. // 'font_url': 'http://118.24.21.156:8099/arcgis_js_api/library/fonts/'
  299. // }
  300. // export const appconfig = {
  301. // // 底图是否采用在线地图,true在线,false离线
  302. // 'isonline': true,
  303. // // 是否根据后台配置服务
  304. // 'isloadServer': false,
  305. // // 天地图秘钥
  306. // 'tianMapKey': '700ea8c1e2dd873c349dc880169fd96d',
  307. // // 地图初始视角中心
  308. // 'initCenter': { 'x': 104.44483, 'y': 30.85523 },
  309. // // 打印模板
  310. // 'templateFolder': 'E:/template',
  311. // // 地图初始视角级别
  312. // 'initZoom': 3,
  313. // // token
  314. // 'usertoken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJVc2VySUQiOiIiLCJVU0VSTkFNRSI6IiIsIlJFQUxOQU1FIjoiIiwiV0tJRCI6NDU0NCwiUkFOR0UiOiJYUlRZIiwiUkFOR0VGSUVMRCI6bnVsbCwiQ09ERSI6IlhSVFkiLCJDT05ORUNUU1RSIjoiREFUQUJBU0U9b3JjbDtORVROQU1FPTEyNy4wLjAuMS9vcmNsO1NFUlZFUj1sb2NhbGhvc3Q7VVNFUklEPXRmX3hydHlfZ2VvO1BBU1NXT1JEPXRmX3hydHlfZ2VvO1BPUlQ9MTUyMUA1MTUxL3RjcDtWRVJTSU9OPXNkZS5ERUZBVUxUIiwiQm9yblRpbWUiOjAsIkFwcElEIjpudWxsfQ.0S_D8PDHR3Q9BJj3Nj1S4sWdkeaW7dvipAtsppBAFuAkAr3NRGF7l6BqLVxUWMhg6QOWZATHTDLjgPUhZyNobQ',
  315. // // 地图资源服务
  316. // 'gisResource': {
  317. // 'tian_online_vector': {
  318. // 'groupname': '天地图在线矢量服务',
  319. // 'type': 'webTiled',
  320. // 'config': [
  321. // { 'name': '矢量地图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=vec_c&x={col}&y={row}&l={level}&tk=' }
  322. // ]
  323. // },
  324. // 'tian_online_raster': {
  325. // 'groupname': '天地图在线影像服务',
  326. // 'type': 'webTiled',
  327. // 'config': [
  328. // { 'name': '影像地图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=img_c&x={col}&y={row}&l={level}&tk=' }
  329. // ]
  330. // },
  331. // 'tian_online_vector_label': {
  332. // 'groupname': '天地图在线矢量标注服务',
  333. // 'type': 'webTiled',
  334. // 'config': [
  335. // { 'name': '矢量标注图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=cva_c&x={col}&y={row}&l={level}&tk=' }
  336. // ]
  337. // },
  338. // 'tian_online_raster_label': {
  339. // 'groupname': '天地图在线影像标注服务',
  340. // 'type': 'webTiled',
  341. // 'config': [
  342. // { 'name': '影像标注图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=cia_c&x={col}&y={row}&l={level}&tk=' }
  343. // ]
  344. // },
  345. // 'tian_offline_raster_label': {
  346. // 'groupname': '天地图离线标注图服务',
  347. // 'type': 'tiled',
  348. // 'config': [
  349. // { 'name': '标注地图', 'url': 'http://192.168.2.61:6080/arcgis/rest/services/xrty/tysw_imgano/MapServer' }
  350. // ]
  351. // },
  352. // 'tian_offline_vector_label': {
  353. // 'groupname': '天地图离线标注图服务',
  354. // 'type': 'tiled',
  355. // 'config': [
  356. // { 'name': '标注地图', 'url': 'http://192.168.2.61:6080/arcgis/rest/services/xrty/tysw_vecano/MapServer' }
  357. // ]
  358. // },
  359. // 'tian_offline_raster': {
  360. // 'groupname': '天地图离线影像图服务',
  361. // 'type': 'tiled',
  362. // 'config': [
  363. // { 'name': '影像地图', 'url': 'http://192.168.2.61:6080/arcgis/rest/services/xrty/tysw_img/MapServer' }
  364. // ]
  365. // },
  366. // 'tian_offline_vector': {
  367. // 'groupname': '天地图离线矢量服务',
  368. // 'type': 'tiled',
  369. // 'config': [
  370. // { 'name': '矢量地图', 'url': 'http://192.168.2.61:6080/arcgis/rest/services/xrty/tysw_vec/MapServer' }
  371. // ]
  372. // },
  373. // 'river_thema': {
  374. // 'groupname': '水系专题图服务',
  375. // 'type': 'dynamic',
  376. // 'config': [
  377. // { 'name': '水系专题图', 'url': 'http://118.24.21.156:6080/arcgis/rest/services/xrty/pipe_river/MapServer' }
  378. // ]
  379. // },
  380. // 'business_map': {
  381. // 'groupname': '离线业务地图服务',
  382. // 'type': 'dynamic',
  383. // 'config': [
  384. // { 'name': '业务地图', 'url': 'http://118.24.21.156:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer' }
  385. // ]
  386. // },
  387. // 'print': {
  388. // 'groupname': '打印服务',
  389. // 'config': [
  390. // { 'name': '打印地图', 'url': 'http://118.24.21.156:6080/arcgis/rest/services/xrty/TyswPrint/GPServer/TFPrint/execute' }
  391. // ]
  392. // },
  393. // 'geometry': {
  394. // 'groupname': '地图图形操作工具',
  395. // 'type': 'tiled',
  396. // 'config': [
  397. // { 'name': '地图工具', 'url': 'http://118.24.21.156:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer' }
  398. // ]
  399. // },
  400. // 'layer_name': {
  401. // 'groupname': '获取图层名称服务',
  402. // 'config': [
  403. // { 'name': '图层名称', 'url': 'http://118.24.21.156:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/getLayerInfor' }
  404. // ]
  405. // },
  406. // 'field_intersect': {
  407. // 'groupname': '获取重复字段',
  408. // 'config': [
  409. // { 'name': '字段名称', 'url': 'http://118.24.21.156:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/fieldIntersect' }
  410. // ]
  411. // },
  412. // 'fieldUniqueValue': {
  413. // 'groupname': '获取字段唯一值',
  414. // 'config': [
  415. // { 'name': '字段唯一', 'url': 'http://118.24.21.156:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/getFieldUniqueValue' }
  416. // ]
  417. // },
  418. // 'statistic': {
  419. // 'groupname': '属性统计',
  420. // 'config': [
  421. // { 'name': '属性统计', 'url': 'http://118.24.21.156:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/statistic' }
  422. // ]
  423. // },
  424. // 'horizental_section_analysis': {
  425. // 'groupname': '横剖面分析',
  426. // 'config': [
  427. // { 'name': '横剖面分析', 'url': 'http://118.24.21.156:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/HorizentalSectionAnalysis' }
  428. // ]
  429. // },
  430. // 'vertical_section_analysis': {
  431. // 'groupname': '纵剖面分析',
  432. // 'config': [
  433. // { 'name': '纵剖面分析', 'url': 'http://118.24.21.156:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/VerticalSectionAnalysis' }
  434. // ]
  435. // },
  436. // 'shutOff_valve_extend_analysis': {
  437. // 'groupname': '关阀扩展分析',
  438. // 'config': [
  439. // { 'name': '关阀扩展分析', 'url': 'http://118.24.21.156:6080/arcgis/rest/services/xrty/tyswgp/GPServer/ShutOffValveExtendTysw' }
  440. // ]
  441. // },
  442. // 'shutOff_valve_analysis': {
  443. // 'groupname': '关阀分析',
  444. // 'config': [
  445. // { 'name': '关阀分析', 'url': 'http://118.24.21.156:6080/arcgis/rest/services/xrty/tyswgp/GPServer/ShutOffValveAnalyzeTysw' }
  446. // ]
  447. // },
  448. // 'burst_pipe_analyze_analysis': {
  449. // 'groupname': '爆管分析',
  450. // 'config': [
  451. // { 'name': '爆管分析', 'url': 'http://118.24.21.156:6080/arcgis/rest/services/xrty/tyswgp/GPServer/BurstPipeAnalyzeTysw' }
  452. // ]
  453. // },
  454. // 'connected_analysis': {
  455. // 'groupname': '连通性分析',
  456. // 'config': [
  457. // { 'name': '连通性分析', 'url': 'http://118.24.21.156:6080/arcgis/rest/services/xrty/tyswgp/GPServer/ConnectedAnalyzeTysw' }
  458. // ]
  459. // },
  460. // 'geometry': {
  461. // 'groupname': '图形服务',
  462. // 'type': 'geometry',
  463. // 'config': [
  464. // { 'name': '图形服务', 'url': 'http://118.24.21.156:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer' }
  465. // ]
  466. // }
  467. // }
  468. // }
  469. /*
  470. * 客户服务器上arcgis初始化配置
  471. */
  472. // export const esriConfig = {
  473. // 'baseUrl': 'http://192.168.100.204:8099/arcgis_js_api/library/4.16/dojo/dojo.js',
  474. // 'baseCssUrl': 'http://192.168.100.204:8099/arcgis_js_api/library/4.16/esri/css/main.css',
  475. // 'font_url': 'http://192.168.100.204:8099/arcgis_js_api/library/fonts/'
  476. // }
  477. // export const appconfig = {
  478. // // 底图是否采用在线地图,true在线,false离线
  479. // 'isonline': true,
  480. // // 是否根据后台配置服务
  481. // 'isloadServer': true,
  482. // // 天地图秘钥
  483. // 'tianMapKey': '700ea8c1e2dd873c349dc880169fd96d',
  484. // // 地图初始视角中心
  485. // 'initCenter': { 'x': 104.44483, 'y': 30.85523 },
  486. // // 打印模板
  487. // 'templateFolder': 'c:/arcgis/template',
  488. // // 地图初始视角级别
  489. // 'initZoom': 3,
  490. // // token
  491. // 'usertoken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJVc2VySUQiOiIiLCJVU0VSTkFNRSI6IiIsIlJFQUxOQU1FIjoiIiwiV0tJRCI6NDU0NCwiUkFOR0UiOiJYUlRZIiwiUkFOR0VGSUVMRCI6bnVsbCwiQ09ERSI6IlhSVFkiLCJDT05ORUNUU1RSIjoiREFUQUJBU0U9b3JjbDtORVROQU1FPTEyNy4wLjAuMS9vcmNsO1NFUlZFUj1sb2NhbGhvc3Q7VVNFUklEPXRmX3hydHlfZ2VvO1BBU1NXT1JEPXRmX3hydHlfZ2VvO1BPUlQ9MTUyMUA1MTUxL3RjcDtWRVJTSU9OPXNkZS5ERUZBVUxUIiwiQm9yblRpbWUiOjAsIkFwcElEIjpudWxsfQ.0S_D8PDHR3Q9BJj3Nj1S4sWdkeaW7dvipAtsppBAFuAkAr3NRGF7l6BqLVxUWMhg6QOWZATHTDLjgPUhZyNobQ',
  492. // // 地图资源服务
  493. // 'gisResource': {
  494. // 'tian_online_vector': {
  495. // 'groupname': '天地图在线矢量服务',
  496. // 'type': 'webTiled',
  497. // 'config': [
  498. // { 'name': '矢量地图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=vec_c&x={col}&y={row}&l={level}&tk=' }
  499. // ]
  500. // },
  501. // 'tian_online_raster': {
  502. // 'groupname': '天地图在线影像服务',
  503. // 'type': 'webTiled',
  504. // 'config': [
  505. // { 'name': '影像地图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=img_c&x={col}&y={row}&l={level}&tk=' }
  506. // ]
  507. // },
  508. // 'tian_online_vector_label': {
  509. // 'groupname': '天地图在线矢量标注服务',
  510. // 'type': 'webTiled',
  511. // 'config': [
  512. // { 'name': '矢量标注图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=cva_c&x={col}&y={row}&l={level}&tk=' }
  513. // ]
  514. // },
  515. // 'tian_online_raster_label': {
  516. // 'groupname': '天地图在线影像标注服务',
  517. // 'type': 'webTiled',
  518. // 'config': [
  519. // { 'name': '影像标注图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=cia_c&x={col}&y={row}&l={level}&tk=' }
  520. // ]
  521. // },
  522. // 'tian_offline_raster_label': {
  523. // 'groupname': '天地图离线标注图服务',
  524. // 'type': 'tiled',
  525. // 'config': [
  526. // { 'name': '标注地图', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/tysw_imgano/MapServer' }
  527. // ]
  528. // },
  529. // 'tian_offline_vector_label': {
  530. // 'groupname': '天地图离线标注图服务',
  531. // 'type': 'tiled',
  532. // 'config': [
  533. // { 'name': '标注地图', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/tysw_vecano/MapServer' }
  534. // ]
  535. // },
  536. // 'tian_offline_raster': {
  537. // 'groupname': '天地图离线影像图服务',
  538. // 'type': 'tiled',
  539. // 'config': [
  540. // { 'name': '影像地图', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/tysw_img/MapServer' }
  541. // ]
  542. // },
  543. // 'tian_offline_vector': {
  544. // 'groupname': '天地图离线矢量服务',
  545. // 'type': 'tiled',
  546. // 'config': [
  547. // { 'name': '矢量地图', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/tysw_vec/MapServer' }
  548. // ]
  549. // },
  550. // 'river_thema': {
  551. // 'groupname': '水系专题图服务',
  552. // 'type': 'dynamic',
  553. // 'config': [
  554. // { 'name': '水系专题图', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/pipe_river/MapServer' }
  555. // ]
  556. // },
  557. // 'business_map': {
  558. // 'groupname': '离线业务地图服务',
  559. // 'type': 'dynamic',
  560. // 'config': [
  561. // { 'name': '业务地图', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer' }
  562. // ]
  563. // },
  564. // 'print': {
  565. // 'groupname': '打印服务',
  566. // 'config': [
  567. // { 'name': '打印地图', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/TyswPrint/GPServer/TFPrint/execute' }
  568. // ]
  569. // },
  570. // 'geometry': {
  571. // 'groupname': '地图图形操作工具',
  572. // 'type': 'tiled',
  573. // 'config': [
  574. // { 'name': '地图工具', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer' }
  575. // ]
  576. // },
  577. // 'layer_name': {
  578. // 'groupname': '获取图层名称服务',
  579. // 'config': [
  580. // { 'name': '图层名称', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/getLayerInfor' }
  581. // ]
  582. // },
  583. // 'field_intersect': {
  584. // 'groupname': '获取重复字段',
  585. // 'config': [
  586. // { 'name': '字段名称', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/fieldIntersect' }
  587. // ]
  588. // },
  589. // 'fieldUniqueValue': {
  590. // 'groupname': '获取字段唯一值',
  591. // 'config': [
  592. // { 'name': '字段唯一', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/getFieldUniqueValue' }
  593. // ]
  594. // },
  595. // 'statistic': {
  596. // 'groupname': '属性统计',
  597. // 'config': [
  598. // { 'name': '属性统计', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/statistic' }
  599. // ]
  600. // },
  601. // 'horizental_section_analysis': {
  602. // 'groupname': '横剖面分析',
  603. // 'config': [
  604. // { 'name': '横剖面分析', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/HorizentalSectionAnalysis' }
  605. // ]
  606. // },
  607. // 'vertical_section_analysis': {
  608. // 'groupname': '纵剖面分析',
  609. // 'config': [
  610. // { 'name': '纵剖面分析', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/pipe_tysw/MapServer/exts/TFGeoAPISOE/VerticalSectionAnalysis' }
  611. // ]
  612. // },
  613. // 'shutOff_valve_extend_analysis': {
  614. // 'groupname': '关阀扩展分析',
  615. // 'config': [
  616. // { 'name': '关阀扩展分析', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/tyswgp/GPServer/ShutOffValveExtendTysw' }
  617. // ]
  618. // },
  619. // 'shutOff_valve_analysis': {
  620. // 'groupname': '关阀分析',
  621. // 'config': [
  622. // { 'name': '关阀分析', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/tyswgp/GPServer/ShutOffValveAnalyzeTysw' }
  623. // ]
  624. // },
  625. // 'burst_pipe_analyze_analysis': {
  626. // 'groupname': '爆管分析',
  627. // 'config': [
  628. // { 'name': '爆管分析', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/tyswgp/GPServer/BurstPipeAnalyzeTysw' }
  629. // ]
  630. // },
  631. // 'connected_analysis': {
  632. // 'groupname': '连通性分析',
  633. // 'config': [
  634. // { 'name': '连通性分析', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/xrty/tyswgp/GPServer/ConnectedAnalyzeTysw' }
  635. // ]
  636. // },
  637. // 'geometry': {
  638. // 'groupname': '图形服务',
  639. // 'type': 'geometry',
  640. // 'config': [
  641. // { 'name': '图形服务', 'url': 'http://192.168.100.202:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer' }
  642. // ]
  643. // }
  644. // }
  645. // }
  646. /**
  647. * 水力模型对接
  648. */
  649. //export const waterModelUrl = 'http://47.116.133.57:3000/JTWDWebServer'
  650. export const waterModelUrl = 'http://192.168.100.201/JTWDWebServer'
  651. /**
  652. * 轮询时机设置
  653. */
  654. export const notificationInterval = 30000
  655. export const homeInterval = 60000
  656. /**
  657. * 水力模型配置
  658. */
  659. // export const hyduralicsMenus = [
  660. // {
  661. // name: 'onlineForecast',
  662. // title: '在线预测',
  663. // url: 'http://47.116.133.57:3000/JinTangWDWebApp/#/single/monitoring'
  664. // },
  665. // {
  666. // name: 'smartScheduling',
  667. // title: '智能调度',
  668. // url: 'http://47.116.133.57:3000/JinTangWDWebApp/#/single/smart'
  669. // },
  670. // {
  671. // name: 'schedulingPlan',
  672. // title: '调度预案',
  673. // url: 'http://47.116.133.57:3000/JinTangWDWebApp/#/single/scheduling'
  674. // },
  675. // {
  676. // name: 'planEvaluation',
  677. // title: '规划评估',
  678. // url: 'http://47.116.133.57:3000/JinTangWDWebApp/#/single/plan'
  679. // },
  680. // {
  681. // name: 'pipeFushing',
  682. // title: '管道冲洗',
  683. // url: 'http://47.116.133.57:3000/JinTangWDWebApp/#/single/wash'
  684. // },
  685. // {
  686. // name: 'riskAssessment',
  687. // title: '风险评估',
  688. // url: 'http://47.116.133.57:3000/JinTangWDWebApp/#/single/risk'
  689. // },
  690. // {
  691. // name: 'hydrualicsSysSetting',
  692. // title: '系统设置',
  693. // url: 'http://47.116.133.57:3000/JinTangWDWebApp/#/single/system'
  694. // }
  695. // ]
  696. /**
  697. * 客户环境水力模型配置
  698. */
  699. export const hyduralicsMenus = [
  700. {
  701. name: 'onlineForecast',
  702. title: '在线预测',
  703. url: 'http://192.168.100.201/JinTangWDWebApp/#/single/monitoring'
  704. },
  705. {
  706. name: 'smartScheduling',
  707. title: '智能调度',
  708. url: 'http://192.168.100.201/JinTangWDWebApp/#/single/smart'
  709. },
  710. {
  711. name: 'schedulingPlan',
  712. title: '调度预案',
  713. url: 'http://192.168.100.201/JinTangWDWebApp/#/single/scheduling'
  714. },
  715. {
  716. name: 'planEvaluation',
  717. title: '规划评估',
  718. url: 'http://192.168.100.201/JinTangWDWebApp/#/single/plan'
  719. },
  720. {
  721. name: 'pipeFushing',
  722. title: '管道冲洗',
  723. url: 'http://192.168.100.201/JinTangWDWebApp/#/single/wash'
  724. },
  725. {
  726. name: 'riskAssessment',
  727. title: '风险评估',
  728. url: 'http://192.168.100.201/JinTangWDWebApp/#/single/risk'
  729. },
  730. {
  731. name: 'hydrualicsSysSetting',
  732. title: '系统设置',
  733. url: 'http://192.168.100.201/JinTangWDWebApp/#/single/system'
  734. }
  735. ]