| 12345678910111213141516171819202122 |
- var basePath = 'http://192.168.0.181:8560/api/';
- //basePath = 'http://192.168.0.181:8570/api/';
- basePath = 'http://192.168.253.48:8560/api/';
- function openTab(xtype, title, id, config) {
- var mainTab = Ext.getCmp('main-tab-panel');
- var panel = Ext.getCmp(id);
- if(!panel) {
- panel = Ext.create('saas.view.core.tab.Panel', {
- id: id,
- title: title,
- viewType: xtype,
- viewConfig: config
- });
- Ext.suspendLayouts();
- mainTab.setActiveTab(mainTab.add(panel));
- Ext.resumeLayouts(true);
- }else {
- mainTab.setActiveTab(panel);
- }
- }
|