- 注册时间
- 2012-12-13
- 最后登录
- 2013-8-22
- 阅读权限
- 10
- 积分
- 40
- 精华
- 0
- 帖子
- 11

|
我界面上有datagrid1和datagrid2两个控件。在domready时对两个grid进行数据加载,如果放上tabs控件后第二个数据会加载不成功,删除tabs控件后就正常 如附件
急急急。。。
var str = [{ "total": 0, "data": [{ "billno": "555", "billdate": "2013-1-17 0:00:00", "flowstatus": "未提交", "deptid_show": "总经理办公室", "deptid": "3", "uid_show": "仇玉峰", "uid": "3", "currencyid_show": "日元", "currencyid": "3", "exchangerate": "55.000000", "memo": "", "ver": "1403157", "pk": "7"}] }, { "total": 0, "data": [{ "billdetailid": "2", "billid": "7", "checkindate": "2013-1-24 0:00:00", "checkoutdate": "2013-1-31 0:00:00", "checkinaddress_show": "江苏省", "checkinaddress": "47", "days": "5", "peoplenumber": "6", "billmoney": "5.00"}] }, { "total": 0, "data": [{ "billdetailid": "6", "billid": "7", "leavedate": "2013-1-23 0:00:00", "arrivedate": "2013-1-17 0:00:00", "leaveaddress_show": "江苏省", "leaveaddress": "47", "arriveaddress_show": "江苏省", "arriveaddress": "58", "traffictool_show": "", "traffictool": "", "billmoney": "55.00", "deptid_show": "人力资源部", "deptid": "4", "costtypeid_show": "销售费用", "costtypeid": "2", "memo": "", "sourcebillno": "", "sourceprogramid": "", "sourcebillid": "", "sourcebilldetailid": ""}]}]
$(function() {
var grid1 = mini.get("datagrid1");
var grid2 = mini.get("datagrid2");
grid1.loadData(str[1].data);
grid2.loadData(str[2].data);
})
|
|