dialogFugong.js 748 B

123456789101112131415161718192021222324252627282930313233
  1. define(function (require) {
  2. return function (context) {
  3. var $dlg;
  4. return {
  5. xtype: 'dialog',
  6. dialogId: 'dialogFugong',
  7. title: '复工查看',
  8. width: '400px',
  9. height: '550px',
  10. onOpen: function () {
  11. $dlg = $(this);
  12. },
  13. center: {
  14. items: {
  15. width: '100%',
  16. height: '100%',
  17. autoSizeColumns: true,
  18. xtype: 'iframe',
  19. src: '/whepi/user/returnWork.html?userId='+context.userId //在此用拼接参数的方式往下级页面传值
  20. }
  21. },
  22. buttons: [
  23. {
  24. text: "关闭", iconCls: "fa fa-times", onClick: function () {
  25. $dlg.dialog('close');
  26. }
  27. }
  28. ]
  29. }
  30. ;
  31. };
  32. });