userGrid=$("#userGrid").ligerGrid({ method:'GET', height:580, width:'100%', usePager:true, columns:[ {display:Resource.userName,name:"userName",align:'left',width:100,minWidth:60}, {display:Resource.email,name:"email",align:'left',width:250,minWidth:60}, {display:Resource.deparentment,name:"deparentment",align:'left',width:100,minWidth:60}, //{display:Resource.password,name:"password",align:'left',width:100,minWidth:60}, {display:Resource.userType,name:"privilege",align:'left',width:100,minWidth:60, render:function(item){ varprivilege=item.privilege; if(privilege=='1'){ returnResource.tempUser; }elseif(privilege=='2'){ returnResource.commonUser; }elseif(privilege=='4'){ returnResource.advancedUser; }elseif(privilege=='8'){ returnResource.knowledgeManager; }elseif(privilege=='16'){ returnResource.administrator; } } }, {display:Resource.accountState,name:"accountState",align:'left',width:100,minWidth:60, render:function(item){ varaccountState=item.accountState; if(accountState=='1'){ returnResource.normal; }elseif(accountState=='2'){ returnResource.unactive; }elseif(accountState=='4'){ returnResource.stopped; } } }, {display:Resource.accountExpireDate,name:"accountExpireDate",align:'left',width:100,minWidth:60} ], url:$('#initPath').val()+'/UserController.do?method=getUserPaging&privilege=-1',//必须这样,否则不能传page等参数 pageSize:10,rownumbers:true, |