Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz4j Spring R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7后台标准模板
iBiz4j Spring R7
提交
bf416750
提交
bf416750
编写于
5月 13, 2020
作者:
zhouweidong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
菜单
上级
6a8139cf
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
29 行增加
和
29 行删除
+29
-29
DEPrivs.json.ftl
...%PUBPRJ%-core/src/main/resources/deprivs/DEPrivs.json.ftl
+29
-29
未找到文件。
SLN/%PUBPRJ%-core/src/main/resources/deprivs/DEPrivs.json.ftl
浏览文件 @
bf416750
...
...
@@ -42,7 +42,7 @@ TARGET=PSSYSTEM
],
</#if>
<#if sys.getAllPSApps()??>
,
"appmenus":[
"appmenus":[
<#list sys.getAllPSApps() as app>
<#if app_index gt 0 >,</#if>
{
...
...
@@ -57,89 +57,89 @@ TARGET=PSSYSTEM
}
<#comment>获取实体数据集</#comment>
<#function getDataSet>
<#assign result="[" >
<#assign result
_dataSet
="[" >
<#if de.getAllPSDEDataSets()??>
<#list de.getAllPSDEDataSets() as dataSet>
<#if dataSet_index gt 0><#assign result
=resul
t+","></#if>
<#if dataSet_index gt 0><#assign result
_dataSet=result_dataSe
t+","></#if>
<#assign dataSetLogicName="">
<#if dataSet.getLogicName()?? && dataSet.getLogicName()!=''><#assign dataSetLogicName=dataSet.getLogicName()><#else><#assign dataSetLogicName=dataSet.codeName></#if>
<#assign result
=resul
t+"{\"id\":\""+dataSet.codeName+"\" , \"name\":\""+dataSetLogicName+"\"}">
<#assign result
_dataSet=result_dataSe
t+"{\"id\":\""+dataSet.codeName+"\" , \"name\":\""+dataSetLogicName+"\"}">
</#list>
</#if>
<#assign result
=resul
t+"]" >
<#return result>
<#assign result
_dataSet=result_dataSe
t+"]" >
<#return result
_dataSet
>
</#function>
<#comment>获取实体行为</#comment>
<#function getDEAction>
<#assign result="[" >
<#assign result
_deAction
="[" >
<#if de.getAllPSDEActions()??>
<#list de.getAllPSDEActions() as deAction>
<#if deAction_index gt 0><#assign result
=result
+","></#if>
<#if deAction_index gt 0><#assign result
_deAction=result_deAction
+","></#if>
<#assign deActionLogicName="">
<#if deAction.getLogicName()?? && deAction.getLogicName()!=''><#assign deActionLogicName=deAction.getLogicName()><#else><#assign deActionLogicName=deAction.codeName></#if>
<#assign result
=result
+"{\"id\":\""+deAction.codeName+"\" , \"name\":\""+deActionLogicName+"\" , \"type\":\""+deAction.getActionType()+"\" }">
<#assign result
_deAction=result_deAction
+"{\"id\":\""+deAction.codeName+"\" , \"name\":\""+deActionLogicName+"\" , \"type\":\""+deAction.getActionType()+"\" }">
</#list>
</#if>
<#assign result
=result
+"]" >
<#return result>
<#assign result
_deAction=result_deAction
+"]" >
<#return result
_deAction
>
</#function>
<#comment>获取统一资源</#comment>
<#function getUniRes>
<#assign result="[" >
<#assign result
_unires
="[" >
<#if de.getAllPSDEActions()??>
<#list de.getAllPSDEActions() as deAction>
<#if deAction_index gt 0><#assign result
=result
+","></#if>
<#if deAction_index gt 0><#assign result
_unires=result_unires
+","></#if>
<#assign deActionLogicName="">
<#if deAction.getLogicName()?? && deAction.getLogicName()!=''><#assign deActionLogicName=deAction.getLogicName()><#else><#assign deActionLogicName=deAction.codeName></#if>
<#assign result
=result
+"{\"id\":\""+deAction.codeName+"\" , \"name\":\""+deActionLogicName+"\" , \"type\":\""+deAction.getActionType()+"\" }">
<#assign result
_unires=result_unires
+"{\"id\":\""+deAction.codeName+"\" , \"name\":\""+deActionLogicName+"\" , \"type\":\""+deAction.getActionType()+"\" }">
</#list>
</#if>
<#assign result
=result
+"]" >
<#return result>
<#assign result
_unires=result_unires
+"]" >
<#return result
_unires
>
</#function>
<#comment>获取应用菜单</#comment>
<#function getAppMenu app>
<#assign
appMenuContent
="[">
<#assign
result_appMenu
="[">
<#if app.getAllPSAppMenuModels()??>
<#list app.getAllPSAppMenuModels() as appMenu>
<#if appMenu_index gt 0><#assign
appMenuContent=appMenuContent
+","></#if>
<#if appMenu_index gt 0><#assign
result_appMenu=result_appMenu
+","></#if>
<#assign menuItems=getAppMenuItems(appMenu)>
<#assign
appMenuContent=appMenuContent
+"{ \"menu\":\""+appMenu.name+"\", \"menuitem\":"+menuItems+" }">
<#assign
result_appMenu=result_appMenu
+"{ \"menu\":\""+appMenu.name+"\", \"menuitem\":"+menuItems+" }">
</#list>
</#if>
<#assign
appMenuContent=appMenuContent
+"]">
<#return
appMenuContent
>
<#assign
result_appMenu=result_appMenu
+"]">
<#return
result_appMenu
>
</#function>
<#comment>获取菜单项集合</#comment>
<#function getAppMenuItems menuGroup>
<#assign result
MenuItem
="[" >
<#assign result
_MenuItems
="[" >
<#if menuGroup.getPSAppMenuItems()??>
<#list menuGroup.getPSAppMenuItems() as menuItem>
<#if menuItem_index gt 0>
<#assign result
MenuItem=resultMenuItem
+",">
<#assign result
_MenuItems=result_MenuItems
+",">
</#if>
<#assign singMenuItem=getAppMenuItem(menuItem)>
<#assign result
MenuItem=resultMenuItem
+singMenuItem>
<#assign result
_MenuItems=result_MenuItems
+singMenuItem>
</#list>
</#if>
<#assign result
MenuItem=resultMenuItem
+"]" >
<#return result
MenuItem
>
<#assign result
_MenuItems=result_MenuItems
+"]" >
<#return result
_MenuItems
>
</#function>
<#comment>获取菜单项</#comment>
<#function getAppMenuItem menuItem>
<#if menuItem.getPSAppMenuItems()??>
<#assign items=getAppMenuItems(menuItem)>
<#assign result="{\"id\":\""+menuItem.id+"\" , \"name\":\""+menuItem.name+"\" , \"items\":"+items+"}">
<#assign result
_menuItem
="{\"id\":\""+menuItem.id+"\" , \"name\":\""+menuItem.name+"\" , \"items\":"+items+"}">
<#else>
<#assign result="{\"id\":\""+menuItem.id+"\" , \"name\":\""+menuItem.name+"\" }">
<#assign result
_menuItem
="{\"id\":\""+menuItem.id+"\" , \"name\":\""+menuItem.name+"\" }">
</#if>
<#return result>
<#return result
_menuItem
>
</#function>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录