mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 11:26:45 +08:00
-- fix bug
This commit is contained in:
@@ -28,11 +28,23 @@ export function traverseArr(arr, traverseObj, saveOld = false) {
|
||||
return newArr;
|
||||
}
|
||||
|
||||
// const admin = [5, 6, 8, 9, 11, 12];
|
||||
const admin = [5, 6, 8, 9, 11, 12];
|
||||
|
||||
//检查 管理权和归属权
|
||||
export function checkPer() {
|
||||
return true;
|
||||
export function checkPer(per,createId) {
|
||||
if(createId && store?.state?.userInfo?.id === createId){
|
||||
return true;
|
||||
}
|
||||
if (store?.state?.userInfo?.roleList.some(t => t.code === "system-admin")) {
|
||||
return true;
|
||||
}
|
||||
if (store?.state?.userInfo?.isHrbp) {
|
||||
return true;
|
||||
}
|
||||
if (!per) {
|
||||
return false;
|
||||
}
|
||||
return (per + "").split(",").some(t => admin.some(s => s == t));
|
||||
}
|
||||
|
||||
const adminOwner = [6, 9, 12];
|
||||
|
||||
Reference in New Issue
Block a user