handler : function() {
var countType=Ext.get('countType').dom.value;
if (countType == 'xxxx') {
Ext.getCmp('workload_count-TabPanel').layout
.setActiveItem(personWorkloadpanel);
// store.removeAll();//这里加了程序就不往下执行了
store.load({
params : {
countType : 'personWorkloadCount',
startTime : Ext.get('stimeb').dom.value,
endTime : Ext.get('stimee').dom.value
},
callback : function(r, options, success) {
chart.setHeight(store.getTotalCount()* 30);
}
});
} else {
Ext.getCmp('workload_count-TabPanel').layout
.setActiveItem('otherPanel');
}
}
ext 不能加store.removeall
最新推荐文章于 2020-01-05 20:59:36 发布
本文介绍如何使用 ExtJS 框架中的 TabPanel 控件进行面板切换,并根据不同条件加载相应数据。具体实现包括根据 countType 的值来激活不同的面板,并通过 store 对象加载数据到图表中。
2167

被折叠的 条评论
为什么被折叠?



