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

update:更新

上级 39c07c4f
......@@ -3,8 +3,8 @@
*
* @memberof ${srfclassname('${view.name}')}
*/
public ${item.name}($event: any, $event1?: any, $event2?: any) {
const { data, context, viewparams, xData, event } = $event;
public ${item.name}(params: any = {}, tag?: any, $event?: any) {
const { data, context, viewparams, xData, event } = params;
<#if item.getPSAppDEUILogic?? && item.getPSAppDEUILogic()?? && item.getPSAppDEUILogic().getPSAppDataEntity()??>
window.uiServiceRegister.getService('${item.getPSAppDEUILogic().getPSAppDataEntity().codeName?lower_case}').then((uiService: any) => {
if (uiService) {
......
......@@ -542,23 +542,15 @@
<#list ctrl.getPSControlLogics(eventName) as ctrlLogic>
<#if ctrlLogic.getLogicType() == "APPVIEWENGINE" && ctrlLogic.getPSAppViewEngine()??>
this.${ctrlLogic.getPSAppViewEngine().getName()}.onCtrlEvent('${ctrl.name}', '${eventName?lower_case}', $event);
<#elseif ctrlLogic.getLogicType() == "APPVIEWLOGIC" && ctrlLogic.getPSAppViewLogic()??>
this.${ctrlLogic.name}($event, '${eventName?lower_case}', $event2);
<#else>
<#assign isCtrlEvent = false>
<#if view.getPSAppViewLogics?? && view.getPSAppViewLogics()??>
<#list view.getPSAppViewLogics() as viewLogic>
<#if viewLogic.getLogicTrigger() == "CTRLEVENT" && viewLogic.name == ctrlLogic.name>
<#assign isCtrlEvent = true>
</#if>
</#list>
</#if>
<#if isCtrlEvent>
<#if ctrlLogic.getEventArg()?? && ctrlLogic.getEventArg()?length gt 0>
<#if ctrlLogic.getEventArg()?? && ctrlLogic.getEventArg()?length gt 0>
if (Object.is($event.tag, '${ctrlLogic.getEventArg()}')) {
this.${ctrlLogic.name}(null, '', $event2);
}
<#else>
<#else>
this.${ctrlLogic.name}($event, '', $event2);
</#if>
</#if>
</#if>
</#list>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册