提交 2e26b486 编写于 作者: Mosher's avatar Mosher

更新门户部件触发界面行为逻辑 --- fix2

上级 f1cdfd3c
...@@ -225,11 +225,11 @@ import { Environment } from '@/environments/environment'; ...@@ -225,11 +225,11 @@ import { Environment } from '@/environments/environment';
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public handleItemClick($event:any){ public handleItemClick($event:any){
let data = $event; let data: any = $event.params && Object.key($event.params).length > 0 ? $event.params : null;
<#if ctrl.getPSAppViewLogics?? && ctrl.getPSAppViewLogics()??> <#if ctrl.getPSAppViewLogics?? && ctrl.getPSAppViewLogics()??>
<#list ctrl.getPSAppViewLogics() as appViewLogic> <#list ctrl.getPSAppViewLogics() as appViewLogic>
if(Object.is($event,'${appViewLogic.name}')){ if(Object.is($event.tag,'${appViewLogic.name}')){
this.${appViewLogic.name}(data.params, data.tag, data.event); this.${appViewLogic.name}(data, $event.tag, $event.event);
} }
</#list> </#list>
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册