config.js 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. const Url = 'http://36.138.232.112'
  2. const esriApiPort = '8082'
  3. /*
  4. * 云服务器上arcgis初始化配置
  5. */
  6. export const esriConfig = {
  7. 'baseUrl': `${Url}:${esriApiPort}/arcgis_js_api/library/4.16/dojo/dojo.js`,
  8. 'baseCssUrl': `${Url}:${esriApiPort}/arcgis_js_api/library/4.16/esri/css/main.css`,
  9. 'font_url': `${Url}:${esriApiPort}/arcgis_js_api/library/fonts/`
  10. }
  11. export const appconfig = {
  12. // 底图是否采用在线地图,true在线,false离线
  13. 'isonline': true,
  14. // 是否根据后台配置服务
  15. 'isloadServer': false,
  16. // 天地图秘钥 567b65214b47c6cd6a731e3bd8cd03da 700ea8c1e2dd873c349dc880169fd96d 9248d7f5b183142e4f1d5c908fba42e0
  17. 'tianMapKey': '9248d7f5b183142e4f1d5c908fba42e0',
  18. // 地图初始视角中心 马边:103.543616,28.833446, 陵水:110.03174,18.51504
  19. 'initCenter': { 'x': 102.18017, 'y': 27.40482 },
  20. // 打印模板
  21. 'templateFolder': 'E:/Datas/客户部署数据/PrintTemplates',
  22. // 地图初始视角级别
  23. 'initZoom': 2,
  24. 'usertoken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJVc2VySUQiOiIiLCJVU0VSTkFNRSI6IiIsIlJFQUxOQU1FIjoiIiwiV0tJRCI6NDU0NCwiUkFOR0UiOiJYUlRZIiwiUkFOR0VGSUVMRCI6bnVsbCwiQ09ERSI6IlhSVFkiLCJDT05ORUNUU1RSIjoiREFUQUJBU0U9b3JjbDtORVROQU1FPTE5Mi4xNjguMC4xOC9vcmNsO1NFUlZFUj0xOTIuMTY4LjAuMTg7VVNFUklEPXNkZV9kY3N3O1BBU1NXT1JEPVpoc3dfMTIzO1BPUlQ9MTUyMUA1MTUxL3RjcDtWRVJTSU9OPXNkZS5ERUZBVUxUIiwiQm9yblRpbWUiOjAsIkFwcElEIjpudWxsfQ.QBNAdOM7H36k_1lF-z3oRR_E2-QkDyp8wfgTrvssOKANYTSjY5bWvoMxrV52_k1h9ouqv1CM71C8fl7TFioIvw',
  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://36.138.232.112: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://36.138.232.112: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://36.138.232.112: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://36.138.232.112:6080/arcgis/rest/services/xrty/tysw_vec/MapServer' }
  81. ]
  82. },
  83. 'river_thema': {
  84. 'groupname': '水系专题图服务',
  85. 'type': 'dynamic',
  86. 'config': [
  87. { 'name': '水系专题图', 'url': 'http://36.138.232.112:6080/arcgis/rest/services/xrty/pipe_river/MapServer' }
  88. ]
  89. },
  90. 'business_map': {
  91. 'groupname': '离线业务地图服务',
  92. 'type': 'dynamic',
  93. 'config': [
  94. { 'name': '业务地图', 'url': 'http://36.138.232.112:6080/arcgis/rest/services/DCSW/PIPE_DCSW/MapServer' }
  95. ]
  96. },
  97. 'print': {
  98. 'groupname': '打印服务',
  99. 'config': [
  100. { 'name': '打印地图', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/TFPrint/GPServer/TFPrint/execute' }
  101. ]
  102. },
  103. 'geometry': {
  104. 'groupname': '地图图形操作工具',
  105. 'type': 'tiled',
  106. 'config': [
  107. { 'name': '地图工具', 'url': 'http://36.138.232.112:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer' }
  108. ]
  109. },
  110. 'layer_name': {
  111. 'groupname': '获取图层名称服务',
  112. 'config': [
  113. { 'name': '图层名称', 'url': 'http://36.138.232.112:6080/arcgis/rest/services/DCSW/PIPE_DCSW/MapServer/exts/TFGeoAPISOE/getLayerInfor' }
  114. ]
  115. },
  116. 'field_intersect': {
  117. 'groupname': '获取重复字段',
  118. 'config': [
  119. { 'name': '字段名称', 'url': 'http://36.138.232.112:6080/arcgis/rest/services/DCSW/PIPE_DCSW/MapServer/exts/TFGeoAPISOE/fieldIntersect' }
  120. ]
  121. },
  122. 'fieldUniqueValue': {
  123. 'groupname': '获取字段唯一值',
  124. 'config': [
  125. { 'name': '字段唯一', 'url': 'http://36.138.232.112:6080/arcgis/rest/services/DCSW/PIPE_DCSW/MapServer/exts/TFGeoAPISOE/getFieldUniqueValue' }
  126. ]
  127. },
  128. 'statistic': {
  129. 'groupname': '属性统计',
  130. 'config': [
  131. { 'name': '属性统计', 'url': 'http://36.138.232.112:6080/arcgis/rest/services/DCSW/PIPE_DCSW/MapServer/exts/TFGeoAPISOE/statistic' }
  132. ]
  133. },
  134. 'horizental_section_analysis': {
  135. 'groupname': '横剖面分析',
  136. 'config': [
  137. { 'name': '横剖面分析', 'url': 'http://36.138.232.112:6080/arcgis/rest/services/DCSW/PIPE_DCSW/MapServer/exts/TFGeoAPISOE/HorizentalSectionAnalysis' }
  138. ]
  139. },
  140. 'vertical_section_analysis': {
  141. 'groupname': '纵剖面分析',
  142. 'config': [
  143. { 'name': '纵剖面分析', 'url': 'http://36.138.232.112:6080/arcgis/rest/services/DCSW/PIPE_DCSW/MapServer/exts/TFGeoAPISOE/VerticalSectionAnalysis' }
  144. ]
  145. },
  146. 'shutOff_valve_extend_analysis': {
  147. 'groupname': '关阀扩展分析',
  148. 'config': [
  149. { 'name': '关阀扩展分析', 'url': 'http://36.138.232.112:6080/arcgis/rest/services/GPTool/ShutOffValveExtend/GPServer/ShutOffValveExtendTysw' }
  150. ]
  151. },
  152. 'shutOff_valve_analysis': {
  153. 'groupname': '关阀分析',
  154. 'config': [
  155. { 'name': '关阀分析', 'url': 'http://36.138.232.112:6080/arcgis/rest/services/GPTool/ShutOffValveAnalyze/GPServer/ShutOffValveAnalyzeTysw' }
  156. ]
  157. },
  158. 'burst_pipe_analyze_analysis': {
  159. 'groupname': '爆管分析',
  160. 'config': [
  161. { 'name': '爆管分析', 'url': 'http://36.138.232.112:6080/arcgis/rest/services/GPTool/BurstPipeAnalyze/GPServer/BurstPipeAnalyzeTysw' }
  162. ]
  163. },
  164. 'connected_analysis': {
  165. 'groupname': '连通性分析',
  166. 'config': [
  167. { 'name': '连通性分析', 'url': 'http://36.138.232.112:6080/arcgis/rest/services/GPTool/ConnectedAnalyze/GPServer/ConnectedAnalyzeTysw' }
  168. ]
  169. },
  170. 'path_analysis': {
  171. 'groupname': '路径分析',
  172. 'config': [
  173. { 'name': '路径分析', 'url': 'http://36.138.232.112:6080/arcgis/rest/services/GPTool/PathAnalyze/GPServer/PathAnalyzeTysw' }
  174. ]
  175. },
  176. 'trace_downStream_analyze': {
  177. 'groupname': '下游追踪分析',
  178. 'config': [
  179. { 'name': '下游追踪分析', 'url': 'http://36.138.232.112: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. ]