mirror of
https://github.com/dataease/dataease.git
synced 2026-06-16 03:11:44 +08:00
refactor(X-Pack): 对权限体系进行重构-15
This commit is contained in:
@@ -78,6 +78,11 @@
|
||||
<value-type>java.util.List</value-type>
|
||||
</cache>
|
||||
|
||||
<cache alias="de_v2_org_busi_pers_interactive" uses-template="common-cache">
|
||||
<key-type>java.lang.String</key-type>
|
||||
<value-type>java.util.List</value-type>
|
||||
</cache>
|
||||
|
||||
<cache alias="de_v2_lic_cache_result" uses-template="common-cache">
|
||||
<key-type>java.lang.String</key-type>
|
||||
<value-type>io.dataease.license.bo.F2CLicResult</value-type>
|
||||
|
||||
@@ -279,7 +279,7 @@ const edit = (val, arr) => {
|
||||
)
|
||||
}
|
||||
const loadOrgOptions = async () => {
|
||||
const res = await request.post({ url: '/org/mounted', data: {} })
|
||||
const res = await request.get({ url: '/org/page/tree' })
|
||||
const data = res.data
|
||||
formatOrg(data)
|
||||
state.orgOptions = data
|
||||
|
||||
4
pom.xml
4
pom.xml
@@ -10,8 +10,8 @@
|
||||
|
||||
<modules>
|
||||
<module>sdk</module>
|
||||
<module>de-xpack</module>
|
||||
<module>core</module>
|
||||
<!--<module>de-xpack</module>
|
||||
<module>core</module>-->
|
||||
</modules>
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
||||
@@ -1,28 +1,15 @@
|
||||
package io.dataease.constant;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum AuthResourceEnum {
|
||||
|
||||
PANEL(2, 1), SCREEN(3, 2), DATASET(5, 3), DATASOURCE(6, 4), SYSTEM(7, 0), USER(8, 5), ROLE(8, 6), ORG(9, 7), SYNC_DATASOURCE(23, 9), TASK(24, 9), SUMMARY(22, 9), DATA_FILLING(60, 8), SPREADSHEET(100L, 10);
|
||||
|
||||
private long menuId;
|
||||
private final long menuId;
|
||||
|
||||
private int flag;
|
||||
|
||||
public long getMenuId() {
|
||||
return menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(long menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
public int getFlag() {
|
||||
return flag;
|
||||
}
|
||||
|
||||
public void setFlag(int flag) {
|
||||
this.flag = flag;
|
||||
}
|
||||
private final int flag;
|
||||
|
||||
AuthResourceEnum(long menuId, int flag) {
|
||||
this.menuId = menuId;
|
||||
|
||||
@@ -21,7 +21,7 @@ public class CacheConstant {
|
||||
public static final String ORG_GLOBAL_RESOURCE_CACHE = "de_v2_org_global_resource";
|
||||
public static final String ALL_OID_FLAG_RESOURCE_CACHE = "de_v2_all_oid_flag_resource";
|
||||
public static final String ALL_RESOURCES_CACHE = "de_v2_all_resources";
|
||||
|
||||
public static final String ORG_BUSI_PERS_INTERACTIVE_CACHE = "de_v2_org_busi_pers_interactive";
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user