json格式
{
"total": 3,
"rows": [
{
"id": null,
"in_number": 3,
"use_count": 3,
"nsVo": {
"id": 0,
"ns_name": "疯子养老院",
"ns_address": "建军路13号",
"contact_name": "何俊",
"contact_phone": "13244596321",
"manager_name": "莉莉",
"province": "直辖市",
"city": "天津市",
"county": "和平区"
},
"devicesVo": {
"devices_name": "水疗马桶",
"provider": null,
"maintain_name": null,
"com_address": null,
"in_address": null,
"maintain_phone": null,
"use_count": null,
"createtime": null,
"mendtime": null
}
},
{
"id": null,
"in_number": 5,
"use_count": 5,
"nsVo": {
"id": 0,
"ns_name": "疯子养老院",
"ns_address": "建军路13号",
"contact_name": "何俊",
"contact_phone": "13244596321",
"manager_name": "莉莉",
"province": "直辖市",
"city": "天津市",
"county": "和平区"
},
"devicesVo": {
"devices_name": "多功能马桶",
"provider": null,
"maintain_name": null,
"com_address": null,
"in_address": null,
"maintain_phone": null,
"use_count": null,
"createtime": null,
"mendtime": null
}
},
{
"id": null,
"in_number": 2,
"use_count": 1,
"nsVo": {
"id": 0,
"ns_name": "疯子养老院",
"ns_address": "建军路13号",
"contact_name": "何俊",
"contact_phone": "13244596321",
"manager_name": "莉莉",
"province": "直辖市",
"city": "天津市",
"county": "和平区"
},
"devicesVo": {
"devices_name": "浴缸",
"provider": null,
"maintain_name": null,
"com_address": null,
"in_address": null,
"maintain_phone": null,
"use_count": null,
"createtime": null,
"mendtime": null
}
}
]
}
获取devices_name
var columnsDev = [ [ {
field : 'ck',
checkbox : true
},{
field : 'devicesVo.devices_name',
title : '设备名称',
width : 80,
align : 'center',
formatter : function (value, rec) {
return rec.devicesVo['devices_name'];
}
}, {
field : 'in_number',
title : '安装设备数量',
width : 50,
align : 'center'
}, {
field : 'use_count',
title : '设备使用人数',
width : 50,
align : 'center'
}]]