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

update:更新

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