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

实体工作流动态操作视图逻辑补充 --- fix4

上级 21264471
......@@ -25,7 +25,7 @@ this.viewState.next({ tag: "form", action: "load", data: this.viewparams });
public allForm:any = {
<#if view.getAllPSControls?? && view.getAllPSControls()??>
<#list view.getAllPSControls() as singleControl>
"${singleControl.getCodeName()}":{name:"view_${singleControl.getName()}",loadAction:"<#if singleControl.getGetPSControlAction()?? && singleControl.getGetPSControlAction().getPSAppDEMethod()??>${singleControl.getGetPSControlAction().getPSAppDEMethod().getCodeName()}</#if>"}<#if singleControl_has_next>,</#if>
"${singleControl.getName()}":{name:"view_${singleControl.getName()}",loadAction:"<#if singleControl.getGetPSControlAction()?? && singleControl.getGetPSControlAction().getPSAppDEMethod()??>${singleControl.getGetPSControlAction().getPSAppDEMethod().getCodeName()}</#if>"}<#if singleControl_has_next>,</#if>
</#list>
</#if>
};
......@@ -41,7 +41,7 @@ this.viewState.next({ tag: "form", action: "load", data: this.viewparams });
}
if(this.allForm && Object.keys(this.allForm).length >0){
Object.keys(this.allForm).forEach((name:string) =>{
if(Object.is(name,inputForm)){
if(Object.is(name,<#noparse>`wfform_${inputForm.toLowerCase()}`</#noparse>)){
this.activeForm = this.allForm[name];
}
})
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册