提交 31461e61 编写于 作者: KK's avatar KK

动态编辑--fix3

上级 a464e732
...@@ -17,6 +17,13 @@ import { toastController, alertController } from '@ionic/core'; ...@@ -17,6 +17,13 @@ import { toastController, alertController } from '@ionic/core';
*/ */
public linkModel: Array<any> = []; public linkModel: Array<any> = [];
/**
* 激活表单
*
* @memberof ${srfclassname('${view.codeName}')}Base
*/
public activeForm:any = {};
/** /**
* 获取工具栏按钮 * 获取工具栏按钮
* *
...@@ -125,7 +132,27 @@ import { toastController, alertController } from '@ionic/core'; ...@@ -125,7 +132,27 @@ import { toastController, alertController } from '@ionic/core';
</#list> </#list>
</#if> </#if>
}; };
/**
* 计算激活表单
*
* @memberof ${srfclassname('${view.codeName}')}Base
*/
public computeActivedForm(inputForm:any){
if(!inputForm){
this.activeForm = this.allForm && Object.values(this.allForm)[0];
return;
}
if(this.allForm && Object.keys(this.allForm).length >0){
Object.keys(this.allForm).forEach((name:string) =>{
<#noparse>if(Object.is(name,`wfform_${inputForm.toLowerCase()}`)){</#noparse>
this.activeForm = this.allForm[name];
}
})
}
}
</#assign> </#assign>
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW-BASE.vue.ftl ../@MACRO/VIEW-BASE.vue.ftl
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册