Commit 0174ca58 by shiwenbo

增加综合BI功能树功能节点及其功能权限

parent f90b79d8
......@@ -99,6 +99,7 @@ public class TenantInitListener implements ApplicationListener<ApplicationReady
this.addLicence("md_biz");
this.addLicence("md_sys");
this.addLicence("md_bill");
this.addLicence("md_bi");
}
private void addLicence(String key){
......
......@@ -20,6 +20,7 @@ public final class AuthMgrConstants {
public final static String BIZ = "业务管理";
public final static String STATISTICS = "统计";
public final static String BILL = "报表";
public final static String BI = "综合BI";
}
public static final class SystemRoleGroup{
......
......@@ -408,6 +408,9 @@ public class AuthManagerServiceImpl implements AuthManagerService,ApplicationEve
if(RoleRootGroup.BILL.equals(privilegeGroup)) {
return LicenseKeys.BILL_PERMIT;
}
if(RoleRootGroup.BI.equals(privilegeGroup)) {
return LicenseKeys.BI_PERMIT;
}
return null;
}
......
......@@ -90,7 +90,7 @@ public class AuthMgrController {
private final static String CLUEPOOL = "CluePool";
// 锚点顺序
private final static String[] ANCHOR_ORDER = { "项目", "合同", "监控", "生产", "销售", "资金" , "运输", "安健环", "价格", "OA办公", "报表", "业务管理", "其他" };
private final static String[] ANCHOR_ORDER = { "项目", "合同", "监控", "生产", "销售", "资金" , "运输", "安健环", "价格", "OA办公", "报表", "综合BI", "业务管理", "其他" };
protected final static Logger logger = LoggerFactory.getLogger(AuthMgrController.class);
......
......@@ -48,6 +48,13 @@
<dependency>com.xyst.dinas.statistics.auth.SaleAnalyse</dependency>
<dependency>com.xyst.dinas.statistics.auth.AdvanceAnalyse</dependency>
<dependency>com.xyst.dinas.statistics.auth.MarketBill</dependency>
<dependency>com.xyst.dinas.biz.auth.ComprehensiveSupervision</dependency>
<dependency>com.xyst.dinas.biz.auth.ProjectSubject</dependency>
<dependency>com.xyst.dinas.biz.auth.ContractSubject</dependency>
<dependency>com.xyst.dinas.biz.auth.ProductionSubject</dependency>
<dependency>com.xyst.dinas.biz.auth.SaleSubject</dependency>
<dependency>com.xyst.dinas.biz.auth.FinanceSubject</dependency>
<dependency>com.xyst.dinas.biz.auth.CompanySubject</dependency>
<content>
<m:function-tree>
<m:parent></m:parent>
......@@ -62,7 +69,112 @@
<m:view>Home</m:view>
<m:view-config></m:view-config>
</m:function-definition>
</m:function-node>
</m:function-node>
<m:function-node>
<m:id>94db0ebb-703d-4347-8e1b-31e4a40fd1ed</m:id>
<m:name>bi</m:name>
<m:title>综合BI</m:title>
<m:index>1100</m:index>
<m:license>md_bi</m:license>
<m:privilege></m:privilege>
<m:function-definition>
<m:view>functions</m:view>
<m:view-config></m:view-config>
</m:function-definition>
<m:children>
<m:function-node>
<m:id>dc0d4832-a9bd-48a3-85d9-a703d8869d76</m:id>
<m:name>comprehensive_supervision</m:name>
<m:title>综合监管</m:title>
<m:index>1110</m:index>
<m:license></m:license>
<m:privilege>com.xyst.dinas.biz.auth.ComprehensiveSupervision</m:privilege>
<m:function-definition>
<m:view>function-comprehensive-supervision</m:view>
<m:view-config></m:view-config>
</m:function-definition>
<m:icon>iconfont iconxiangmuqingdan1x</m:icon>
</m:function-node>
<m:function-node>
<m:id>d534d711-149b-461c-a191-97951374427d</m:id>
<m:name>project_subject</m:name>
<m:title>项目专题</m:title>
<m:index>1120</m:index>
<m:license></m:license>
<m:privilege>com.xyst.dinas.biz.auth.ProjectSubject</m:privilege>
<m:function-definition>
<m:view>function-project-subject</m:view>
<m:view-config></m:view-config>
</m:function-definition>
<m:icon>iconfont iconxiangmuqingdan1x</m:icon>
</m:function-node>
<m:function-node>
<m:id>8b53ad61-6981-4e6d-8d5a-09a3150b7463</m:id>
<m:name>contract_subject</m:name>
<m:title>合同专题</m:title>
<m:index>1130</m:index>
<m:license></m:license>
<m:privilege>com.xyst.dinas.biz.auth.ContractSubject</m:privilege>
<m:function-definition>
<m:view>function-contract-subject</m:view>
<m:view-config></m:view-config>
</m:function-definition>
<m:icon>iconfont iconxiangmuqingdan1x</m:icon>
</m:function-node>
<m:function-node>
<m:id>6d115a78-acc7-45b3-b97d-b58eff2f7a82</m:id>
<m:name>production_subject</m:name>
<m:title>生产专题</m:title>
<m:index>1140</m:index>
<m:license></m:license>
<m:privilege>com.xyst.dinas.biz.auth.ProductionSubject</m:privilege>
<m:function-definition>
<m:view>function-production-subject</m:view>
<m:view-config></m:view-config>
</m:function-definition>
<m:icon>iconfont iconxiangmuqingdan1x</m:icon>
</m:function-node>
<m:function-node>
<m:id>cc7802df-0f0e-43c5-b199-505811e90367</m:id>
<m:name>sale_subject</m:name>
<m:title>销售专题</m:title>
<m:index>1150</m:index>
<m:license></m:license>
<m:privilege>com.xyst.dinas.biz.auth.SaleSubject</m:privilege>
<m:function-definition>
<m:view>function-sale-subject</m:view>
<m:view-config></m:view-config>
</m:function-definition>
<m:icon>iconfont iconxiangmuqingdan1x</m:icon>
</m:function-node>
<m:function-node>
<m:id>f9d26076-df7d-41a4-8967-8154c90dd04c</m:id>
<m:name>finance_subject</m:name>
<m:title>资金专题</m:title>
<m:index>1160</m:index>
<m:license></m:license>
<m:privilege>com.xyst.dinas.biz.auth.FinanceSubject</m:privilege>
<m:function-definition>
<m:view>function-finance_subject</m:view>
<m:view-config></m:view-config>
</m:function-definition>
<m:icon>iconfont iconxiangmuqingdan1x</m:icon>
</m:function-node>
<m:function-node>
<m:id>84b85f62-0461-4754-9ac6-4f5b22e75e4f</m:id>
<m:name>company_subject</m:name>
<m:title>购砂单位专题</m:title>
<m:index>1170</m:index>
<m:license></m:license>
<m:privilege>com.xyst.dinas.biz.auth.CompanySubject</m:privilege>
<m:function-definition>
<m:view>function-company_subject</m:view>
<m:view-config></m:view-config>
</m:function-definition>
<m:icon>iconfont iconxiangmuqingdan1x</m:icon>
</m:function-node>
</m:children>
</m:function-node>
<m:function-node>
<m:id>1e066831-600c-4f78-bbc8-95b39a3c2426</m:id>
<m:name>project</m:name>
......
......@@ -65,4 +65,8 @@ public interface LicenseKeys {
* 许可访问报表模块
*/
public final String BILL_PERMIT = "md_bill";
/**
* 许可访问综合BI模块
*/
public final String BI_PERMIT = "md_bi";
}
<model>
<header>
<type>bcp.authz.Privilege</type>
<package>com.xyst.dinas.biz.auth</package>
<name>CompanySubject</name>
<title>查看</title>
<tags></tags>
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='40080991-3731-485b-bcd0-dddbd2222611' category='综合BI/购砂单位专题' seq='0'></privilege>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>bcp.authz.Privilege</type>
<package>com.xyst.dinas.biz.auth</package>
<name>ComprehensiveSupervision</name>
<title>查看</title>
<tags></tags>
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='a2eb6624-26b6-40ff-92a9-ffad8bbc2057' category='综合BI/综合监管(集团)' seq='0'></privilege>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>bcp.authz.Privilege</type>
<package>com.xyst.dinas.biz.auth</package>
<name>ContractSubject</name>
<title>查看</title>
<tags></tags>
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='01692afa-a93a-4260-9152-a21157d5419b' category='综合BI/合同专题' seq='0'></privilege>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>bcp.authz.Privilege</type>
<package>com.xyst.dinas.biz.auth</package>
<name>FinanceSubject</name>
<title>查看</title>
<tags></tags>
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='fe6461e5-f153-41e2-8e29-1b707a2d8027' category='综合BI/资金专题' seq='0'></privilege>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>bcp.authz.Privilege</type>
<package>com.xyst.dinas.biz.auth</package>
<name>ProductionSubject</name>
<title>查看</title>
<tags></tags>
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='dfe12b37-1887-491c-a236-c06b856b48b9' category='综合BI/生产专题' seq='0'></privilege>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>bcp.authz.Privilege</type>
<package>com.xyst.dinas.biz.auth</package>
<name>ProjectSubject</name>
<title>查看</title>
<tags></tags>
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='9a781084-88ad-4ef0-a458-10878efedb41' category='综合BI/项目专题' seq='0'></privilege>
</content>
</model>
\ No newline at end of file
<model>
<header>
<type>bcp.authz.Privilege</type>
<package>com.xyst.dinas.biz.auth</package>
<name>SaleSubject</name>
<title>查看</title>
<tags></tags>
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='cb81e5f3-9875-4297-a316-740471946a1d' category='综合BI/销售专题' seq='0'></privilege>
</content>
</model>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-privilege">
<specification>1.0</specification>
<id>40080991-3731-485b-bcd0-dddbd2222611</id>
<name>com.xyst.dinas.biz.auth.CompanySubject</name>
<title>查看</title>
<define>bcp.authz.privilege</define>
<define-version>1.0.0</define-version>
<content>
<m:privilege>
<m:type>TOKEN</m:type>
<m:category>综合BI/购砂单位专题</m:category>
<m:seq>0</m:seq>
</m:privilege>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-privilege">
<specification>1.0</specification>
<id>a2eb6624-26b6-40ff-92a9-ffad8bbc2057</id>
<name>com.xyst.dinas.biz.auth.ComprehensiveSupervision</name>
<title>查看</title>
<define>bcp.authz.privilege</define>
<define-version>1.0.0</define-version>
<content>
<m:privilege>
<m:type>TOKEN</m:type>
<m:category>综合BI/综合监管(集团)</m:category>
<m:seq>0</m:seq>
</m:privilege>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-privilege">
<specification>1.0</specification>
<id>01692afa-a93a-4260-9152-a21157d5419b</id>
<name>com.xyst.dinas.biz.auth.ContractSubject</name>
<title>查看</title>
<define>bcp.authz.privilege</define>
<define-version>1.0.0</define-version>
<content>
<m:privilege>
<m:type>TOKEN</m:type>
<m:category>综合BI/合同专题</m:category>
<m:seq>0</m:seq>
</m:privilege>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-privilege">
<specification>1.0</specification>
<id>fe6461e5-f153-41e2-8e29-1b707a2d8027</id>
<name>com.xyst.dinas.biz.auth.FinanceSubject</name>
<title>查看</title>
<define>bcp.authz.privilege</define>
<define-version>1.0.0</define-version>
<content>
<m:privilege>
<m:type>TOKEN</m:type>
<m:category>综合BI/资金专题</m:category>
<m:seq>0</m:seq>
</m:privilege>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-privilege">
<specification>1.0</specification>
<id>dfe12b37-1887-491c-a236-c06b856b48b9</id>
<name>com.xyst.dinas.biz.auth.ProductionSubject</name>
<title>查看</title>
<define>bcp.authz.privilege</define>
<define-version>1.0.0</define-version>
<content>
<m:privilege>
<m:type>TOKEN</m:type>
<m:category>综合BI/生产专题</m:category>
<m:seq>0</m:seq>
</m:privilege>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-privilege">
<specification>1.0</specification>
<id>9a781084-88ad-4ef0-a458-10878efedb41</id>
<name>com.xyst.dinas.biz.auth.ProjectSubject</name>
<title>查看</title>
<define>bcp.authz.privilege</define>
<define-version>1.0.0</define-version>
<content>
<m:privilege>
<m:type>TOKEN</m:type>
<m:category>综合BI/项目专题</m:category>
<m:seq>0</m:seq>
</m:privilege>
</content>
</metadata>
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.beecode.cn/schema/amino-metadata" xmlns:m="http://www.beecode.cn/schema/bcp-privilege">
<specification>1.0</specification>
<id>cb81e5f3-9875-4297-a316-740471946a1d</id>
<name>com.xyst.dinas.biz.auth.SaleSubject</name>
<title>查看</title>
<define>bcp.authz.privilege</define>
<define-version>1.0.0</define-version>
<content>
<m:privilege>
<m:type>TOKEN</m:type>
<m:category>综合BI/销售专题</m:category>
<m:seq>0</m:seq>
</m:privilege>
</content>
</metadata>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment