81,092
社区成员
发帖
与我相关
我的任务
分享
dg=$('#dg').datagrid({
method: "get",
url:ctx+' ,
pagination:true, //显示分页工具栏
rownumbers:true, //显示行号列
singleSelect:true,
fit:true,
columns:[[
{field:'message',title:'校验结果',width:100,formatter:function(value,row,index){
if(value == 0){
return '通过';
}
if(value == 1){
return '失败';
}
}},
{field:'reState',title:'sss',width:100,formatter:function(value,row,index){
alert(index)
if(value == 1){
return 'xxx';
}
if(parseInt(value) == 2){
return 'xxx';
}
}},
{field:'reState',title:'状态',width:100,formatter:formatterIsu(value,row,index){
if(value == 0){
return '未结清';
}
if(value == 1){
return '已结清';
}
if(value == 2){
return '账单核对失败';
}
if(value == 3){
return '结清中';
}
if(value == 4){
return '付款失败';
}
}},
]],
loadMsg:'嗖 ----正在火速加载中 -------------',
toolbar:'#tb'
});
{
"total":1,
"rows":[
{
"id":17,
"message":"0",
"reSerial":"200100000017447-1502866167622",
"reMode":1,
"reState":4,
}
]
}
{
"total":1,
"rows":[
{
"id":17,
"message":"0",
"reSerial":"200100000017447-1502866167622",
"reMode":1,
"reModeName":"",
"reState":4,
"reStateName":""
}
]
}
dg=$('#dg').datagrid({
method: "get",
url:ctx+' ,
pagination:true, //显示分页工具栏
rownumbers:true, //显示行号列
singleSelect:true,
fit:true,
columns:[[
{field:'message',title:'校验结果',width:100,formatter:function(value,row,index){
if(value == 0){
return '通过';
}
if(value == 1){
return '失败';
}
}},
{field:'reModeName',title:'sss',width:100,formatter:function(value,row,index){
alert(index)
if(value == 1){
return 'xxx';
}
if(parseInt(value) == 2){
return 'xxx';
}
}},
{field:'reStateName',title:'状态',width:100,formatter:formatterIsu(value,row,index){
if(value == 0){
return '未结清';
}
if(value == 1){
return '已结清';
}
if(value == 2){
return '账单核对失败';
}
if(value == 3){
return '结清中';
}
if(value == 4){
return '付款失败';
}
}},
]],
loadMsg:'嗖 ----正在火速加载中 -------------',
toolbar:'#tb'
});