KnowledgeModule.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Ext.define('erp.view.oa.knowledge.KnowledgeModule',{
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. region: 'south',
  10. xtype:'erpKnowledgeGridPanel',
  11. anchor: '100% 100%',
  12. dockedItems: [{
  13. xtype: 'toolbar',
  14. dock: 'top',
  15. style:'font-size:16px;height:40px',
  16. bodyStyle: 'font-size:16px;height:40px',
  17. items: [{
  18. xtype: 'button',
  19. iconCls: 'tree-add',
  20. id:'add',
  21. text: $I18N.common.button.erpAddButton,
  22. style:'margin-left:10px'
  23. },{
  24. xtype: 'button',
  25. id:'delete',
  26. iconCls: 'tree-delete',
  27. text: $I18N.common.button.erpDeleteButton,
  28. style:'margin-left:10px'
  29. },{
  30. xtype:'button',
  31. text:'排序',
  32. id:'sort',
  33. iconCls:'x-button-icon-sort',
  34. style:'margin-left:10px'
  35. }]
  36. }]
  37. }]
  38. });
  39. me.callParent(arguments);
  40. }
  41. });