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
e7794227
Commit
e7794227
authored
Jun 24, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限分配修复
parent
3fb94260
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
src/components/menu-permission.vue
src/components/menu-permission.vue
+13
-5
src/pages/authority/role/addroles.vue
src/pages/authority/role/addroles.vue
+2
-2
No files found.
src/components/menu-permission.vue
View file @
e7794227
...
@@ -14,7 +14,10 @@
...
@@ -14,7 +14,10 @@
>
>
<span
class=
"el-checkbox__inner"
></span>
<span
class=
"el-checkbox__inner"
></span>
</span>
</span>
<span
class=
"el-checkbox__label"
v-text=
"first_item.menu_name"
></span>
<span
class=
"el-checkbox__label"
v-text=
"first_item.menu_name"
></span>
</label>
</label>
</div>
</div>
<ul
<ul
...
@@ -78,8 +81,7 @@
...
@@ -78,8 +81,7 @@
<li>
<li>
<div
class=
"floor_item fourth"
>
<div
class=
"floor_item fourth"
>
<label
<label
v-for=
"(fourth_item,
v-for=
"(fourth_item, fourth_index) in third_item.Child"
fourth_index) in third_item.Child"
:key=
"
:key=
"
'p_' +
'p_' +
first_index +
first_index +
...
@@ -127,7 +129,7 @@
...
@@ -127,7 +129,7 @@
<
script
>
<
script
>
export
default
{
export
default
{
model
:
{
model
:
{
prop
:
"
permissions
"
,
prop
:
"
data
"
,
event
:
"
change-permissions
"
,
event
:
"
change-permissions
"
,
},
},
props
:
{
props
:
{
...
@@ -191,7 +193,13 @@ export default {
...
@@ -191,7 +193,13 @@ export default {
}
}
},
},
},
},
mounted
()
{},
watch
:
{
data
(
value
)
{
console
.
log
(
"
--- --- ---
"
);
console
.
log
(
value
);
console
.
log
(
"
--- --- ---
"
);
},
},
};
};
</
script
>
</
script
>
...
...
src/pages/authority/role/addroles.vue
View file @
e7794227
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
style=
"margin-bottom:100px;margin-top:20px;"
style=
"margin-bottom:100px;margin-top:20px;"
>
>
<menu-permission
<menu-permission
:data
=
"permissionData"
v-model
=
"permissionData"
@
change=
"changePermissions"
@
change=
"changePermissions"
></menu-permission>
></menu-permission>
</div>
</div>
...
@@ -158,10 +158,10 @@ export default {
...
@@ -158,10 +158,10 @@ export default {
Promise
.
all
([
this
.
get_tree
(),
this
.
get_use_tree
()])
Promise
.
all
([
this
.
get_tree
(),
this
.
get_use_tree
()])
.
then
((
result
)
=>
{
.
then
((
result
)
=>
{
console
.
log
(
result
);
console
.
log
(
result
);
this
.
permissionData
=
result
[
0
].
data
.
data
;
this
.
service_node
=
result
[
1
].
data
.
data
;
this
.
service_node
=
result
[
1
].
data
.
data
;
this
.
permission_arr
=
[];
this
.
permission_arr
=
[];
this
.
deal_tree_data
(
result
[
0
].
data
.
data
,
result
[
1
].
data
.
data
);
this
.
deal_tree_data
(
result
[
0
].
data
.
data
,
result
[
1
].
data
.
data
);
this
.
permissionData
=
result
[
0
].
data
.
data
;
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
console
.
log
(
error
);
console
.
log
(
error
);
...
...
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