GradeRoleSelectDialog.js 788 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * 分级角色选择器。
  3. * 回调函数
  4. * 返回角色ID和角色名称。
  5. */
  6. function GradeRoleSelectDialog(conf)
  7. {
  8. var winArgs="dialogWidth=695px;dialogHeight=500px;help=0;status=0;scroll=0;center=1" ;
  9. var url=__ctx + '/platform/system/grade/roleSelector.ht?orgId=' + conf.orgId;
  10. url=url.getNewUrl();
  11. /*var rtn=window.showModalDialog(url,"",winArgs);
  12. if(conf.callback){
  13. if(rtn!=undefined){
  14. conf.callback.call(this,rtn.roleId,rtn.roleName);
  15. }
  16. }*/
  17. /*KILLDIALOG*/
  18. var that =this;
  19. DialogUtil.open({
  20. height:500,
  21. width: 695,
  22. title : '分级角色选择器',
  23. url: url,
  24. isResize: true,
  25. //自定义参数
  26. sucCall:function(rtn){
  27. if(conf.callback){
  28. if(rtn!=undefined){
  29. conf.callback.call(that,rtn.roleId,rtn.roleName);
  30. }
  31. }
  32. }
  33. });
  34. }