Employee.js 658 B

123456789101112131415161718192021222324252627
  1. Ext.define('saas.view.document.other.Employee', {
  2. extend: 'saas.view.document.kind.Kind',
  3. xtype: 'other-employee',
  4. autoScroll: true,
  5. layout:'fit',
  6. _openUrl:'/api/document/employee/open',
  7. _closeUrl:'/api/document/employee/close',
  8. defaultType:'employee',
  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. })