config.js 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. /*
  2. * 云服务器上arcgis初始化配置
  3. */
  4. export const esriConfig = {
  5. 'baseUrl': 'http://183.255.30.6:8082/arcgis_js_api/library/4.16/dojo/dojo.js',
  6. 'baseCssUrl': 'http://183.255.30.6:8082/arcgis_js_api/library/4.16/esri/css/main.css',
  7. 'font_url': 'http://183.255.30.6:8082/arcgis_js_api/library/fonts/'
  8. }
  9. export const appconfig = {
  10. // 底图是否采用在线地图,true在线,false离线
  11. 'isonline': true,
  12. // 是否根据后台配置服务
  13. 'isloadServer': false,
  14. // 天地图秘钥 567b65214b47c6cd6a731e3bd8cd03da 700ea8c1e2dd873c349dc880169fd96d 9248d7f5b183142e4f1d5c908fba42e0
  15. 'tianMapKey': '9248d7f5b183142e4f1d5c908fba42e0',
  16. // 地图初始视角中心 马边:103.543616,28.833446, 陵水:110.03174,18.51504
  17. 'initCenter': { 'x': 102.18017, 'y': 27.40482 },
  18. // 打印模板
  19. 'templateFolder': 'E:/Datas/客户部署数据/PrintTemplates',
  20. // 地图初始视角级别
  21. 'initZoom': 2,
  22. 'usertoken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJVc2VySUQiOiIiLCJVU0VSTkFNRSI6IiIsIlJFQUxOQU1FIjoiIiwiV0tJRCI6NDU0NiwiUkFOR0UiOiJYUlRZIiwiUkFOR0VGSUVMRCI6bnVsbCwiQ09ERSI6IlhSVFkiLCJDT05ORUNUU1RSIjoiREFUQUJBU0U9Z2lzO05FVE5BTUU9MTAuMTAuMTAuMTEvb3JjbDtTRVJWRVI9MTAuMTAuMTAuMTE7VVNFUklEPVRGX0hOTFNfR0VPO1BBU1NXT1JEPVRGX0hOTFNfR0VPO1BPUlQ9MTUyMUA1MTUxL3RjcDtWRVJTSU9OPXNkZS5ERUZBVUxUIiwiQm9yblRpbWUiOjAsIkFwcElEIjpudWxsfQ.ZQS38FIsEhGvMbkL5IfM_J6gcZz4sO4a9GlROVsLL9oBaOjkf5UlO3a3ZurJSqXpNIgxuYvbUmUXFueYA9AEyA',
  23. // 地图资源服务
  24. 'gisResource': {
  25. 'tian_online_vector': {
  26. 'groupname': '天地图在线矢量服务',
  27. 'type': 'webTiled',
  28. 'config': [
  29. { 'name': '矢量地图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=vec_c&x={col}&y={row}&l={level}&tk=' }
  30. ]
  31. },
  32. 'tian_online_raster': {
  33. 'groupname': '天地图在线影像服务',
  34. 'type': 'webTiled',
  35. 'config': [
  36. { 'name': '影像地图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=img_c&x={col}&y={row}&l={level}&tk=' }
  37. ]
  38. },
  39. 'tian_online_vector_label': {
  40. 'groupname': '天地图在线矢量标注服务',
  41. 'type': 'webTiled',
  42. 'config': [
  43. { 'name': '矢量标注图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=cva_c&x={col}&y={row}&l={level}&tk=' }
  44. ]
  45. },
  46. 'tian_online_raster_label': {
  47. 'groupname': '天地图在线影像标注服务',
  48. 'type': 'webTiled',
  49. 'config': [
  50. { 'name': '影像标注图', 'url': 'http://{subDomain}.tianditu.com/DataServer?T=cia_c&x={col}&y={row}&l={level}&tk=' }
  51. ]
  52. },
  53. 'tian_offline_raster_label': {
  54. 'groupname': '天地图离线标注图服务',
  55. 'type': 'tiled',
  56. 'config': [
  57. { 'name': '标注地图', 'url': 'http://192.168.2.61:6080/arcgis/rest/services/xrty/tysw_imgano/MapServer' }
  58. ]
  59. },
  60. 'tian_offline_vector_label': {
  61. 'groupname': '天地图离线标注图服务',
  62. 'type': 'tiled',
  63. 'config': [
  64. { 'name': '标注地图', 'url': 'http://192.168.2.61:6080/arcgis/rest/services/xrty/tysw_vecano/MapServer' }
  65. ]
  66. },
  67. 'tian_offline_raster': {
  68. 'groupname': '天地图离线影像图服务',
  69. 'type': 'tiled',
  70. 'config': [
  71. { 'name': '影像地图', 'url': 'http://192.168.2.61:6080/arcgis/rest/services/xrty/tysw_img/MapServer' }
  72. ]
  73. },
  74. 'tian_offline_vector': {
  75. 'groupname': '天地图离线矢量服务',
  76. 'type': 'tiled',
  77. 'config': [
  78. { 'name': '矢量地图', 'url': 'https://192.168.2.61:6080/arcgis/rest/services/xrty/tysw_vec/MapServer' }
  79. ]
  80. },
  81. 'river_thema': {
  82. 'groupname': '水系专题图服务',
  83. 'type': 'dynamic',
  84. 'config': [
  85. { 'name': '水系专题图', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/xrty/pipe_river/MapServer' }
  86. ]
  87. },
  88. 'business_map': {
  89. 'groupname': '离线业务地图服务',
  90. 'type': 'dynamic',
  91. 'config': [
  92. { 'name': '业务地图', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/pipe_lssw/MapServer' }
  93. ]
  94. },
  95. 'print': {
  96. 'groupname': '打印服务',
  97. 'config': [
  98. { 'name': '打印地图', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/TFPrint/GPServer/TFPrint/execute' }
  99. ]
  100. },
  101. 'geometry': {
  102. 'groupname': '地图图形操作工具',
  103. 'type': 'tiled',
  104. 'config': [
  105. { 'name': '地图工具', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer' }
  106. ]
  107. },
  108. 'layer_name': {
  109. 'groupname': '获取图层名称服务',
  110. 'config': [
  111. { 'name': '图层名称', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/pipe_lssw/MapServer/exts/TFGeoAPISOE/getLayerInfor' }
  112. ]
  113. },
  114. 'field_intersect': {
  115. 'groupname': '获取重复字段',
  116. 'config': [
  117. { 'name': '字段名称', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/pipe_lssw/MapServer/exts/TFGeoAPISOE/fieldIntersect' }
  118. ]
  119. },
  120. 'fieldUniqueValue': {
  121. 'groupname': '获取字段唯一值',
  122. 'config': [
  123. { 'name': '字段唯一', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/pipe_lssw/MapServer/exts/TFGeoAPISOE/getFieldUniqueValue' }
  124. ]
  125. },
  126. 'statistic': {
  127. 'groupname': '属性统计',
  128. 'config': [
  129. { 'name': '属性统计', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/pipe_lssw/MapServer/exts/TFGeoAPISOE/statistic' }
  130. ]
  131. },
  132. 'horizental_section_analysis': {
  133. 'groupname': '横剖面分析',
  134. 'config': [
  135. { 'name': '横剖面分析', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/pipe_lssw/MapServer/exts/TFGeoAPISOE/HorizentalSectionAnalysis' }
  136. ]
  137. },
  138. 'vertical_section_analysis': {
  139. 'groupname': '纵剖面分析',
  140. 'config': [
  141. { 'name': '纵剖面分析', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/pipe_lssw/MapServer/exts/TFGeoAPISOE/VerticalSectionAnalysis' }
  142. ]
  143. },
  144. 'shutOff_valve_extend_analysis': {
  145. 'groupname': '关阀扩展分析',
  146. 'config': [
  147. { 'name': '关阀扩展分析', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/lsswgp/GPServer/ShutOffValveExtend' }
  148. ]
  149. },
  150. 'shutOff_valve_analysis': {
  151. 'groupname': '关阀分析',
  152. 'config': [
  153. { 'name': '关阀分析', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/lsswgp/GPServer/ShutOffValveAnalyze' }
  154. ]
  155. },
  156. 'burst_pipe_analyze_analysis': {
  157. 'groupname': '爆管分析',
  158. 'config': [
  159. { 'name': '爆管分析', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/lsswgp/GPServer/BurstPipeAnalyze' }
  160. ]
  161. },
  162. 'connected_analysis': {
  163. 'groupname': '连通性分析',
  164. 'config': [
  165. { 'name': '连通性分析', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/lsswgp/GPServer/ConnectedAnalyze' }
  166. ]
  167. },
  168. 'path_analysis': {
  169. 'groupname': '路径分析',
  170. 'config': [
  171. { 'name': '路径分析', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/lsswgp/GPServer/PathAnalyze' }
  172. ]
  173. },
  174. 'trace_downStream_analyze': {
  175. 'groupname': '下游追踪分析',
  176. 'config': [
  177. { 'name': '下游追踪分析', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/lsswgp/GPServer/TraceDownstreamAnalyze' }
  178. ]
  179. }
  180. }
  181. }
  182. /**
  183. * 轮询时机设置
  184. */
  185. export const notificationInterval = 30000
  186. export const homeInterval = 60000
  187. /**
  188. * 客户环境水力模型配置
  189. */
  190. export const hyduralicsMenus = [
  191. {
  192. name: 'onlineForecast',
  193. title: '在线预测',
  194. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/monitoring'
  195. },
  196. {
  197. name: 'smartScheduling',
  198. title: '智能调度',
  199. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/smart'
  200. },
  201. {
  202. name: 'schedulingPlan',
  203. title: '调度预案',
  204. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/scheduling'
  205. },
  206. {
  207. name: 'planEvaluation',
  208. title: '规划评估',
  209. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/plan'
  210. },
  211. {
  212. name: 'pipeFushing',
  213. title: '管道冲洗',
  214. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/wash'
  215. },
  216. {
  217. name: 'riskAssessment',
  218. title: '风险评估',
  219. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/risk'
  220. },
  221. {
  222. name: 'hydrualicsSysSetting',
  223. title: '系统设置',
  224. url: 'https://192.168.100.201/JinTangWDWebApp/#/single/system'
  225. }
  226. ]