This commit is contained in:
wyx
2023-03-08 19:05:58 +08:00
parent b662d41791
commit eab1292e38
8 changed files with 21 additions and 33 deletions

View File

@@ -28,23 +28,11 @@ 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(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));
export function checkPer() {
return true;
}
const adminOwner = [6, 9, 12];