ShowExeInfo.js 958 B

123456789101112131415161718192021222324252627282930
  1. //显示执行人信息
  2. if (typeof ShowExeInfo == 'undefined') {
  3. ShowExeInfo = {};
  4. }
  5. /**
  6. * 弹出窗口
  7. */
  8. ShowExeInfo.showDialog = function(conf){
  9. var dialogWidth=650;
  10. var dialogHeight=500;
  11. conf=$.extend({},{dialogWidth:dialogWidth ,dialogHeight:dialogHeight ,help:0,status:0,scroll:0,center:1},conf);
  12. var winArgs="height="+conf.dialogHeight+",width="+conf.dialogWidth+",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes";
  13. var url= conf.url;
  14. url=url.getNewUrl();
  15. var win=window.open(url,null,winArgs);
  16. win.focus();
  17. };
  18. ShowExeInfo.showRole = function(id){
  19. ShowExeInfo.showDialog({url: __ctx+'/platform/system/sysRole/getByRoleId.ht?roleId='+id});
  20. };
  21. ShowExeInfo.showPos = function(id){
  22. ShowExeInfo.showDialog({url: __ctx+'/platform/system/position/getByPosId.ht?canReturn=2&posId='+id});
  23. };
  24. ShowExeInfo.showOrg = function(id){
  25. ShowExeInfo.showDialog({url: __ctx+'/platform/system/sysOrg/getByLink.ht?orgId='+id});
  26. };