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

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

上级 faecb1cc
<#assign watch_viewparam_block>
if(this.viewparams && this.viewparams.actionForm){
this.formName = `view_wfform_${this.viewparams.actionForm.toLowerCase()}`;
}
</#assign>
<#assign watch_viewparam_block>
if(this.viewparams && this.viewparams.actionForm){
this.formName = `view_wfform_${this.viewparams.actionForm.toLowerCase()}`;
}
</#assign>
<#assign mounted_block>
this.viewState.next({ tag: "form", action: "load", data: this.viewparams });
</#assign>
<#assign self_content>
/**
* 显示表单名称
*
......@@ -6,13 +20,29 @@
*/
public formName:string = "";
public allForm:any = {
<#if view.getAllPSControls?? && view.getAllPSControls()??>
<#list view.getAllPSControls() as singleControl>
"${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>
};
/**
* 确认
*
* @memberof ${srfclassname('${view.codeName}')}Base
*/
public onClickOk(){
console.log("ok");
let xData:any = this.$refs.form;
if(xData){
let preFormData:any = xData.getData();
let nextFormData:any = xData.transformData(preFormData);
Object.assign(preFormData,nextFormData);
this.$store.commit('viewaction/setViewDataChange', { viewtag: this.viewtag, viewdatachange: false });
this.$emit('viewdataschange', [preFormData]);
this.$emit('close', null);
}
}
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册