|
@@ -85,7 +85,6 @@ module.exports = app => {
|
|
|
for (const prop in pConst) {
|
|
|
c.permission.push({ key: prop, ...pConst[prop]});
|
|
|
}
|
|
|
- pConst.title = c.name;
|
|
|
}
|
|
|
} else {
|
|
|
p.permission = [];
|
|
@@ -94,7 +93,17 @@ module.exports = app => {
|
|
|
for (const prop in pConst) {
|
|
|
p.permission.push({ key: prop, ...pConst[prop]});
|
|
|
}
|
|
|
- pConst.title = p.name;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ getRelaPermissionBlock(key) {
|
|
|
+ for (const p of this.PermissionBlock) {
|
|
|
+ if (p.key === key) return p;
|
|
|
+ if (p.children) {
|
|
|
+ for (const c of p.children) {
|
|
|
+ if (c.key === key) return c;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|