- 注册时间
- 2012-6-25
- 最后登录
- 2018-12-27
- 阅读权限
- 10
- 积分
- 151
- 精华
- 0
- 帖子
- 35
|
felt 发表于 2018-11-27 11:30
直接用url加载,表格上设置
totalField="totalCount"
dataField="list"
由于服务端返回的json中,实际数据是在data的子节点中,我通过设置totalField="data.totalCount",dataField="data.list"便可以成功展现数据,但是我当在使用combox控件时,采用valueField="data.id" textField="data.alias" 方式设置,发现无法绑定数据,想请教一下,有什么解决办法么。我combox控件获取到的json数据格式如下:
{
"appSeqNo": "",
"data": [
{
"id": "7",
"status": 1,
"createTime": "2018-11-27 18:55:55",
"updateTime": null,
"sort": null,
"remark": null,
"alias": "lemur-gen",
"author": "lihangyu",
"userId": 0,
"codePackage": "cn.afterturn.gen.modular.code",
"xmlPackage": "MET-INF.mapping",
"jsPackage": "static.modular.code",
"htmlPackage": "WEB-INF.view.modular.code",
"localPath": "D:\\mySpace\\lemur\\lemur-generation\\gen-admin\\src\\main",
"copyright": null,
"encoded": "UTF-8"
},
{
"id": "8",
"status": 1,
"createTime": "2018-11-27 18:55:55",
"updateTime": null,
"sort": null,
"remark": null,
"alias": "review-rest",
"author": "JueYue",
"userId": 1,
"codePackage": "cn.allisone.review.rest.modular.review",
"xmlPackage": "",
"jsPackage": "",
"htmlPackage": "",
"localPath": "",
"copyright": null,
"encoded": "UTF-8"
}
],
"gencode": "SUCCEED",
"serSeqNo": "",
"appId": "",
"sign": "",
"message": "操作成功",
"isSucceed": true,
"timestamp": "1543369562563"
} |
|