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.

121 lines
3.1 KiB

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 "oauth2client"
  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 'form'
  23. },
  24. // 工作流api路径
  25. getWorkflowContext: function() {
  26. return 'workflow'
  27. },
  28. // 协同办公系统api路径
  29. getOaContext: function() {
  30. return 'oa'
  31. },
  32. //项目管理
  33. getXmContext: function(){
  34. return 'xm'
  35. },
  36. //即时通讯
  37. getImContext:function(){
  38. return 'im'
  39. },
  40. //付款
  41. getPayContext:function() {
  42. return 'tpa'
  43. },
  44. //模块订单
  45. getMoContext(){
  46. return 'sys'
  47. },
  48. // 系统管理api路径
  49. getSysContext: function() {
  50. return 'sys'
  51. },
  52. getTpaContext: function(){
  53. return 'tpa'
  54. },
  55. // 商城管理后台api路径
  56. getMallmContext: function() {
  57. return 'mallm'
  58. },
  59. // 图片内容首页路径
  60. getArcIndexPath: function() {
  61. return '/arc/arc/index.html'
  62. },
  63. // 图片展示或下载路径
  64. getArcFileUploadBasePath: function() {
  65. return window.location.protocol + '//' + window.location.host + '/api/' + process.env.VERSION + '/arc/arc'
  66. // return process.env.BASE_API+'/arc/arc'
  67. },
  68. //excel上传路径
  69. getExcelUploadBasePath:function(){
  70. return window.location.protocol + '//' + window.location.host + '/api/' + process.env.VERSION + '/oa/oa'
  71. },
  72. // 图片展示或下载路径
  73. getArcImagePath: function() {
  74. return window.location.protocol + '//' + window.location.host + '/api/' + process.env.VERSION + '/arc/arc'
  75. // return process.env.BASE_API+'/arc/arc'
  76. },
  77. // 系统管理首页路径
  78. getSysIndexPath: function() {
  79. return '/sys/sys/index.html'
  80. },
  81. // 商城管理后台首页路径
  82. getMallmIndexPath: function() {
  83. return '/mallm/mallm/index.html'
  84. },
  85. getWorkFlowEditorUrl: function() {
  86. return '/workflow/' + process.env.VERSION + '/editor/editor/indexIframe.html'
  87. },
  88. //当前系统域名
  89. getBaseDomainUrl:function(){
  90. var curlDomain=window.location.protocol+"//"+window.location.host; // 返回https://mp.csdn.net
  91. return curlDomain
  92. },
  93. getFixedDomain:function(){
  94. return "https://www.maimengcloud.com"
  95. },
  96. //系统名称
  97. getSysName: function() {
  98. return sysName
  99. },
  100. getWxpubConfig:function(){
  101. var config={
  102. appid:'wx2671d5db8346b6fc',
  103. appname:'唛盟项目管理平台',
  104. appType:'wxopen',
  105. scope:'snsapi_login'
  106. }
  107. return config;
  108. },
  109. /**
  110. * 本系统支持的动态组件编号列表
  111. * @returns
  112. */
  113. getSupportComponents:function(){
  114. return ['myFocus']
  115. }
  116. }