Home.js 707 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. 控制层,
  3. 所有逻辑代码都在这里写
  4. */
  5. Ext.QuickTips.init();
  6. Ext.define('erp.controller.common.Home', {
  7. extend: 'Ext.app.Controller',
  8. views: ['common.home.Viewport', 'core.form.HolidayDatePicker'],//声明该控制层要用到的view
  9. init: function(){
  10. var me=this;
  11. //每隔一分钟刷新[首页个人知会]
  12. Ext.defer(function(){
  13. var bench_note=Ext.getCmp('bench_note');
  14. if(bench_note){
  15. me.refreshPagingRelease();
  16. }
  17. }, 30000);
  18. this.control({
  19. });
  20. },
  21. refreshPagingRelease:function(){
  22. var me = this;
  23. if(!Ext.getCmp('lock-win') && me.bench){
  24. me.bench._bench_note();
  25. }
  26. setTimeout(function(){
  27. me.refreshPagingRelease();
  28. },30000);
  29. }
  30. });