Browse Source

带代码平台

master
陈裕财 2 years ago
parent
commit
4a979ea368
  1. 2
      config/sit.env.js
  2. 18
      src/api/mdp_pub/mdp_config.js

2
config/sit.env.js

@ -2,6 +2,6 @@ module.exports = {
NODE_ENV: '"production"', NODE_ENV: '"production"',
ENV_CONFIG: '"sit"',//环境版本号 如npm run build:${ENV_CONFIG},建议与spring.profiles.active=${ENV_CONFIG}一一对应 ENV_CONFIG: '"sit"',//环境版本号 如npm run build:${ENV_CONFIG},建议与spring.profiles.active=${ENV_CONFIG}一一对应
VERSION: '"m1"',//产品版本号,nginx中通过此版本号导航到不同的静态资源目录,请求路径中用法如下:静态页面url=${DOMAIN}/${CONTEXT}/${VERSION}/#/{router.path}?${queryString} VERSION: '"m1"',//产品版本号,nginx中通过此版本号导航到不同的静态资源目录,请求路径中用法如下:静态页面url=${DOMAIN}/${CONTEXT}/${VERSION}/#/{router.path}?${queryString}
CONTEXT:'"form"',//对应spring中的server.context-path
CONTEXT:'"lcode"',//对应spring中的server.context-path
BASE_API: '"api"'//api访问的统一入口,最后形成的apiUrl=${BASE_API}/${VERSION}/${spring.application.name}/${CONTEXT}/${ctrlUrl} BASE_API: '"api"'//api访问的统一入口,最后形成的apiUrl=${BASE_API}/${VERSION}/${spring.application.name}/${CONTEXT}/${ctrlUrl}
} }

18
src/api/mdp_pub/mdp_config.js

@ -9,7 +9,7 @@ var sysName="唛盟智能开发";//系统名称,用于展示
export default { export default {
//登录相关 //登录相关
getOauth2LoginContext:function(){ getOauth2LoginContext:function(){
return "lcode"
return "oauth2client"
}, },
//短信相关 //短信相关
getSmsContext: function() { getSmsContext: function() {
@ -17,7 +17,7 @@ export default {
}, },
// 图片内容服务api路径 // 图片内容服务api路径
getArcContext: function() { getArcContext: function() {
return 'lcode'
return 'arc'
}, },
// 图片内容服务api路径 // 图片内容服务api路径
@ -39,7 +39,7 @@ export default {
//项目管理 //项目管理
getXmContext: function(){ getXmContext: function(){
return 'xm' return 'xm'
},
},
//即时通讯 //即时通讯
getImContext:function(){ getImContext:function(){
return 'im' return 'im'
@ -64,11 +64,11 @@ export default {
return 'mallm' return 'mallm'
}, },
// 图片内容首页路径 // 图片内容首页路径
getArcIndexPath: function() {
getArcIndexPath: function() {
var uri=this.getApiBase()+"/"+this.getArcContext()+"/index.html" var uri=this.getApiBase()+"/"+this.getArcContext()+"/index.html"
var uri=this.replaceUrl(uri) var uri=this.replaceUrl(uri)
return this.getBaseDomainUrl()+uri; return this.getBaseDomainUrl()+uri;
},
},
// 图片展示或下载路径 // 图片展示或下载路径
getArcFileUploadBasePath: function() { getArcFileUploadBasePath: function() {
var uri=this.getApiBase()+"/"+this.getArcContext() var uri=this.getApiBase()+"/"+this.getArcContext()
@ -76,7 +76,7 @@ export default {
return this.getBaseDomainUrl()+uri; return this.getBaseDomainUrl()+uri;
}, },
//excel上传路径 //excel上传路径
getExcelUploadBasePath:function(){
getExcelUploadBasePath:function(){
var uri=this.getApiBase()+"/"+this.getArcContext() var uri=this.getApiBase()+"/"+this.getArcContext()
var uri=this.replaceUrl(uri) var uri=this.replaceUrl(uri)
return this.getBaseDomainUrl()+uri; return this.getBaseDomainUrl()+uri;
@ -85,7 +85,7 @@ export default {
getArcImagePath: function() { getArcImagePath: function() {
var uri=this.getApiBase()+"/"+this.getArcContext() var uri=this.getApiBase()+"/"+this.getArcContext()
var uri=this.replaceUrl(uri) var uri=this.replaceUrl(uri)
return this.getBaseDomainUrl()+uri;
return this.getBaseDomainUrl()+uri;
}, },
// 系统管理首页路径 // 系统管理首页路径
getSysIndexPath: function() { getSysIndexPath: function() {
@ -96,7 +96,7 @@ export default {
return '/mallm/mallm/index.html' return '/mallm/mallm/index.html'
}, },
getWorkFlowEditorUrl: function() { getWorkFlowEditorUrl: function() {
return this.getWorkflowContext()+'/'+ process.env.VERSION + '/editor/editor/indexIframe.html'
return this.getWorkflowContext()+'/'+ process.env.VERSION + '/editor/editor/indexIframe.html'
}, },
getApiBase:function(){ getApiBase:function(){
@ -130,7 +130,7 @@ export default {
}, },
/** /**
* 本系统支持的动态组件编号列表 * 本系统支持的动态组件编号列表
* @returns
* @returns
*/ */
getSupportComponents:function(){ getSupportComponents:function(){
return ['myFocus'] return ['myFocus']

Loading…
Cancel
Save