Warehouse.js 681 B

12345678910111213141516171819202122232425262728
  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. caller:'Warehouse',
  7. _openUrl:'/api/document/warehouse/open',
  8. _closeUrl:'/api/document/warehouse/close',
  9. defaultType:'warehouse',
  10. tbar: ['->',{
  11. xtype:'button',
  12. text:'新增',
  13. listeners: {
  14. click: 'onAdd'
  15. }
  16. },{
  17. xtype:'button',
  18. text:'刷新',
  19. listeners: {
  20. click: 'onRefresh'
  21. }
  22. }],
  23. listeners:{
  24. afterrender:function(p){
  25. p.getViewModel().setData({title:'仓库'});
  26. }
  27. }
  28. })