config.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. (function (window) {
  2. let IP=window.localStorage.getItem('IP')
  3. if(!IP){
  4. window.localStorage.setItem('IP','10.101.37.13')
  5. }
  6. window.applicationConfig = {
  7. isMapToken: false,// 是否需要获取toekn
  8. regionName: '某某区',
  9. projectName: "温州市“天空地”态势感知综合场景应用",
  10. currentRegion: '320205',
  11. //三维文件服务主机地址
  12. fileHostAddress: '/3dHost/upload/',
  13. arcGisList: [
  14. {
  15. hostName: 'arcserver_host',
  16. url: '10.101.37.25:6080'
  17. },
  18. {
  19. hostName: 'arcgis_host',
  20. url: '10.101.37.25:6080'
  21. },
  22. {
  23. hostName: 'arcserver26_host',
  24. url: '10.101.37.18:6080'
  25. },
  26. {
  27. hostName: 'arcgis26_host',
  28. url: '10.101.37.18:6080'
  29. },
  30. ],
  31. YTH:{
  32. http:'http://114.215.200.79:6030',
  33. http2:'http://2.20.42.42:8088/z_user_org_right',
  34. url:'/LoginApi/tokenChecking',
  35. param:{
  36. 'zjugis.api.ticket':'wwkj%26key%26zdww1402'
  37. }
  38. },
  39. //航拍标志点
  40. HPBZDUrl:'/arcgis_host/arcgis/rest/services/SWZ/SWZHPZP/MapServer',
  41. // 慧巡查项目空间服务地址
  42. xcXMJGUrl:'/arcgis_host/arcgis/rest/services/SWZ/XNSLSYLTB/MapServer',
  43. // xcXMJGUrl:'arcgis_host/arcgis/rest/services/JCSJ/XC_XMGL/MapServer',
  44. //重大项目保障
  45. zdxmbzXMGlUrl:'arcgis_host/arcgis/rest/services/SWZ/XNSLSYLTB/MapServer',
  46. //经营性用地空间服务地址
  47. jyxdkUrl:'arcgis_host/arcgis/rest/services/CBZX/JYXYD/MapServer',
  48. baseMap: 'http://60.191.110.206:46080/arcgis/rest/services/WX_XinShanQ/XS_YX/MapServer',
  49. specialRectificationActionBaseMapUrl:'arcserver26_host/arcgis/rest/services/YGYX/YX2000_2021/MapServer',
  50. // eyeBetweenStayingUrl: 'http://60.191.110.206:48016/#/noHeader',
  51. //智慧动态监测iframe的url
  52. // dynamicMonitoringUrl: 'http://localhost:8082/#/',
  53. dynamicMonitoringUrlOld: 'http://localhost:8082/#/',
  54. dtjcJctbServerUrl: 'arcserver_host/arcgis/rest/services/DTJC/DTJC_JCTB/MapServer',
  55. srid: 4490,
  56. tileInfo: {
  57. tileSize: 256,
  58. origin: [34876800, 10002100],
  59. extent: [40453740.474700004, 3442540.7754500005, 40557073.819, 3541460.3122000005],
  60. resolutions: [
  61. 132.2919312505292,
  62. 76.35146092731352,
  63. 38.17573046365676,
  64. 19.08786523182838,
  65. 9.543932616046483,
  66. 4.771966307890949,
  67. 2.3859831539454746,
  68. 1.1929915769727373,
  69. 0.5964957886186606,
  70. 0.14912394722081113
  71. ]
  72. },
  73. QXSYURL: 'http://60.191.110.206:48005/xishan/qinxie01/%E9%94%A1%E5%B1%B13DTiles/tileset.json',
  74. cycleTime: 360 * 60 * 1000,//循环时间
  75. tokenValid: 360 * 60 * 1000,//token 有效时长
  76. ifOnlyTheLogin: false,//是否唯一登录
  77. };
  78. Object.defineProperties(window.applicationConfig, {
  79. //慧眼守土-实时监测
  80. eyeBetweenStayingUrl : { //定义属性y
  81. get : function () { //设置访问器
  82. return 'http://'+window.localStorage.getItem('IP')+':8082/#/no-header/home-page';
  83. },
  84. },
  85. //慧眼守土-巡查核实
  86. eyeBetweenWarningUrl : {
  87. get : function () {
  88. return 'http://'+window.localStorage.getItem('IP')+':8082/#/no-header/regulatoryWarning';
  89. },
  90. },
  91. //慧眼平台基础ip
  92. eyeBetweenStayingUrlBase:{
  93. get : function () { //设置访问器
  94. return 'http://'+window.localStorage.getItem('IP')+':8082';
  95. },
  96. },
  97. //智慧动态监测
  98. dynamicMonitoringUrl:{
  99. get : function () { //设置访问器
  100. return 'http://'+window.localStorage.getItem('IP')+':8083/#/';
  101. // return 'http://localhost:8083/#/';
  102. },
  103. },
  104. });
  105. }(window));