i18n.js 630 B

12345678910111213141516171819202122
  1. var basePath = 'http://192.168.0.181:8560/api/';
  2. //basePath = 'http://192.168.0.181:8570/api/';
  3. basePath = 'http://192.168.253.48:8560/api/';
  4. function openTab(xtype, title, id, config) {
  5. var mainTab = Ext.getCmp('main-tab-panel');
  6. var panel = Ext.getCmp(id);
  7. if(!panel) {
  8. panel = Ext.create('saas.view.core.tab.Panel', {
  9. id: id,
  10. title: title,
  11. viewType: xtype,
  12. viewConfig: config
  13. });
  14. Ext.suspendLayouts();
  15. mainTab.setActiveTab(mainTab.add(panel));
  16. Ext.resumeLayouts(true);
  17. }else {
  18. mainTab.setActiveTab(panel);
  19. }
  20. }