You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
3.1 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. /**
  2. * BASE_API:对应api网关的外网访问地址在config/dev.env.js config/prod.env.js 中配置
  3. * context:应用的上下文路径即spring boot中的server.context-path,如果server.context-path为空则取applicationName
  4. * api的调用一般是 /${BASE_API}/${context}/${具体的后端服务路径}
  5. */
  6. var sysName="唛盟智能开发";//系统名称,用于展示
  7. export default {
  8. //登录相关
  9. getOauth2LoginContext:function(){
  10. return "lcode"
  11. },
  12. //短信相关
  13. getSmsContext: function() {
  14. return 'sms'
  15. },
  16. // 图片内容服务api路径
  17. getArcContext: function() {
  18. return 'arc'
  19. },
  20. // 图片内容服务api路径
  21. getFormContext: function() {
  22. return 'lcode'
  23. },
  24. // 低代码平台
  25. getLcodeContext: function() {
  26. return 'lcode'
  27. },
  28. // 工作流api路径
  29. getWorkflowContext: function() {
  30. return 'workflow'
  31. },
  32. // 协同办公系统api路径
  33. getOaContext: function() {
  34. return 'oa'
  35. },
  36. //项目管理
  37. getXmContext: function(){
  38. return 'xm'
  39. },
  40. //即时通讯
  41. getImContext:function(){
  42. return 'im'
  43. },
  44. //付款
  45. getPayContext:function() {
  46. return 'tpa'
  47. },
  48. //模块订单
  49. getMoContext(){
  50. return 'lcode'
  51. },
  52. // 系统管理api路径
  53. getSysContext: function() {
  54. return 'lcode'
  55. },
  56. getTpaContext: function(){
  57. return 'tpa'
  58. },
  59. // 商城管理后台api路径
  60. getMallmContext: function() {
  61. return 'mallm'
  62. },
  63. // 图片内容首页路径
  64. getArcIndexPath: function() {
  65. return '/arc/arc/index.html'
  66. },
  67. // 图片展示或下载路径
  68. getArcFileUploadBasePath: function() {
  69. return window.location.protocol + '//' + window.location.host + '/api/' + process.env.VERSION + '/arc/arc'
  70. // return process.env.BASE_API+'/arc/arc'
  71. },
  72. //excel上传路径
  73. getExcelUploadBasePath:function(){
  74. return window.location.protocol + '//' + window.location.host + '/api/' + process.env.VERSION + '/oa/oa'
  75. },
  76. // 图片展示或下载路径
  77. getArcImagePath: function() {
  78. return window.location.protocol + '//' + window.location.host + '/api/' + process.env.VERSION + '/arc/arc'
  79. // return process.env.BASE_API+'/arc/arc'
  80. },
  81. // 系统管理首页路径
  82. getSysIndexPath: function() {
  83. return '/lcode/index.html'
  84. },
  85. // 商城管理后台首页路径
  86. getMallmIndexPath: function() {
  87. return '/mallm/mallm/index.html'
  88. },
  89. getWorkFlowEditorUrl: function() {
  90. return '/workflow/' + process.env.VERSION + '/editor/editor/indexIframe.html'
  91. },
  92. //当前系统域名
  93. getBaseDomainUrl:function(){
  94. var curlDomain=window.location.protocol+"//"+window.location.host; // 返回https://mp.csdn.net
  95. return curlDomain
  96. },
  97. getFixedDomain:function(){
  98. return "https://www.maimengcloud.com"
  99. },
  100. //系统名称
  101. getSysName: function() {
  102. return sysName
  103. },
  104. getWxpubConfig:function(){
  105. var config={
  106. appid:'wx2671d5db8346b6fc',
  107. appname:'唛盟项目管理平台',
  108. appType:'wxopen',
  109. scope:'snsapi_login'
  110. }
  111. return config;
  112. },
  113. /**
  114. * 本系统支持的动态组件编号列表
  115. * @returns
  116. */
  117. getSupportComponents:function(){
  118. return ['myFocus']
  119. }
  120. }