config.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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: "https://tgdcepc.ctg.com.cn:8443/gis/decisionsupport2/data/response.json",
  20. // coordinatedEvaluationUrl: "./static/response.json",
  21. analyseDataUrl: "https://tgdcepc.ctg.com.cn:8443/gis/decisionsupport2/analyze_epc_synergy",
  22. problemUrl: "https://tgdcepc.ctg.com.cn:8443/gis/decisionsupport3/data/response.json",
  23. // problemUrl: "./static/response-wt.json",
  24. problemFileUrl: "https://tgdcepc.ctg.com.cn:8443/gis/decisionsupport3/process_documents",
  25. sgjdmn_init: 'https://tgdcepc.ctg.com.cn:8443/gis/decisionsupport1/static/data/testData.json',
  26. sgjdmn_analysis: 'https://tgdcepc.ctg.com.cn:8443/gis/decisionsupport1/run',
  27. fileUrl: 'https://tgdcepc.ctg.com.cn:8443/gis/decisionsupport1/upload-file',//下载
  28. downloadUrl: '',//下载
  29. // sgjdmn_init: './static/testData.json',
  30. // sgjdmn_analysis: 'http://127.0.0.1:7023/run',
  31. // fileUrl: 'http://127.0.0.1:7023/upload-file',//下载
  32. // downloadUrl: '',//下载
  33. goOut:"https://tgdcepc.ctg.com.cn:8443/bimp/#/login"
  34. }
  35. //退出登录的地址
  36. export const appconfig = {
  37. // 底图是否采用在线地图,true在线,false离线
  38. 'isonline': true,
  39. // 是否根据后台配置服务
  40. 'isloadServer': true,
  41. // 天地图秘钥
  42. // 'tianMapKey': '700ea8c1e2dd873c349dc880169fd96d',
  43. 'tianMapKey': '9248d7f5b183142e4f1d5c908fba42e0',
  44. // 打印模板
  45. 'templateFolder': 'D:/xrty/template',
  46. // 地图初始视角中心
  47. // 临时使用
  48. // 当前地图坐标系, 用于转换
  49. 'currPRJ': '4547',
  50. 'currCenter': { "lon": "113.17326715436977", "lat": "29.37027846440258", "height": "50159.21860055598" },
  51. 'initLayers': 'pipemap&&smlayergroup', // 用于配置图层树 pipemap&&group
  52. // 地图初始视角级别
  53. 'initZoom': 15,
  54. // token
  55. 'usertoken': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJVc2VySUQiOiIiLCJVU0VSTkFNRSI6IiIsIlJFQUxOQU1FIjoiIiwiV0tJRCI6NDU0NCwiUkFOR0UiOiJYUlRZIiwiUkFOR0VGSUVMRCI6bnVsbCwiQ09ERSI6IlhSVFkiLCJDT05ORUNUU1RSIjoiREFUQUJBU0U9b3JjbDtORVROQU1FPTE5Mi4xNjguMi4yNDIvb3JjbDtTRVJWRVI9MTkyLjE2OC4yLjI0MjtVU0VSSUQ9dGZfeHJ0eV9nZW87UEFTU1dPUkQ9dGZfeHJ0eV9nZW87UE9SVD0xNTIxQDUxNTEvdGNwO1ZFUlNJT049c2RlLkRFRkFVTFQiLCJCb3JuVGltZSI6MCwiQXBwSUQiOm51bGx9.bMNoX6nsvNYukk47_UnT9IHGlNIWclbmiXTj3ak1i5KuF5LGexfwV7TwF80nP08GEPaNwScgk7lbJkRHcqtT8w',
  56. }
  57. export function setParams(geoInfo) {
  58. console.log('设置坐标')
  59. // const parmas = {
  60. // '宜昌': { proj: '4546', center: { "lon": "111.291353", "lat": "30.705687", "height": "30159.21860055598" } },
  61. // '岳阳': { proj: '4547', center: { "lon": "113.17326715436977", "lat": "29.37027846440258", "height": "30159.21860055598" } },
  62. // }
  63. let { wkid: proj, geo_info: center } = geoInfo
  64. appconfig.currCenter = center
  65. appconfig.currPRJ = proj
  66. //AppX.appConfig.initPosition = center
  67. }