Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
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
常超
founder_vue
Commits
1fb4d9c4
Commit
1fb4d9c4
authored
Dec 04, 2021
by
liyuhang19990520
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限
parent
5350aa71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
src/views/SystemManage/GroupPermission.vue
+8
-6
No files found.
src/views/SystemManage/GroupPermission.vue
View file @
1fb4d9c4
...
...
@@ -634,7 +634,7 @@ export default {
}
let
a
=
true
;
for
(
let
key
in
obj
)
{
if
(
key
.
indexOf
(
"
danhuang"
)
>=
0
||
key
.
indexOf
(
"
huise"
)
>=
0
)
{
if
(
key
.
indexOf
(
"huise"
)
>=
0
)
{
a
=
false
;
}
}
...
...
@@ -657,13 +657,15 @@ export default {
this
.
checkList
=
Array
.
from
(
new
Set
(
childList
));
}
else
{
console
.
log
(
this
.
rolePermissions
);
this
.
checkList
=
this
.
checkList
.
filter
((
x
)
=>
{
let
index
=
this
.
rolePermissions
.
findIndex
((
i
)
=>
i
.
id
==
x
);
if
(
sonArr
.
indexOf
(
x
)
<
0
)
{
return
x
;
let
arr
=
this
.
checkList
.
filter
((
x
)
=>
sonArr
.
indexOf
(
x
)
<
0
);
let
newArr
=
sonArr
.
filter
((
i
)
=>
{
let
index
=
this
.
rolePermissions
.
findIndex
((
j
)
=>
j
.
id
==
i
);
if
(
index
>=
0
)
{
return
i
;
}
});
this
.
checkList
=
[...(
arr
||
[]),
...(
newArr
||
[])];
}
},
controlCheckMap
()
{
...
...
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