- 注册时间
- 2013-12-21
- 最后登录
- 2013-12-23
- 阅读权限
- 10
- 积分
- 9
- 精华
- 0
- 帖子
- 1

|
js代码
// 显示工单Win
function showOrderWin() {
var orderWin = mini.get("orderWin");
// 初始化工单Grid
var ordergrid = mini.get("ordergrid");
var data2 = mini.decode(data);
ordergrid.setData(data2 );
ordergrid.load();
// 显示工单Win
orderWin.show();
}
后台Struts1返回json数据方法
public ActionForward queryOrder(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) throws IOException {
try {
PageModel pm = orderService.queryOrder();
orderList = pm.getList(); //这里都能有数据
total = pm.getTotalRecords();
net.sf.json.JSONObject jsonObj = new net.sf.json.JSONObject();
net.sf.json.JSONArray jsonArray = net.sf.json.JSONArray.fromObject(orderList); /
jsonObj.put("total", orderList.size());
jsonObj.put("data", jsonArray);
response.getWriter().print(jsonObj.toString());
response.getWriter().flush();
response.getWriter().close();
} catch (Exception e) {
logger.error(e.getMessage());
}
return null;
}
页面js也没报错,窗口中表单就是没有数据,这是什么原因?(我是一个miniui的初学者,还请各位大神赐教,多谢!)
|
|