AttentionMain.js 1008 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. Ext.define('erp.view.oa.attention.AttentionMain',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. layout: 'border',
  10. items: [{region: 'center',
  11. id: 'workrecord',
  12. layout: 'fit',
  13. title:'',
  14. bodyStyle: 'background: #f0f0f0;',
  15. defaults: {frame:true},
  16. items: [{
  17. id:'grid',
  18. xtype:'erpAttentionMainGridPanel',
  19. animCollapse: false,
  20. title: '所有下属',
  21. defaults:{
  22. columnWidth:1,
  23. }
  24. },{
  25. id:'detail',
  26. layout:'anchor',
  27. items:[{
  28. anchor:'100% 20%',
  29. layout:'column',
  30. contentEl:'employeedata'
  31. },{
  32. anchor:'100% 50%',
  33. layout:'column',
  34. contentEl:'details'
  35. }]
  36. }]
  37. },
  38. {
  39. region:'west',
  40. width:'25%',
  41. xtype:'AttentionMainTreePanel',
  42. layout:'fit',
  43. }
  44. ]
  45. }]
  46. });
  47. me.callParent(arguments);
  48. }
  49. });