日期:2014-05-16 浏览次数:20364 次
var rootNode={
text:'可选择的指标对象',
expanded:true,
children:[{
text:'宽带业务指标分析',
children:[{
text:'工单处理及时率',
leaf:true
},{
text:'ADSL故障申告率',
leaf:true
},{
text:'工单处理超时率',
leaf:true
}]
},{
text:'VPN业务指标分析'
},{
text:'我的E家保障情况',
leaf:true
},{
text:'重复申告率',
leaf:true
}]
};
var staticTree={
xtype : 'treepanel',
animate : true,
id : 'staticTree',
autoScroll: true,
enableDD : true,
root : rootNode
};
var mytree = new Ext.Window({
height : 500,
width : 400,
layout : 'fit',
border : false,
title : '我的树形',
items : staticTree
});
mytree.show();
var tabs = new Ext.TabPanel({
activeTab: 0,
frame:true,
items:[{
title: '指标考核',
layout:'border',
width:'auto',
/* listeners:{
activate:function(){alert('a')}
},*/
items:[{
region:'center',
title:'center'
},{
region:'west',
title:'west',
split:true,
width:300,
maxWidth:300,
items:staticTree
}]
&nbs