提交 aca92995 编写于 作者: tony001's avatar tony001

update:更新

上级 eea10c5a
......@@ -149,7 +149,7 @@ export default class ${srfclassname('${item.getCodeName()}')}UIServiceBase exten
public initViewMap(){
<#if item.getAllPSAppViews()??>
<#list item.getAllPSAppViews() as singleView>
this.allViewMap.set('<#if singleView.getFuncViewMode()??>${singleView.getFuncViewMode()}</#if>:<#if singleView.getFuncViewParam()??>${singleView.getFuncViewParam()}</#if>',{viewname:'${singleView.getPSDEViewCodeName()?lower_case}',srfappde:'${srfpluralize(item.codeName)?lower_case}',component:'${srffilepath2(singleView.getCodeName())}'});
this.allViewMap.set('<#if singleView.getFuncViewMode()??>${singleView.getFuncViewMode()}</#if>:<#if singleView.getFuncViewParam()??>${singleView.getFuncViewParam()}</#if>',{viewname:'${singleView.getPSDEViewCodeName()?lower_case}',viewType:'${singleView.getViewType()}',srfappde:'${srfpluralize(item.codeName)?lower_case}',component:'${srffilepath2(singleView.getCodeName())}'});
</#list>
</#if>
}
......@@ -197,9 +197,10 @@ export default class ${srfclassname('${item.getCodeName()}')}UIServiceBase exten
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @param args {context,viewParams} 用于计算流程
* @memberof ${srfclassname('${item.getCodeName()}')}UIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean,args?:any){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({${item.getCodeName()?lower_case}:srfkey});
......@@ -211,18 +212,12 @@ export default class ${srfclassname('${item.getCodeName()}')}UIServiceBase exten
let bWFMode:any = false;
// 计算数据模式
if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData);
if (bDataInWF) {
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData);
const result = this.allViewMap.get("WFEDITVIEW:");
if(!result){
}
}
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam);
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册