sysFunGrid.addListener("cellclick",function(grid, rowIndex, columnIndex, e){
sysFunGrid.stopEditing();
if(columnIndex=='10'){
var record = grid.getStore().getAt(rowIndex);
var typeA = record.get('type');
var logourl = record.get('logourl');
if(logourl==''){
logourl='/images/button/rycb.gif';
}else{
logourl = logourl;
}
if(typeA!=''){
var functionid = record.get('functionid');
logo(functionid,logourl);
}else{
Ext.Msg.alert("",'只有三级菜单需要配置图标!');
grid.getColumnModel().setEditable(columnIndex, false);
return false;
}
grid.getColumnModel().setEditable(columnIndex, true);
}
});
sysFunGrid.stopEditing();
if(columnIndex=='10'){
var record = grid.getStore().getAt(rowIndex);
var typeA = record.get('type');
var logourl = record.get('logourl');
if(logourl==''){
logourl='/images/button/rycb.gif';
}else{
logourl = logourl;
}
if(typeA!=''){
var functionid = record.get('functionid');
logo(functionid,logourl);
}else{
Ext.Msg.alert("",'只有三级菜单需要配置图标!');
grid.getColumnModel().setEditable(columnIndex, false);
return false;
}
grid.getColumnModel().setEditable(columnIndex, true);
}
});