This commit is contained in:
wyx
2023-04-07 14:53:02 +08:00
parent 6ccdaac1b9
commit 251b3179f7
2 changed files with 4 additions and 16 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 (per) {
return (per + "").split(",").some(t => admin.some(s => s == t));
}
if (store?.state?.userInfo?.isHrbp) {
return true;
}
return false;
export function checkPer() {
return true;
}
const adminOwner = [6, 9, 12];

View File

@@ -310,11 +310,11 @@ export default {
return (
<div class="opacationn">
<span
style={{color:data.record.submitTime?"":"#666",cursor:"pointer"}}
onClick={() => {
console.log('iyiy', data.record)
showassess(data.record);
}}
style="cursor:pointer"
>
查看
</span>