DataListController.js 690 B

12345678910111213141516171819202122232425262728
  1. Ext.define('saas.view.sys.account.DataListController', {
  2. extend: 'saas.view.core.base.BasePanelController',
  3. alias: 'controller.sys-account-datalist',
  4. init: function (form) {
  5. var me = this;
  6. this.control({
  7. });
  8. },
  9. onAdd:function(b){
  10. var form = this.view;
  11. this.dialog = form.add({
  12. xtype: 'sys-account-addwindow',
  13. bind: {
  14. title: '新增账户资料'
  15. },
  16. _parent:form,
  17. record:null,
  18. session: true
  19. });
  20. this.dialog.show();
  21. },
  22. onRefresh:function(){
  23. var me = this;
  24. me.view.items.items[0].store.load();
  25. },
  26. });