大神帮看看啊,使用easyui中的datagrid请求后台数据已经响应了,页面上数据却显示不出来
前台:
$("#grid").datagrid({
fit : true,
border : true,
rownumbers : true,
striped : true,
toolbar : [ {
id : 'diaodu',
text : '人工调度',
iconCls : 'icon-edit',
handler : function() {
// 弹出窗口
$("#diaoduWindow").window('open');
}
} ],
url : "${pageContext.request.contextPath}/notice_listNoStaffNoticeBill.action",
columns : [ [ {
field : 'id',
title : '编号',
width : 100
}, {
field : 'delegater',
title : '联系人',
width : 100
}, {
field : 'telephone',
title : '电话',
width : 100
}, {
field : 'pickaddress',
title : '取件地址',
width : 100
}, {
field : 'product',
title : '商品名称',
width : 100
}, {
field : 'pickdate',
title : '取件日期',
width : 100,
formatter : function(data, row, index) {
return data.replace("T", " ");
}
} ] ]
});
后台:
public String listNoStaffNoticeBill() throws IOException{
List<Noticebill> list = noticeService.findNoStaffNoticeBill();
String[] excludes = new String[]{"workbills","user","staff","customerId",
"customerName","arrivecity","num","weight","volume","remark","ordertype"};
this.writeList2Json(list, excludes);
return null;
}
通过开发者工具可以看到响应回来的数据

响应载荷哪里是
[{"delegater":"Lucy","id":"4028854f61c03bc10161c0489afc0000","pickaddress":"容县中学","pickdate":{"date":1,"day":4,"hours":0,"minutes":0,"month":1,"nanos":0,"seconds":0,"time":1517414400000,"timezoneOffset":-480,"year":118},"product":"电脑","telephone":"1"}]
$("#grid").datagrid({
fit : true,
border : true,
rownumbers : true,
striped : true,
toolbar : [ {
id : 'diaodu',
text : '人工调度',
iconCls : 'icon-edit',
handler : function() {
// 弹出窗口
$("#diaoduWindow").window('open');
}
} ],
url : "${pageContext.request.contextPath}/notice_listNoStaffNoticeBill.action",
columns : [ [ {
field : 'id',
title : '编号',
width : 100
}, {
field : 'delegater',
title : '联系人',
width : 100
}, {
field : 'telephone',
title : '电话',
width : 100
}, {
field : 'pickaddress',
title : '取件地址',
width : 100
}, {
field : 'product',
title : '商品名称',
width : 100
}, {
field : 'pickdate',
title : '取件日期',
width : 100,
formatter : function(data, row, index) {
return data.replace("T", " ");
}
} ] ]
});
后台:
public String listNoStaffNoticeBill() throws IOException{
List<Noticebill> list = noticeService.findNoStaffNoticeBill();
String[] excludes = new String[]{"workbills","user","staff","customerId",
"customerName","arrivecity","num","weight","volume","remark","ordertype"};
this.writeList2Json(list, excludes);
return null;
}
通过开发者工具可以看到响应回来的数据

响应载荷哪里是
[{"delegater":"Lucy","id":"4028854f61c03bc10161c0489afc0000","pickaddress":"容县中学","pickdate":{"date":1,"day":4,"hours":0,"minutes":0,"month":1,"nanos":0,"seconds":0,"time":1517414400000,"timezoneOffset":-480,"year":118},"product":"电脑","telephone":"1"}]
...全文
相关推荐
easyui datagrid 数据导出到Excel
两种方法将easyui datagrid 中的数据导出到Excel中,均以验证可以正常使用
easyUI页面datagrid动态列和form字段动态添加
easyUI页面datagrid动态列和form字段动态添加;项目开发时用到的,废了不少事,大概总了一下,现在发出来共享给想我一样的要用到的菜鸟们,谢谢
JS EasyUI DataGrid动态加载数据
JS EasyUI DataGrid动态加载数据
easyui datagrid 行编辑中combogrid和combobox显示问题
修改上一个资源版本中结束编辑时combobox显示问题. 1、类型为combogrid时每行的参数不同查询返回对应的数据结果。 2、类型为combobox时,输入框显示图标按钮,实现对应的事件。 3、解决类型为combobox显示为value而不是text问题
EasyUI的DataGrid每行数据添加操作按钮的实现代码
今天做项目的时候,想在easyui的datagrid每一列数据后边都加上一个操作按钮,怎么实现此功能呢?下面小编给大家带来了EasyUI的DataGrid每行数据添加操作按钮的实现代码,需要的朋友参考下吧


