easyUi初始化
$("#tt2").datagrid({
url: _ctx + '/energyefficiency/queryAllEnergyEfficiency.do',
pagination: true,
rownumbers: true,
fitColumns: true,
pageSize: DEFAULT_PAGE_SIZE,
pageList: DEFAULT_PAGE_LIST,
pageNumber: 1,
singleSelect: false,
fit: true,
loadMsg: "正在加载...",
rowStyler:function(index,row){
if ((index+1)%3==0){
return 'background-color:#F4F4F4;';
}else{
return 'background-color:#fff;';
}
},
queryParams: {
indexName: $.trim($("#index_name").textbox("getValue")),
indexType: $.trim($("#index_type").textbox("getValue")),
deptPath:deptPath
},
onLoadError: function () {
jError("查询失败", {
VerticalPosition: 'center',
HorizontalPosition: 'center',