config 20231112.js 9.1 KB

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