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.

144 lines
4.0 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
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
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. //登录相关,如果后端启用oauth2,则返回oauth2client,如果后端不启用oauth2,后端账户使用mdp-lcode服务,则返回lcode,如果使用mdp-sys提供服务,则返回sys
  9. getOauth2LoginContext:function(){
  10. return "oauth2client"
  11. },
  12. //模块订单 如果后端使用mdp-lcode提供订单服务,则返回lcode,如果使用mdp-sys服务,则返回sys
  13. getMoContext(){
  14. return 'lcode'
  15. },
  16. // 如果后端使用mdp-lcode提供账户管理服务,则返回lcode,如果使用mdp-sys提供服务,则返回sys
  17. getSysContext: function() {
  18. return 'lcode'
  19. },
  20. // 图片内容服务api路径,如果后端使用mdp-lcode提供图片文件服务,则返回lcode,如果使用mdp-arc提供图片文件服务,则返回arc
  21. getArcContext: function() {
  22. return 'arc'
  23. },
  24. // 表单服务api路径
  25. getFormContext: function() {
  26. return 'lcode'
  27. },
  28. // 低代码平台
  29. getLcodeContext: function() {
  30. return 'lcode'
  31. },
  32. //短信相关
  33. getSmsContext: function() {
  34. return 'sms'
  35. },
  36. // 工作流api路径
  37. getWorkflowContext: function() {
  38. return 'workflow'
  39. },
  40. // 协同办公系统api路径
  41. getOaContext: function() {
  42. return 'oa'
  43. },
  44. //项目管理
  45. getXmContext: function(){
  46. return 'xm'
  47. },
  48. //即时通讯
  49. getImContext:function(){
  50. return 'im'
  51. },
  52. //付款
  53. getPayContext:function() {
  54. return 'tpa'
  55. },
  56. getTpaContext: function(){
  57. return 'tpa'
  58. },
  59. // 商城管理后台api路径
  60. getMallmContext: function() {
  61. return 'mallm'
  62. },
  63. // 图片内容首页路径
  64. getArcIndexPath: function() {
  65. var uri=this.getApiBase()+"/"+this.getArcContext()+"/index.html"
  66. var uri=this.replaceUrl(uri)
  67. return this.getBaseDomainUrl()+uri;
  68. },
  69. // 图片展示或下载路径
  70. getArcFileUploadBasePath: function() {
  71. var uri=this.getApiBase()+"/"+this.getArcContext()
  72. var uri=this.replaceUrl(uri)
  73. return this.getBaseDomainUrl()+uri;
  74. },
  75. //excel上传路径
  76. getExcelUploadBasePath:function(){
  77. var uri=this.getApiBase()+"/"+this.getArcContext()
  78. var uri=this.replaceUrl(uri)
  79. return this.getBaseDomainUrl()+uri;
  80. },
  81. // 图片展示或下载路径
  82. getArcImagePath: function() {
  83. var uri=this.getApiBase()+"/"+this.getArcContext()
  84. var uri=this.replaceUrl(uri)
  85. return this.getBaseDomainUrl()+uri;
  86. },
  87. // 系统管理首页路径
  88. getSysIndexPath: function() {
  89. return '/'+this.getSysContext()+'/index.html'
  90. },
  91. // 商城管理后台首页路径
  92. getMallmIndexPath: function() {
  93. return '/mallm/mallm/index.html'
  94. },
  95. getWorkFlowEditorUrl: function() {
  96. return this.getWorkflowContext()+'/'+ process.env.VERSION + '/editor/editor/indexIframe.html'
  97. },
  98. getApiBase:function(){
  99. var base=`/${process.env.BASE_API}/${process.env.VERSION}/`
  100. return base.replace("//","/")
  101. },
  102. replaceUrl:function(url){
  103. url=url.replace("//","/")
  104. return url
  105. },
  106. //当前系统域名
  107. getBaseDomainUrl:function(){
  108. var curlDomain=window.location.protocol+"//"+window.location.host; // 返回https://mp.csdn.net
  109. return curlDomain
  110. },
  111. getFixedDomain:function(){
  112. return "https://www.maimengcloud.com"
  113. },
  114. //系统名称
  115. getSysName: function() {
  116. return sysName
  117. },
  118. getWxpubConfig:function(){
  119. var config={
  120. appid:'wx2671d5db8346b6fc',
  121. appname:'唛盟项目管理平台',
  122. appType:'wxopen',
  123. scope:'snsapi_login'
  124. }
  125. return config;
  126. },
  127. /**
  128. * 本系统支持的动态组件编号列表
  129. * @returns
  130. */
  131. getSupportComponents:function(){
  132. return ['myFocus']
  133. },
  134. getOpenSourceLink:function(){
  135. return "https://gitee.com/qingqinkj218/collections/375320"
  136. }
  137. }