TemplateDialog.js 1005 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * 信息内容模板选择窗口。
  3. * dialogWidth:窗口宽度,默认值500
  4. * dialogWidth:窗口宽度,默认值300
  5. * callback:回调函数
  6. * 回调参数如下:
  7. * key:参数key
  8. * name:参数名称
  9. * 使用方法如下:
  10. *
  11. * TemplateDialog({callback:function(content){
  12. * //回调函数处理
  13. * }});
  14. * @param conf
  15. */
  16. function TemplateDialog(conf)
  17. {
  18. var url=__ctx + "/platform/system/sysTemplate/dialog.ht".getNewUrl();
  19. var winArgs="dialogWidth:600px;dialogHeight:300px;help:0;status0;scroll:1;center:1";
  20. url=url.getNewUrl();
  21. /*var rtn=window.showModalDialog(url,conf,winArgs);
  22. if(rtn!=undefined){
  23. if(conf.callback){
  24. conf.callback.call(this,rtn);
  25. }
  26. }*/
  27. var that =this;
  28. /*KILLDIALOG*/
  29. DialogUtil.open({
  30. height:300,
  31. width: 600,
  32. title : '信息内容模板',
  33. url: url,
  34. isResize: true,
  35. //自定义参数
  36. conf: conf,
  37. sucCall:function(rtn){
  38. if(rtn!=undefined){
  39. if(conf.callback){
  40. conf.callback.call(that,rtn);
  41. }
  42. }
  43. }
  44. });
  45. }