config.js 9.4 KB

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