|
@@ -67,12 +67,13 @@ export default {
|
67
|
67
|
key: '',
|
68
|
68
|
selid: '',
|
69
|
69
|
dialogTableVisible: false,
|
|
70
|
+ roleMenus: [],
|
70
|
71
|
}
|
71
|
72
|
},
|
72
|
73
|
computed: {
|
73
|
74
|
...mapRoleState({
|
74
|
75
|
roles: x => x.roleList,
|
75
|
|
- roleMenus: x => x.roleMenus,
|
|
76
|
+ // roleMenus: x => x.roleMenus,
|
76
|
77
|
}),
|
77
|
78
|
...mapState({
|
78
|
79
|
menus: x => x.app.menus
|
|
@@ -136,9 +137,10 @@ export default {
|
136
|
137
|
},
|
137
|
138
|
handlePermission (index, row) {
|
138
|
139
|
this.selid = row.RoleId
|
139
|
|
- this.GetRoleMenu({id: this.selid})
|
140
|
|
- console.log(this.roleMenus)
|
141
|
|
- this.dialogTableVisible = true
|
|
140
|
+ this.GetRoleMenu({id: this.selid}).then((res) => {
|
|
141
|
+ this.roleMenus = res || []
|
|
142
|
+ this.dialogTableVisible = true
|
|
143
|
+ })
|
142
|
144
|
},
|
143
|
145
|
handleNodeClick (node) {
|
144
|
146
|
console.log(node)
|