AfterInit.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Ext.define('erp.view.common.init.AfterInit', {
  2. extend: 'Ext.Viewport',
  3. layout: {
  4. type: 'hbox',
  5. align: 'middle',
  6. pack: 'center'
  7. },
  8. style: 'background: #f1f2f5;',
  9. initComponent : function(){
  10. var me = this;
  11. Ext.apply(me, {
  12. items: [{
  13. xtype: 'form',
  14. title: '初始化完成',
  15. height: 300,
  16. width: 300,
  17. layout: 'vbox',
  18. bodyStyle: 'background: #f1f1f1;',
  19. defaults: {
  20. margin: '10 0 0 30',
  21. checked: true
  22. },
  23. items: [{
  24. xtype: 'checkbox',
  25. action: 'ma/update_seq.action',
  26. boxLabel: '更新序列值'
  27. },{
  28. xtype: 'checkbox',
  29. action: 'ma/update_maxnum.action',
  30. boxLabel: '更新编号值'
  31. },{
  32. xtype: 'checkbox',
  33. action: 'system/init/clear.action',
  34. boxLabel: '清除导入历史'
  35. }],
  36. buttonAlign: 'center',
  37. buttons: [{
  38. text: '上一步',
  39. cls: 'custom-button',
  40. name: 'prev'
  41. },{
  42. text: '确认',
  43. cls: 'custom-button',
  44. name: 'confirm'
  45. },{
  46. text: '退出',
  47. cls: 'custom-button',
  48. handler: function() {
  49. parent.window.opener = null;
  50. parent.window.open('', '_self');
  51. parent.window.close();
  52. }
  53. }]
  54. }]
  55. });
  56. me.callParent(arguments);
  57. }
  58. });