Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
edb9b36d
authored
Aug 08, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
8cc1b7dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
5 deletions
src/views/Info/subAccountAdd.vue
src/views/Info/subAccountAdd.vue
View file @
edb9b36d
...
...
@@ -27,7 +27,7 @@
<section
class=
"role-auth"
>
<ul
class=
"row"
>
<li
v-for=
"(item,index) in menuData"
:key=
"item.id"
>
<el-tree
:data=
"item"
show-checkbox
node-key=
"id"
:props=
"defaultProps"
default-expand-all
@
check-change=
"handleCheckChange"
></el-tree>
<el-tree
ref=
"tree"
:data=
"item"
show-checkbox
node-key=
"id"
:props=
"defaultProps"
default-expand-all
@
check-change=
"handleCheckChange"
></el-tree>
</li>
</ul>
</section>
...
...
@@ -36,7 +36,7 @@
<section
class=
"role-auth"
>
<ul
class=
"row"
>
<li
v-for=
"(item,index) in messageMenu"
:key=
"item.id"
>
<el-tree
:data=
"item"
show-checkbox
node-key=
"id"
:props=
"defaultProps"
default-expand-all
@
check-change=
"handleCheckMsgChange"
></el-tree>
<el-tree
ref=
"treeMsg"
:data=
"item"
show-checkbox
node-key=
"id"
:props=
"defaultProps"
default-expand-all
@
check-change=
"handleCheckMsgChange"
></el-tree>
</li>
</ul>
</section>
...
...
@@ -92,8 +92,8 @@ export default {
name
:
''
,
password_raw
:
'123456'
,
email
:
''
,
user_
message_
rule
:
[],
user_rule
:
[]
user_rule
:
[],
user_
message_
rule
:
[]
}
};
},
...
...
@@ -103,6 +103,40 @@ export default {
},
methods
:
{
/**
* 全选 反选
*/
checkAll
(
type
)
{
if
(
type
==
1
)
{
var
data
=
this
.
$refs
.
tree
;
if
(
data
.
length
>
0
)
{
if
(
this
.
checked
)
{
data
.
forEach
((
element
,
index
)
=>
{
if
(
this
.
menuData
[
index
][
0
].
name
!=
'概况'
)
{
data
[
index
].
setCheckedKeys
([
this
.
menuData
[
index
][
0
].
id
]);
}
});
}
else
{
data
.
forEach
((
element
,
index
)
=>
{
data
[
index
].
setCheckedKeys
([]);
});
}
}
}
else
{
var
data
=
this
.
$refs
.
treeMsg
;
if
(
data
.
length
>
0
)
{
if
(
this
.
checked_msg
)
{
data
.
forEach
((
element
,
index
)
=>
{
data
[
index
].
setCheckedKeys
([
this
.
messageMenu
[
index
][
0
].
id
]);
});
}
else
{
data
.
forEach
((
element
,
index
)
=>
{
data
[
index
].
setCheckedKeys
([]);
});
}
}
}
},
/**
* 获取当前用户的权限菜单
*/
getMenu
()
{
...
...
@@ -197,9 +231,14 @@ export default {
this
.
$router
.
push
(
'/subAccount'
)
},
2000
)
}
else
{
this
.
formParam
.
user_rule
=
JSON
.
parse
(
this
.
formParam
.
user_rule
);
this
.
formParam
.
user_message_rule
=
JSON
.
parse
(
this
.
formParam
.
user_message_rule
);
this
.
$message
({
message
:
res
.
msg
,
type
:
'error'
type
:
'error'
,
onClose
:
()
=>
{
}
});
}
})
...
...
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