提交 aa0a17fe 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新

上级 8e21c0b2
...@@ -419,23 +419,20 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code} ...@@ -419,23 +419,20 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
public handleButtonClick(name: string, $event?: any) { public handleButtonClick(name: string, $event?: any) {
let datas: any[] = [this.layoutData];
let xData: any = null;
let paramJO: any = {};
let contextJO: any = {};
const _this: any = this;
<#list view.getPSViewLayoutPanel().getAllPSPanelItems() as panelItem> <#list view.getPSViewLayoutPanel().getAllPSPanelItems() as panelItem>
<#if panelItem.getItemType() == 'BUTTON' && panelItem.getPSUIAction?? && panelItem.getPSUIAction()??> <#if panelItem.getItemType() == 'BUTTON' && panelItem.getPSUIAction?? && panelItem.getPSUIAction()??>
if (Object.is(name, '${panelItem.name}')) { if (Object.is(name, '${panelItem.name}')) {
this.layoutpanel_${panelItem.name}_click(null, '', $event); _this.${panelItem.getPSUIAction().getFullCodeName()}(datas, contextJO, paramJO, $event, xData, this, undefined);
} }
</#if> </#if>
</#list> </#list>
} }
<#if view.getPSViewLayoutPanel().getPSAppViewLogics()??>
<#list view.getPSViewLayoutPanel().getPSAppViewLogics() as logic>
<#if logic.getLogicTrigger() == "CUSTOM" || logic.getLogicTrigger() == "CTRLEVENT">
${P.getLogicCode(logic, "LOGIC.vue").code}
</#if>
</#list>
</#if>
<#if view.getPSViewLayoutPanel().getPSAppViewUIActions()??> <#if view.getPSViewLayoutPanel().getPSAppViewUIActions()??>
<#list view.getPSViewLayoutPanel().getPSAppViewUIActions() as viewUIAction> <#list view.getPSViewLayoutPanel().getPSAppViewUIActions() as viewUIAction>
<#if viewUIAction.getPSUIAction?? && viewUIAction.getPSUIAction()??> <#if viewUIAction.getPSUIAction?? && viewUIAction.getPSUIAction()??>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册