Source.js 699 B

1234567891011121314151617181920212223242526272829303132333435
  1. Ext.define('erp.view.pm.source.Source',{
  2. extend: 'Ext.Viewport',
  3. layout: 'border',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. region: 'north',
  10. xtype: "SourceFormPanel",
  11. anchor: '100% 20%',
  12. },{
  13. region: 'center',
  14. title:'来源明细',
  15. xtype:'panel',
  16. height:height,
  17. layout:'fit',
  18. anchor: '100% 80%',
  19. //外面加层panel 防止布局 gridheader 会影藏
  20. items:[{
  21. xtype: "SourceGridPanel",
  22. anchor: '100% 100%'
  23. }]
  24. }
  25. /* {
  26. region: 'center',
  27. xtype: "SourceGridPanel",
  28. anchor: '100% 75%'
  29. }*/]
  30. });
  31. me.callParent(arguments);
  32. }
  33. });