Commit 182d53bc authored by Qingyu Deng's avatar Qingyu Deng

feat: add audit permission

parent 4bdfd60b
...@@ -486,7 +486,29 @@ export default { ...@@ -486,7 +486,29 @@ export default {
}, },
computed: { computed: {
isAllowedToAudit() { isAllowedToAudit() {
// 用户不存在
if (!this.permissionsAll) {
return false; return false;
}
const WITHDRAWAL_PERMISSION_ID = 10;
const withdrawlPermission = this.permissionsAll.filter(
(item) => item.id === WITHDRAWAL_PERMISSION_ID
);
// 无此模块权限
if (!withdrawlPermission) {
return false;
}
const AUDIT_PERMSSION_ID = 14;
const auditPermission = withdrawlPermission.filter(
(item) => item.id === AUDIT_PERMSSION_ID
);
return !!auditPermission;
}, },
}, },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment