Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bp
op-web-service
Commits
182d53bc
Commit
182d53bc
authored
Jul 20, 2021
by
Qingyu Deng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add audit permission
parent
4bdfd60b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
index.vue
src/pages/Withdrawal/Audit/index.vue
+23
-1
No files found.
src/pages/Withdrawal/Audit/index.vue
View file @
182d53bc
...
...
@@ -486,7 +486,29 @@ export default {
},
computed
:
{
isAllowedToAudit
()
{
return
false
;
// 用户不存在
if
(
!
this
.
permissionsAll
)
{
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
;
},
},
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment