config 20231031.js 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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:
  25. "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJVc2VySUQiOiIiLCJVU0VSTkFNRSI6IiIsIlJFQUxOQU1FIjoiIiwiV0tJRCI6NDU0NCwiUkFOR0UiOiJYUlRZIiwiUkFOR0VGSUVMRCI6bnVsbCwiQ09ERSI6IlhSVFkiLCJDT05ORUNUU1RSIjoiREFUQUJBU0U9b3JjbDtORVROQU1FPTE5Mi4xNjguMC4xOC9vcmNsO1NFUlZFUj0xOTIuMTY4LjAuMTg7VVNFUklEPXNkZV9kY3N3O1BBU1NXT1JEPVpoc3dfMTIzO1BPUlQ9MTUyMUA1MTUxL3RjcDtWRVJTSU9OPXNkZS5ERUZBVUxUIiwiQm9yblRpbWUiOjAsIkFwcElEIjpudWxsfQ.QBNAdOM7H36k_1lF-z3oRR_E2-QkDyp8wfgTrvssOKANYTSjY5bWvoMxrV52_k1h9ouqv1CM71C8fl7TFioIvw",
  26. // 地图资源服务
  27. gisResource: {
  28. tian_online_vector: {
  29. groupname: "天地图在线矢量服务",
  30. type: "webTiled",
  31. config: [
  32. {
  33. name: "矢量地图",
  34. url: "http://{subDomain}.tianditu.com/DataServer?T=vec_c&x={col}&y={row}&l={level}&tk=",
  35. },
  36. ],
  37. },
  38. tian_online_raster: {
  39. groupname: "天地图在线影像服务",
  40. type: "webTiled",
  41. config: [
  42. {
  43. name: "影像地图",
  44. url: "http://{subDomain}.tianditu.com/DataServer?T=img_c&x={col}&y={row}&l={level}&tk=",
  45. },
  46. ],
  47. },
  48. tian_online_vector_label: {
  49. groupname: "天地图在线矢量标注服务",
  50. type: "webTiled",
  51. config: [
  52. {
  53. name: "矢量标注图",
  54. url: "http://{subDomain}.tianditu.com/DataServer?T=cva_c&x={col}&y={row}&l={level}&tk=",
  55. },
  56. ],
  57. },
  58. tian_online_raster_label: {
  59. groupname: "天地图在线影像标注服务",
  60. type: "webTiled",
  61. config: [
  62. {
  63. name: "影像标注图",
  64. url: "http://{subDomain}.tianditu.com/DataServer?T=cia_c&x={col}&y={row}&l={level}&tk=",
  65. },
  66. ],
  67. },
  68. tian_offline_raster_label: {
  69. groupname: "天地图离线标注图服务",
  70. type: "tiled",
  71. config: [
  72. {
  73. name: "标注地图",
  74. url: "http://36.138.232.112:6080/arcgis/rest/services/xrty/tysw_imgano/MapServer",
  75. },
  76. ],
  77. },
  78. tian_offline_vector_label: {
  79. groupname: "天地图离线标注图服务",
  80. type: "tiled",
  81. config: [
  82. {
  83. name: "标注地图",
  84. url: "http://36.138.232.112:6080/arcgis/rest/services/xrty/tysw_vecano/MapServer",
  85. },
  86. ],
  87. },
  88. tian_offline_raster: {
  89. groupname: "天地图离线影像图服务",
  90. type: "tiled",
  91. config: [
  92. {
  93. name: "影像地图",
  94. url: "http://36.138.232.112:6080/arcgis/rest/services/xrty/tysw_img/MapServer",
  95. },
  96. ],
  97. },
  98. tian_offline_vector: {
  99. groupname: "天地图离线矢量服务",
  100. type: "tiled",
  101. config: [
  102. {
  103. name: "矢量地图",
  104. url: "https://36.138.232.112:6080/arcgis/rest/services/xrty/tysw_vec/MapServer",
  105. },
  106. ],
  107. },
  108. river_thema: {
  109. groupname: "水系专题图服务",
  110. type: "dynamic",
  111. config: [
  112. {
  113. name: "水系专题图",
  114. url: "http://36.138.232.112:6080/arcgis/rest/services/xrty/pipe_river/MapServer",
  115. },
  116. ],
  117. },
  118. business_map: {
  119. groupname: "离线业务地图服务",
  120. type: "dynamic",
  121. config: [
  122. {
  123. name: "业务地图",
  124. url: "http://36.138.232.112:6080/arcgis/rest/services/PIPE_DCSW_CS/MapServer",
  125. },
  126. ],
  127. },
  128. print: {
  129. groupname: "打印服务",
  130. config: [
  131. // { 'name': '打印地图', 'url': 'http://183.255.30.6:6080/arcgis/rest/services/hnls/TFPrint/GPServer/TFPrint/execute' }
  132. {
  133. name: "打印地图",
  134. url: "http://36.138.232.112:6080/arcgis/rest/services/DCSW/TFPrintMxd/GPServer/TFPrintMxd",
  135. },
  136. ],
  137. },
  138. geometry: {
  139. groupname: "地图图形操作工具",
  140. type: "tiled",
  141. config: [
  142. {
  143. name: "地图工具",
  144. url: "http://36.138.232.112:6080/arcgis/rest/services/Utilities/Geometry/GeometryServer",
  145. },
  146. ],
  147. },
  148. layer_name: {
  149. groupname: "获取图层名称服务",
  150. config: [
  151. {
  152. name: "图层名称",
  153. url: "http://36.138.232.112:6080/arcgis/rest/services/PIPE_DCSW_CS/MapServer/exts/TFGeoAPISOE/getLayerInfor",
  154. },
  155. ],
  156. },
  157. field_intersect: {
  158. groupname: "获取重复字段",
  159. config: [
  160. {
  161. name: "字段名称",
  162. url: "http://36.138.232.112:6080/arcgis/rest/services/PIPE_DCSW_CS/MapServer/exts/TFGeoAPISOE/fieldIntersect",
  163. },
  164. ],
  165. },
  166. fieldUniqueValue: {
  167. groupname: "获取字段唯一值",
  168. config: [
  169. {
  170. name: "字段唯一",
  171. url: "http://36.138.232.112:6080/arcgis/rest/services/PIPE_DCSW_CS/MapServer/exts/TFGeoAPISOE/getFieldUniqueValue",
  172. },
  173. ],
  174. },
  175. statistic: {
  176. groupname: "属性统计",
  177. config: [
  178. {
  179. name: "属性统计",
  180. url: "http://36.138.232.112:6080/arcgis/rest/services/PIPE_DCSW_CS/MapServer/exts/TFGeoAPISOE/statistic",
  181. },
  182. ],
  183. },
  184. horizental_section_analysis: {
  185. groupname: "横剖面分析",
  186. config: [
  187. {
  188. name: "横剖面分析",
  189. url: "http://36.138.232.112:6080/arcgis/rest/services/PIPE_DCSW_CS/MapServer/exts/TFGeoAPISOE/HorizentalSectionAnalysis",
  190. },
  191. ],
  192. },
  193. vertical_section_analysis: {
  194. groupname: "纵剖面分析",
  195. config: [
  196. {
  197. name: "纵剖面分析",
  198. url: "http://36.138.232.112:6080/arcgis/rest/services/PIPE_DCSW_CS/MapServer/exts/TFGeoAPISOE/VerticalSectionAnalysis",
  199. },
  200. ],
  201. },
  202. shutOff_valve_extend_analysis: {
  203. groupname: "关阀扩展分析",
  204. config: [
  205. {
  206. name: "关阀扩展分析",
  207. url: "http://36.138.232.112:6080/arcgis/rest/services/GPTool/GPServer/ShutOffValveExtend",
  208. },
  209. ],
  210. },
  211. shutOff_valve_analysis: {
  212. groupname: "关阀分析",
  213. config: [
  214. {
  215. name: "关阀分析",
  216. url: "http://36.138.232.112:6080/arcgis/rest/services/GPTool/ShutOffValveAnalyze",
  217. },
  218. ],
  219. },
  220. burst_pipe_analyze_analysis: {
  221. groupname: "爆管分析",
  222. config: [
  223. {
  224. name: "爆管分析",
  225. url: "http://36.138.232.112:6080/arcgis/rest/services/GPTool/GPServer/BurstPipeAnalyze",
  226. },
  227. ],
  228. },
  229. connected_analysis: {
  230. groupname: "连通性分析",
  231. config: [
  232. {
  233. name: "连通性分析",
  234. url: "http://36.138.232.112:6080/arcgis/rest/services/GPTool/GPServer/ConnectedAnalyze",
  235. },
  236. ],
  237. },
  238. path_analysis: {
  239. groupname: "路径分析",
  240. config: [
  241. {
  242. name: "路径分析",
  243. url: "http://36.138.232.112:6080/arcgis/rest/services/GPTool/PathAnalyze/GPServer/PathAnalyze",
  244. },
  245. ],
  246. },
  247. trace_downStream_analyze: {
  248. groupname: "下游追踪分析",
  249. config: [
  250. {
  251. name: "下游追踪分析",
  252. url: "http://36.138.232.112:6080/arcgis/rest/services/hnls/lsswgp/GPServer/TraceDownstreamAnalyze",
  253. },
  254. ],
  255. },
  256. },
  257. };
  258. /**
  259. * 轮询时机设置
  260. */
  261. export const notificationInterval = 30000;
  262. export const homeInterval = 60000;
  263. /**
  264. * 客户环境水力模型配置
  265. */
  266. export const hyduralicsMenus = [
  267. {
  268. name: "onlineForecast",
  269. title: "在线预测",
  270. url: "https://192.168.100.201/JinTangWDWebApp/#/single/monitoring",
  271. },
  272. {
  273. name: "smartScheduling",
  274. title: "智能调度",
  275. url: "https://192.168.100.201/JinTangWDWebApp/#/single/smart",
  276. },
  277. {
  278. name: "schedulingPlan",
  279. title: "调度预案",
  280. url: "https://192.168.100.201/JinTangWDWebApp/#/single/scheduling",
  281. },
  282. {
  283. name: "planEvaluation",
  284. title: "规划评估",
  285. url: "https://192.168.100.201/JinTangWDWebApp/#/single/plan",
  286. },
  287. {
  288. name: "pipeFushing",
  289. title: "管道冲洗",
  290. url: "https://192.168.100.201/JinTangWDWebApp/#/single/wash",
  291. },
  292. {
  293. name: "riskAssessment",
  294. title: "风险评估",
  295. url: "https://192.168.100.201/JinTangWDWebApp/#/single/risk",
  296. },
  297. {
  298. name: "hydrualicsSysSetting",
  299. title: "系统设置",
  300. url: "https://192.168.100.201/JinTangWDWebApp/#/single/system",
  301. },
  302. ];