提交 39a2fd4f 编写于 作者: Mosher's avatar Mosher

增加树视图右键权限校验

上级 6d0a51f3
<#assign itemName="${item.name}" /> <#assign apostrophe=" />
<dropdown-item name=${itemName} disabled={this.nodeModel[${itemName}].uiaction.disabled}> <dropdown-item name='${item.name}' disabled={this.nodeModel[${apostrophe}${item.name}${apostrophe}].uiaction.disabled}>
<#if item.isShowIcon()><#if item.getPSSysImage()??><#assign img=item.getPSSysImage()><i class='<#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if>'></i></#if></#if> <#if item.isShowIcon()><#if item.getPSSysImage()??><#assign img=item.getPSSysImage()><i class='<#if img.getCssClass()?? && (img.getCssClass()?length gt 0)>${img.getCssClass()}</#if>'></i></#if></#if>
<#if item.isShowCaption()>${item.getCaption()}</#if> <#if item.isShowCaption()>${item.getCaption()}</#if>
</dropdown-item> </dropdown-item>
\ No newline at end of file
...@@ -267,7 +267,7 @@ import UIService from '@/uiservice/ui-service'; ...@@ -267,7 +267,7 @@ import UIService from '@/uiservice/ui-service';
public nodeModel: any = { public nodeModel: any = {
<#if ctrl.getPSControls()??> <#if ctrl.getPSControls()??>
<#list ctrl.getPSControls() as childCtrl> <#list ctrl.getPSControls() as childCtrl>
<#if childCtrl.getControleType() == "CONTEXTMENU"> <#if childCtrl.getControlType() == "CONTEXTMENU">
<#if childCtrl.getPSDEToolbarItems()??> <#if childCtrl.getPSDEToolbarItems()??>
<#list childCtrl.getPSDEToolbarItems() as item> <#list childCtrl.getPSDEToolbarItems() as item>
${item.name}: { uiservice: "<#if childCtrl.getPSAppDataEntity()?? && childCtrl.getPSAppDataEntity().getCodeName()??>${srfclassname('${curAppEntity.getCodeName()}')}UIService</#if>"<#if item.getPSUIAction()??><#assign uiaction=item.getPSUIAction()>,uiaction: { type: '${uiaction.getUIActionType()}', tag: '${uiaction.getUIActionTag()}' ${item.name}: { uiservice: "<#if childCtrl.getPSAppDataEntity()?? && childCtrl.getPSAppDataEntity().getCodeName()??>${srfclassname('${curAppEntity.getCodeName()}')}UIService</#if>"<#if item.getPSUIAction()??><#assign uiaction=item.getPSUIAction()>,uiaction: { type: '${uiaction.getUIActionType()}', tag: '${uiaction.getUIActionTag()}'
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册