KnowledgeMain.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. Ext.define('erp.view.oa.knowledge.KnowledgeMain',{
  2. extend: 'Ext.Viewport',
  3. layout: 'fit',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. id:'desk',
  10. layout: 'border',
  11. items: [{
  12. xtype:'erpKnowledgeTreePanel',
  13. region:'west',
  14. tbar: [{
  15. xtype: 'button',
  16. iconCls: 'tree-add',
  17. id:'treeadd',
  18. disabled:true,
  19. text: $I18N.common.button.erpAddButton,
  20. style:'margin-left:10px'
  21. } ,{
  22. xtype: 'button',
  23. id:'treedelete',
  24. iconCls: 'tree-delete',
  25. disabled:true,
  26. text: $I18N.common.button.erpDeleteButton,
  27. style:'margin-left:10px'
  28. } , {
  29. xtype:'button',
  30. text:$I18N.common.button.erpUpdateButton,
  31. id:'treeupdate',
  32. disabled:true,
  33. iconCls:'x-button-icon-change',
  34. style:'margin-left:10px'
  35. }],
  36. },{
  37. xtype:'erpDatalistGridPanel',
  38. region:'center',
  39. selModel: Ext.create('Ext.selection.CheckboxModel',{
  40. }),
  41. tbar: [{
  42. xtype: 'button',
  43. iconCls: 'x-button-icon-move',
  44. id:'move',
  45. text: '转移',
  46. style:'margin-left:10px'
  47. } ,{
  48. xtype: 'button',
  49. id:'update',
  50. iconCls: 'x-button-icon-change',
  51. text: $I18N.common.button.erpUpdateButton,
  52. style:'margin-left:10px'
  53. } , {
  54. xtype:'button',
  55. id:'delete',
  56. iconCls:'x-button-icon-delete',
  57. text: $I18N.common.button.erpDeleteButton,
  58. style:'margin-left:10px'
  59. },{
  60. xtype:'button',
  61. id:'print',
  62. iconCls:'x-button-icon-print',
  63. text: $I18N.common.button.erpPrintButton,
  64. style:'margin-left:10px'
  65. }],
  66. }]
  67. }]
  68. });
  69. me.callParent(arguments);
  70. }
  71. });