Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
12551b25
Commit
12551b25
authored
Jun 28, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
菜单权限组件修改
parent
1d949413
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
src/components/menu-permission.vue
src/components/menu-permission.vue
+9
-4
No files found.
src/components/menu-permission.vue
View file @
12551b25
...
...
@@ -210,19 +210,24 @@ export default {
// this.$emit("change-list", this.permissionsList);
},
upParentSelected
(
parent
)
{
let
selectedLength
=
0
;
let
selectedLength1
=
0
;
let
selectedLength2
=
0
;
let
selected
=
parent
.
selected
;
parent
.
Child
.
forEach
((
item
)
=>
{
if
(
item
.
selected
===
1
)
{
selectedLength
++
;
selectedLength1
++
;
}
else
if
(
item
.
selected
===
2
)
{
selectedLength2
++
;
}
});
if
(
selectedLength
===
parent
.
Child
.
length
)
{
if
(
selectedLength
1
===
parent
.
Child
.
length
)
{
selected
=
1
;
}
else
if
(
selectedLength
>
0
)
{
}
else
if
(
selectedLength
1
+
selectedLength2
>
0
)
{
selected
=
2
;
}
else
{
selected
=
0
;
}
this
.
$set
(
parent
,
"
selected
"
,
selected
);
...
...
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