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

导航工具栏 权限控制

上级 0c189564
......@@ -526,6 +526,26 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
this.$emit('load',args);
}
/**
* 计算导航工具栏权限状态
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public calcNavigationToolbarState(){
// 界面行为
<#if ctrl.getPSAppViewUIAction().getPSUIAction()??>
<#assign uiaction = ctrl.getPSAppViewUIAction().getPSUIAction()/>
<#-- 属于应用实体的界面行为走UI服务start -->
<#if uiaction.getPSAppDataEntity?? && uiaction.getPSAppDataEntity()??>
<#assign curAppEntity = uiaction.getPSAppDataEntity() />
<#if uiaction.getPSAppWFVer?? && uiaction.getPSAppWFVer()??>
const curUIService:${srfclassname('${uiaction.getPSAppWFVer().getCodeName()}')}WFUIService = new ${srfclassname('${uiaction.getPSAppWFVer().getCodeName()}')}WFUIService();
<#else>
const curUIService:${srfclassname('${curAppEntity.getCodeName()}')}UIService = new ${srfclassname('${curAppEntity.getCodeName()}')}UIService();
</#if>
ViewTool.calcActionItemAuthState({},this.${ModelsName},curUIService);
}
/**
* 执行搜索
*
......
......@@ -535,6 +535,26 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
this.$emit('load',args);
}
/**
* 计算导航工具栏权限状态
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public calcNavigationToolbarState(){
// 界面行为
<#if ctrl.getPSAppViewUIAction().getPSUIAction()??>
<#assign uiaction = ctrl.getPSAppViewUIAction().getPSUIAction()/>
<#-- 属于应用实体的界面行为走UI服务start -->
<#if uiaction.getPSAppDataEntity?? && uiaction.getPSAppDataEntity()??>
<#assign curAppEntity = uiaction.getPSAppDataEntity() />
<#if uiaction.getPSAppWFVer?? && uiaction.getPSAppWFVer()??>
const curUIService:${srfclassname('${uiaction.getPSAppWFVer().getCodeName()}')}WFUIService = new ${srfclassname('${uiaction.getPSAppWFVer().getCodeName()}')}WFUIService();
<#else>
const curUIService:${srfclassname('${curAppEntity.getCodeName()}')}UIService = new ${srfclassname('${curAppEntity.getCodeName()}')}UIService();
</#if>
ViewTool.calcActionItemAuthState({},this.${ModelsName},curUIService);
}
/**
* 执行搜索
*
......
<#assign deuiaction=item.getPSUIAction()>
<#if deuiaction.getUIActionTag() == 'ExportExcel'>
${item.getName()?lower_case}: { name: '${item.getName()?lower_case}', <#if item.isShowCaption()>caption: '${item.caption}',</#if> disabled: false, type: '${item.getItemType()}', visabled: true,noprivdisplaymode:<#if item.getNoPrivDisplayMode()??>${item.getNoPrivDisplayMode()}</#if>,dataaccaction: '<#if deuiaction.getDataAccessAction()??>${deuiaction.getDataAccessAction()}</#if>', uiaction: { tag: '${deuiaction.getUIActionTag()}', target: '${deuiaction.getActionTarget()}' }<#if view.hasPSControl("GRID")><#assign gridhandler = view.getPSControl("GRID").getPSAjaxControlHandler()>, MaxRowCount: <#if gridhandler?? && gridhandler.getPSDEDataExport()??>${gridhandler.getPSDEDataExport().getMaxRowCount()?c}<#elseif sys.getDEDataExportMaxRowCount() gt 0>${sys.getDEDataExportMaxRowCount()?c}<#else>10000</#if></#if> },
${item.getName()?lower_case}: { name: '${item.getName()?lower_case}', actiontarget: 'NONE', <#if item.isShowCaption()>caption: '${item.caption}',</#if> disabled: false, type: '${item.getItemType()}', visabled: true,noprivdisplaymode:<#if item.getNoPrivDisplayMode()??>${item.getNoPrivDisplayMode()}</#if>,dataaccaction: '<#if deuiaction.getDataAccessAction()??>${deuiaction.getDataAccessAction()}</#if>', uiaction: { tag: '${deuiaction.getUIActionTag()}', target: '${deuiaction.getActionTarget()}' }<#if view.hasPSControl("GRID")><#assign gridhandler = view.getPSControl("GRID").getPSAjaxControlHandler()>, MaxRowCount: <#if gridhandler?? && gridhandler.getPSDEDataExport()??>${gridhandler.getPSDEDataExport().getMaxRowCount()?c}<#elseif sys.getDEDataExportMaxRowCount() gt 0>${sys.getDEDataExportMaxRowCount()?c}<#else>10000</#if></#if> },
<#elseif deuiaction.getUIActionTag() == 'ToggleRowEdit'>
${item.getName()?lower_case}: { name: '${item.getName()?lower_case}', <#if item.isShowCaption()>caption: '${item.caption}', </#if>disabled: false, type: '${item.getItemType()}', visabled: true,noprivdisplaymode:<#if item.getNoPrivDisplayMode()??>${item.getNoPrivDisplayMode()}</#if>,dataaccaction: '<#if deuiaction.getDataAccessAction()??>${deuiaction.getDataAccessAction()}</#if>', uiaction: { tag: '${deuiaction.getUIActionTag()}', target: '${deuiaction.getActionTarget()}' } },
${item.getName()?lower_case}: { name: '${item.getName()?lower_case}', actiontarget: 'NONE', <#if item.isShowCaption()>caption: '${item.caption}', </#if>disabled: false, type: '${item.getItemType()}', visabled: true,noprivdisplaymode:<#if item.getNoPrivDisplayMode()??>${item.getNoPrivDisplayMode()}</#if>,dataaccaction: '<#if deuiaction.getDataAccessAction()??>${deuiaction.getDataAccessAction()}</#if>', uiaction: { tag: '${deuiaction.getUIActionTag()}', target: '${deuiaction.getActionTarget()}' } },
<#else>
${item.getName()?lower_case}: { name: '${item.getName()?lower_case}', <#if item.isShowCaption()>caption: '${item.caption}', </#if>disabled: false, type: '${item.getItemType()}', visabled: true,noprivdisplaymode:<#if item.getNoPrivDisplayMode()??>${item.getNoPrivDisplayMode()}</#if>,dataaccaction: '<#if deuiaction.getDataAccessAction()??>${deuiaction.getDataAccessAction()}</#if>', uiaction: { tag: '${deuiaction.getUIActionTag()}', target: '${deuiaction.getActionTarget()}' } },
${item.getName()?lower_case}: { name: '${item.getName()?lower_case}', actiontarget: 'NONE', <#if item.isShowCaption()>caption: '${item.caption}', </#if>disabled: false, type: '${item.getItemType()}', visabled: true,noprivdisplaymode:<#if item.getNoPrivDisplayMode()??>${item.getNoPrivDisplayMode()}</#if>,dataaccaction: '<#if deuiaction.getDataAccessAction()??>${deuiaction.getDataAccessAction()}</#if>', uiaction: { tag: '${deuiaction.getUIActionTag()}', target: '${deuiaction.getActionTarget()}' } },
</#if>
\ No newline at end of file
......@@ -415,6 +415,26 @@
this.$emit('load',args);
}
/**
* 计算导航工具栏权限状态
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public calcNavigationToolbarState(){
// 界面行为
<#if ctrl.getPSAppViewUIAction().getPSUIAction()??>
<#assign uiaction = ctrl.getPSAppViewUIAction().getPSUIAction()/>
<#-- 属于应用实体的界面行为走UI服务start -->
<#if uiaction.getPSAppDataEntity?? && uiaction.getPSAppDataEntity()??>
<#assign curAppEntity = uiaction.getPSAppDataEntity() />
<#if uiaction.getPSAppWFVer?? && uiaction.getPSAppWFVer()??>
const curUIService:${srfclassname('${uiaction.getPSAppWFVer().getCodeName()}')}WFUIService = new ${srfclassname('${uiaction.getPSAppWFVer().getCodeName()}')}WFUIService();
<#else>
const curUIService:${srfclassname('${curAppEntity.getCodeName()}')}UIService = new ${srfclassname('${curAppEntity.getCodeName()}')}UIService();
</#if>
ViewTool.calcActionItemAuthState({},this.${ModelsName},curUIService);
}
/**
* 执行搜索
*
......
......@@ -413,6 +413,26 @@
public onViewLoad($event: any): void {
this.$emit('load', $event);
}
/**
* 计算导航工具栏权限状态
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public calcNavigationToolbarState(){
// 界面行为
<#if ctrl.getPSAppViewUIAction().getPSUIAction()??>
<#assign uiaction = ctrl.getPSAppViewUIAction().getPSUIAction()/>
<#-- 属于应用实体的界面行为走UI服务start -->
<#if uiaction.getPSAppDataEntity?? && uiaction.getPSAppDataEntity()??>
<#assign curAppEntity = uiaction.getPSAppDataEntity() />
<#if uiaction.getPSAppWFVer?? && uiaction.getPSAppWFVer()??>
const curUIService:${srfclassname('${uiaction.getPSAppWFVer().getCodeName()}')}WFUIService = new ${srfclassname('${uiaction.getPSAppWFVer().getCodeName()}')}WFUIService();
<#else>
const curUIService:${srfclassname('${curAppEntity.getCodeName()}')}UIService = new ${srfclassname('${curAppEntity.getCodeName()}')}UIService();
</#if>
ViewTool.calcActionItemAuthState({},this.${ModelsName},curUIService);
}
<#if ctrl.getPSControls()??>
<#assign controls = ctrl.getPSControls()/>
......
......@@ -531,6 +531,26 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
public ${ctrl.name}_load(args:any, tag?: string, $event2?: any){
this.$emit('load',args);
}
/**
* 计算导航工具栏权限状态
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public calcNavigationToolbarState(){
// 界面行为
<#if ctrl.getPSAppViewUIAction().getPSUIAction()??>
<#assign uiaction = ctrl.getPSAppViewUIAction().getPSUIAction()/>
<#-- 属于应用实体的界面行为走UI服务start -->
<#if uiaction.getPSAppDataEntity?? && uiaction.getPSAppDataEntity()??>
<#assign curAppEntity = uiaction.getPSAppDataEntity() />
<#if uiaction.getPSAppWFVer?? && uiaction.getPSAppWFVer()??>
const curUIService:${srfclassname('${uiaction.getPSAppWFVer().getCodeName()}')}WFUIService = new ${srfclassname('${uiaction.getPSAppWFVer().getCodeName()}')}WFUIService();
<#else>
const curUIService:${srfclassname('${curAppEntity.getCodeName()}')}UIService = new ${srfclassname('${curAppEntity.getCodeName()}')}UIService();
</#if>
ViewTool.calcActionItemAuthState({},this.${ModelsName},curUIService);
}
<#ibizinclude>
../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl
</#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册