| | |
| | | privilegeInfo:{ |
| | | _currentPgId:"", |
| | | _currentPgName:"", |
| | | _pName:'', |
| | | _currentStoreId:"9999", |
| | | _privileges:[] |
| | | } |
| | |
| | | _loadPrivilege:function(_pgId){ |
| | | vc.component.privilegeInfo._privileges=[]; |
| | | var param = { |
| | | params:{pgId:_pgId} |
| | | }; |
| | | params:{ |
| | | pgId:_pgId, |
| | | name:vc.component.privilegeInfo._pName |
| | | |
| | | } |
| | | }; |
| | | |
| | | //发送get请求 |
| | | vc.http.get('privilege', |
| | |
| | | openDeletePrivilegeModel:function(_p){ |
| | | _p.pgId = vc.component.privilegeInfo._currentPgId; |
| | | vc.emit('deletePrivilege','openDeletePrivilegeModel',_p); |
| | | }, |
| | | queryPrivilege:function(){ |
| | | vc.component._loadPrivilege(vc.component.privilegeInfo._currentPgId); |
| | | } |
| | | } |
| | | }); |