EasyUi datagrid取值问题

GreatEvan 发布于 2013/08/06 10:10
阅读 2K+
收藏 0

有两张关联的表,通过JSON输出结果

{"rows":[{"id":1,"createDate":null,"creatorId":null,"modifyDate":null,"modifierId":null,"enabled":true,"pbsOrganize":{"id":1,"createDate":null,"creatorId":null,"modifyDate":null,"modifierId":null,"enabled":true,"parent":null,"areaId":1,"name":"系统构建单位","ipAddress":null,"validateIp":null,"unitId":null,"show":null,"sort":null,"address":null},"name":"aaa","amount":"1","usefulness":"1313","departmentId":null,"responsible":null,"mobilePhone":null,"protectionwork":null}]}

一般一一对应的字段取法是这样的
<data-options="field:'name',width:150">名称</th>

但如果是对象属性怎么取

<data-options="field:'pbsOrganize.name',width:150">名称</th>

这样好像取不出来,正确的应该怎么样的?

我想象中正确取值应该是“系统构建单”可结果为空

加载中
0
GuoYJ
GuoYJ
你可以在后台重新组装一个 JavaBean 包含你要的所有字段。 easyui的field 不支持.xx
0
黑牙菜菜
黑牙菜菜
formater:function(....)
返回顶部
顶部