config.js 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. * @Descripttion: 配置文件
  3. * @Author: sujunling
  4. * @Date: 2025-05-28 18:37:18
  5. */
  6. /*
  7. *公司初始化配置
  8. */
  9. export const esriConfig = {
  10. 'baseUrl': 'http://221.182.8.141:8080/arcgis_js_api/v416/arcgis_js_api/library/4.16/dojo/dojo.js',
  11. 'baseCssUrl': 'http://221.182.8.141:8080/arcgis_js_api/v416/arcgis_js_api/library/4.16/esri/css/main.css',
  12. 'font_url': 'http://221.182.8.141:8080/arcgis_js_api/v416/arcgis_js_api/library/fonts/',
  13. }
  14. export const iserverConfig = {
  15. // 'baseUrl': 'http://117.174.10.73:8090/iserver/'
  16. 'baseUrl': 'http://221.182.8.141:8090/iserver/'
  17. }
  18. export const getResultList = {
  19. // coordinatedEvaluationUrl: "http://221.182.8.141:7021/data/response.json",
  20. coordinatedEvaluationUrl: "./static/response.json",
  21. analyseDataUrl: "http://221.182.8.141:7021/analyze_epc_synergy",
  22. // problemUrl: "http://221.182.8.141:7022/data/response.json",
  23. problemUrl: "./static/response-wt.json",
  24. problemFileUrl: "http://221.182.8.141:7022/process_documents",
  25. sgjdmn_init: './static/testData.json',
  26. sgjdmn_analysis: 'http://127.0.0.1:8000/run',
  27. fileUrl: 'http://127.0.0.1:8000/run',//下载
  28. goOut:"https://tgdcepc.ctg.com.cn:8443/bimp/#/login"
  29. }
  30. //退出登录的地址
  31. export const appconfig = {
  32. // 底图是否采用在线地图,true在线,false离线
  33. 'isonline': true,
  34. // 是否根据后台配置服务
  35. 'isloadServer': true,
  36. // 天地图秘钥
  37. // 'tianMapKey': '700ea8c1e2dd873c349dc880169fd96d',
  38. 'tianMapKey': '9248d7f5b183142e4f1d5c908fba42e0',
  39. // 打印模板
  40. 'templateFolder': 'D:/xrty/template',
  41. // 地图初始视角中心
  42. // 临时使用
  43. // 当前地图坐标系, 用于转换
  44. 'currPRJ': '4547',
  45. 'currCenter': { "lon": "113.17326715436977", "lat": "29.37027846440258", "height": "50159.21860055598" },
  46. 'initLayers': 'pipemap&&smlayergroup', // 用于配置图层树 pipemap&&group
  47. // 地图初始视角级别
  48. 'initZoom': 15,
  49. // token
  50. 'usertoken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJVc2VySUQiOiIiLCJVU0VSTkFNRSI6IiIsIlJFQUxOQU1FIjoiIiwiV0tJRCI6NDU0NCwiUkFOR0UiOiJYUlRZIiwiUkFOR0VGSUVMRCI6bnVsbCwiQ09ERSI6IlhSVFkiLCJDT05ORUNUU1RSIjoiREFUQUJBU0U9b3JjbDtORVROQU1FPTE5Mi4xNjguMi4yNDIvb3JjbDtTRVJWRVI9MTkyLjE2OC4yLjI0MjtVU0VSSUQ9dGZfeHJ0eV9nZW87UEFTU1dPUkQ9dGZfeHJ0eV9nZW87UE9SVD0xNTIxQDUxNTEvdGNwO1ZFUlNJT049c2RlLkRFRkFVTFQiLCJCb3JuVGltZSI6MCwiQXBwSUQiOm51bGx9.bMNoX6nsvNYukk47_UnT9IHGlNIWclbmiXTj3ak1i5KuF5LGexfwV7TwF80nP08GEPaNwScgk7lbJkRHcqtT8w',
  51. }
  52. export function setParams(geoInfo) {
  53. console.log('设置坐标')
  54. // const parmas = {
  55. // '宜昌': { proj: '4546', center: { "lon": "111.291353", "lat": "30.705687", "height": "30159.21860055598" } },
  56. // '岳阳': { proj: '4547', center: { "lon": "113.17326715436977", "lat": "29.37027846440258", "height": "30159.21860055598" } },
  57. // }
  58. let { wkid: proj, geo_info: center } = geoInfo
  59. appconfig.currCenter = center
  60. appconfig.currPRJ = proj
  61. //AppX.appConfig.initPosition = center
  62. }