CopyRoleDialog.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /**
  2. * 复制角色选择窗口。
  3. * dialogWidth:窗口宽度,默认值350
  4. * dialogWidth:窗口宽度,默认值150
  5. * callback:回调函数
  6. * 回调参数如下:
  7. * key:参数key
  8. * name:参数名称
  9. * 使用方法如下:
  10. *
  11. * CopyRoleDialog({callback:function(content){
  12. * //回调函数处理
  13. * }});
  14. * @param conf
  15. */
  16. function CopyRoleDialog(conf)
  17. {
  18. if(!conf) conf={};
  19. var roleId=conf.roleId;
  20. var url=__ctx + "/platform/system/sysRole/copy.ht?roleId=" +roleId;
  21. $.extend(conf, {help:0,status:0,scroll:0,center:1});
  22. var winArgs="dialogWidth=550px;dialogHeight=250px;help=" + conf.help +";status=" + conf.status +";scroll=" + conf.scroll +";center=" +conf.center;
  23. url=url.getNewUrl();
  24. /*var rtn=window.showModalDialog(url,"",winArgs);
  25. if(conf){
  26. location.reload();
  27. }*/
  28. /*KILLDIALOG*/
  29. DialogUtil.open({
  30. height:250,
  31. width: 550,
  32. title : '复制角色',
  33. url: url,
  34. isResize: true,
  35. //自定义参数
  36. sucCall:function(rtn){
  37. if(conf){
  38. location.reload();
  39. }
  40. }
  41. });
  42. }