项目环境:用的是ssm框架,extjs3.0版本。
第一次点击“业绩加办账户”然后点击新建的时候窗口没有问题
关闭“业绩加办账户”之后,在点开这个功能菜单,再点击新建就出现问题了
只能刷新才能变回正常,然后正常一次,关闭之后再点击还是同样的问题。先贴出一段出问题的代码,如果需要,在回复里面我再贴其他的代码。
我用的是grid和form组合,查询按钮和文本框的代码:
applyAccount.gridManager = new Ext.grid.GridPanel({
//title : '客户经理选取列表',
store : applyAccount.storeManager,
colModel : applyAccount.colModelManager,
bbar : applyAccount.CusBbar,
selModel : applyAccount.CusSelModel,
columnLines : true,//否显示列分割线,默认为false
autoScroll : 'auto',
autoSizeColumns : true,//根据列内容自动适应列宽度
viewConfig : {
forceFit : true
},
loadMask : true,
tbar : [
'客户经理编号:',{
id : 'clientManagerNumP',
xtype : 'textfield'},'-',
{
text : '查询',
iconCls : 'query',
handler : function() {
applyAccount.storeManager.load({
params: { start: 0,
limit: applyAccount.CusPageSize,
level:2,
managerNum:Ext.get('clientManagerNumP').dom.value
},
callback:function(store,resc){
var record2 = applyAccount.grid.getSelectionModel().getSelected();
if(record2){
var records = new Array();
applyAccount.storeManager.each(function(record){
if(record.data.account == record2.data.clientManagerNum){
records.push(record);
}
});
applyAccount.CusSelModel.selectRecords(records,true);
}
}
});
}
}]
});