提交 eb5f0af8 编写于 作者: tony001's avatar tony001

菜单权限修改

上级 cdd18d57
...@@ -123,6 +123,7 @@ ...@@ -123,6 +123,7 @@
<#assign import_block> <#assign import_block>
import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.codeName)}-${ctrl.getControlType()?lower_case}-model'; import ${srfclassname('${ctrl.codeName}')}Model from './${srffilepath2(ctrl.codeName)}-${ctrl.getControlType()?lower_case}-model';
import { Environment } from '@/environments/environment';
</#assign> </#assign>
<#ibizinclude> <#ibizinclude>
../@MACRO/CONTROL/CONTROL_HEADER-BASE.vue.ftl ../@MACRO/CONTROL/CONTROL_HEADER-BASE.vue.ftl
...@@ -507,7 +508,9 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code} ...@@ -507,7 +508,9 @@ ${P.getLogicCode(singleFuncs,"LOGIC.vue").code}
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
public handleMenusResource(inputMenus:Array<any>){ public handleMenusResource(inputMenus:Array<any>){
this.computedEffectiveMenus(inputMenus); if(Environment.enablePermissionValid){
this.computedEffectiveMenus(inputMenus);
}
this.dataProcess(inputMenus); this.dataProcess(inputMenus);
this.menus = inputMenus; this.menus = inputMenus;
<#if view.isDefaultPage?? && view.isDefaultPage()> <#if view.isDefaultPage?? && view.isDefaultPage()>
......
...@@ -24,6 +24,8 @@ export const Environment = { ...@@ -24,6 +24,8 @@ export const Environment = {
uniteAddress:"http://172.16.100.202:8114", uniteAddress:"http://172.16.100.202:8114",
// 是否为开发模式 // 是否为开发模式
devMode: true, devMode: true,
// 是否开启权限认证
enablePermissionValid:true,
// 项目模板地址 // 项目模板地址
ProjectUrl: "http://demo.ibizlab.cn/ibizr7pfstdtempl/ibizvuer7", ProjectUrl: "http://demo.ibizlab.cn/ibizr7pfstdtempl/ibizvuer7",
// 配置平台地址 // 配置平台地址
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册