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

新增看板部件分组头执行界面行为时附加分组参数值srfgroup

上级 49e71749
......@@ -36,7 +36,7 @@ ${ctrl.render.code}
<#if ctrl.getGroupPSUIActionGroup().getPSUIActions()??>
<#list ctrl.getGroupPSUIActionGroup().getPSUIActions() as action>
<div class="group-action-item">
<i-button long @click="uiAction('${action.getCodeName()}', $event)">
<i-button long @click="uiAction('${action.getCodeName()}', $event, group)">
<#if action.getPSSysImage()??>
<#if action.getPSSysImage().getImagePath()?length gt 0>
<img src="${action.getPSSysImage().getImagePath()}"/>
......@@ -787,12 +787,16 @@ draggable,
/**
* 界面行为
*
* @param {*} tag
* @param {*} $event
* @param {*} tag 界面行为标识
* @param {*} $event
* @param {*} group 看板分组
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public uiAction(tag: any, $event: any) {
public uiAction(tag: any, $event: any, group: any) {
let row = this.selections.length > 0 ? this.selections[0] : {};
if(!row.hasOwnProperty('srfgroup')){
Object.assign(row,{srfgroup: group.value});
}
<#if ctrl.getPSAppViewLogics()??>
<#list ctrl.getPSAppViewLogics() as logic>
<#if logic.getPSAppViewUIAction().getPSUIAction()??>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册