KnowledgeSubscibe.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Ext.define('erp.view.oa.knowledge.KnowledgeSubscibe',{
  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: 'north',
  10. xtype:'erpBatchDealFormPanel',
  11. anchor: '100% 20%',
  12. tbar: [{
  13. name: 'query',
  14. id: 'query',
  15. text: $I18N.common.button.erpQueryButton,
  16. iconCls: 'x-button-icon-query',
  17. cls: 'x-btn-gray',
  18. handler: function(){
  19. Ext.getCmp('dealform').onQuery();
  20. }
  21. }, '->', {
  22. xtype: 'button',
  23. text:'已阅',
  24. cls: 'x-btn-gray',
  25. id:'readed',
  26. iconCls: 'x-button-icon-readed',
  27. },'-',
  28. {
  29. xtype: 'button',
  30. text:'订阅设置',
  31. id:'install',
  32. cls: 'x-btn-gray',
  33. iconCls: 'x-button-icon-install',
  34. },'-',{
  35. name: 'export',
  36. text: $I18N.common.button.erpExportButton,
  37. iconCls: 'x-button-icon-excel',
  38. cls: 'x-btn-gray',
  39. handler: function(){
  40. var grid = Ext.getCmp('batchDealGridPanel');
  41. grid.BaseUtil.exportexcel(grid);
  42. }
  43. },'-',{
  44. text: $I18N.common.button.erpCloseButton,
  45. iconCls: 'x-button-icon-close',
  46. cls: 'x-btn-gray',
  47. handler: function(){
  48. var main = parent.Ext.getCmp("content-panel");
  49. main.getActiveTab().close();
  50. }
  51. }],
  52. },{
  53. region: 'south',
  54. xtype:'erpDatalistGridPanel',
  55. anchor: '100% 80%',
  56. selModel: Ext.create('Ext.selection.CheckboxModel',{
  57. })
  58. }]
  59. });
  60. me.callParent(arguments);
  61. }
  62. });