| | |
| | | // 获取当前页面的参数 |
| | | let pgId = vc.component.privilegeTreeInfo._currentPgId; |
| | | let communityId = vc.getCurrentCommunity().communityId; |
| | | // 获取权限名称 |
| | | let nodeData = $('#jstree_privilege').jstree('get_node', nodeId); |
| | | let pName = nodeData ? nodeData.text : ''; |
| | | // 跳转到role-a页面,传递所有参数 |
| | | let params = 'pId=' + pId + '&pgId=' + pgId + '&communityId=' + communityId + '&type=all'; |
| | | let params = 'pId=' + pId + '&pgId=' + pgId + '&communityId=' + communityId + '&type=all&pName=' + encodeURIComponent(pName); |
| | | vc.jumpToPage('/#/pages/frame/role/role-a?' + params); |
| | | }); |
| | | // 将按钮插入到节点后面 |