Viewport.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Ext.define('erp.view.oa.officialDocument.fileManagement.noFile.Viewport',{
  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:'erpNoFileFormPanel',
  11. anchor: '100% 30%'
  12. },{
  13. region: 'south',
  14. xtype:'erpDatalistGridPanel',
  15. anchor: '100% 70%',
  16. selModel: Ext.create('Ext.selection.CheckboxModel',{
  17. }),
  18. tbar:[ {
  19. iconCls: 'group-delete',
  20. id: 'delete',
  21. text: $I18N.common.button.erpDeleteButton
  22. },{
  23. iconCls: 'x-button-icon-print',
  24. text: $I18N.common.button.erpPrintButton,
  25. id: 'print'
  26. },{
  27. iconCls: 'x-button-icon-add',
  28. id: 'file',
  29. text: $I18N.common.button.erpFileButton
  30. },{
  31. iconCls: 'x-button-icon-submit',
  32. id: 'back',
  33. text: '退回流程'
  34. }]
  35. }]
  36. });
  37. me.callParent(arguments);
  38. }
  39. });