Commit f7f79047 by qiaoyanqi

链接组件加viewName

parent c7c5b787
...@@ -30,12 +30,17 @@ export default { ...@@ -30,12 +30,17 @@ export default {
if(this.define.config.defineId && this.define.config.defineId.split('.').length>1){ if(this.define.config.defineId && this.define.config.defineId.split('.').length>1){
configId = this.define.config.defineId.split('.')[1]; configId = this.define.config.defineId.split('.')[1];
} }
if(this.define.config.defineName && this.define.config.defineName.split('.').length>1){ let defineName = '';
if(this.define.config.viewName){//跳转界面
defineName = this.define.config.viewName;
}else if(this.define.config.defineName && this.define.config.defineName.split('.').length>1){
configDefineName = this.define.config.defineName.split('.')[1]; configDefineName = this.define.config.defineName.split('.')[1];
defineName = this.context.dataObject.getValue(configDefineName)+ '_E';
}else{
defineName = this.context.dataObject.getValue(configDefineName)+ '_E';
} }
let defineName = this.context.dataObject.getValue(configDefineName);
let id = this.context.dataObject.getValue(configId); let id = this.context.dataObject.getValue(configId);
let a = "/showBillForm/" + defineName + '_E/' + id; let a = "/showBillForm/" + defineName + '/' + id;
let routeData = GMS.routerManager.getRouter().resolve({ let routeData = GMS.routerManager.getRouter().resolve({
path: a, path: a,
query:{ query:{
......
...@@ -110,6 +110,12 @@ export default { ...@@ -110,6 +110,12 @@ export default {
"ref": "BillClassVO.attributes", "ref": "BillClassVO.attributes",
"disableReload": false, "disableReload": false,
"title": "单据定义" "title": "单据定义"
},{
"isRequired": true,
"ref": "bill",
"type": "metaData",
"title": "跳转页面",
"key": "viewName"
}] }]
}, },
"value": "linkShowDetail", "value": "linkShowDetail",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment