Warehouse.js 657 B

123456789101112131415161718192021222324252627
  1. Ext.define('saas.view.document.other.Warehouse', {
  2. extend: 'saas.view.document.kind.Kind',
  3. xtype: 'other-warehouse',
  4. autoScroll: true,
  5. layout:'fit',
  6. _openUrl:'/api/document/warehouse/open',
  7. _closeUrl:'/api/document/warehouse/close',
  8. defaultType:'warehouse',
  9. tbar: ['->',{
  10. xtype:'button',
  11. text:'新增',
  12. listeners: {
  13. click: 'onAdd'
  14. }
  15. },{
  16. xtype:'button',
  17. text:'刷新',
  18. listeners: {
  19. click: 'onRefresh'
  20. }
  21. }],
  22. listeners:{
  23. afterrender:function(p){
  24. p.getViewModel().setData({title:'仓库'});
  25. }
  26. }
  27. })