坑爹啊
接口
http://localhost:8080/api/gdadmin/monitoringData/page/list?monitoringId=3141592653589&monitoringDate=2018-06-13+17:38:19
{
"status": 200,
"data": {
"total": 3,
"rows": [{
"id": "123456789",
"memberId": "1111",
"memberName": "李四",
"monitoringDate": "2018-05-29 14:53:23",
"infoType": "心脏病",
"fromSource": "网页",
"status": "1",
"list": [{
"id": "324",
"defineId": "29f8080ef178425fa2b8131e49918eaf",
"monitoringId": "123456789",
"attrName": "心脏成熟状态描述",
"attrType": "C",
"optType": "1",
"attrObj": "heart_mature_state_desc",
"isEdit": "1",
"isDisplay": "1",
"isRequired": "1",
"dataValue": "6.6"
}, {
"id": "5554",
"defineId": "aa90e7a4042f4f31b1d10871191e1391",
"monitoringId": "123456789",
"attrName": "心脏漏水状态描述",
"attrType": "C",
"optType": "1",
"attrObj": "heart_Water_leakage_state_desc",
"isEdit": "1",
"isDisplay": "1",
"isRequired": "1",
"dataValue": "9.7"
}]
}, {
"id": "3141592653589",
"memberId": "1111",
"memberName": "李四",
"monitoringDate": "2018-05-29 15:01:49",
"infoType": "糖尿病",
"fromSource": "微信",
"status": "1",
"list": [{
"id": "55554",
"defineId": "aa90e7asdfwerrewrwew1e1391",
"monitoringId": "3141592653589",
"attrName": "糖化血红蛋白<7.0%",
"attrType": "C",
"optType": "1",
"attrObj": "heart_Water_leakage_state_desc",
"isEdit": "1",
"isDisplay": "1",
"isRequired": "1",
"dataValue": "10.4"
}, {
"id": "55555",
"defineId": "148822f25a17420f8061e8a86b96fd59",
"monitoringId": "3141592653589",
"attrName": "餐前血糖4.4-7.0mmol/L",
"attrType": "C",
"optType": "1",
"attrObj": "234",
"isEdit": "0",
"isDisplay": "0",
"isRequired": "0",
"dataValue": "1.3"
}, {
"id": "55556",
"defineId": "c3f8db88697142db80cd16c978b5971b",
"monitoringId": "3141592653589",
"attrName": "餐后血糖≤10.0mmol/L",
"attrType": "C",
"optType": "1",
"attrObj": "df",
"dataValue": "10.6"
}, {
"id": "55557",
"defineId": "aa90e7asdfwerrewrwew1e1391",
"monitoringId": "3141592653589",
"attrName": "糖化血红蛋白<7.0%",
"attrType": "C",
"optType": "1",
"attrObj": "heart_Water_leakage_state_desc",
"isEdit": "1",
"isDisplay": "1",
"isRequired": "1",
"dataValue": "8.4"
}, {
"id": "55558",
"defineId": "148822f25a17420f8061e8a86b96fd59",
"monitoringId": "3141592653589",
"attrName": "餐前血糖4.4-7.0mmol/L",
"attrType": "C",
"optType": "1",
"attrObj": "234",
"isEdit": "0",
"isDisplay": "0",
"isRequired": "0",
"dataValue": "8.4"
}, {
"id": "55559",
"defineId": "c3f8db88697142db80cd16c978b5971b",
"monitoringId": "3141592653589",
"attrName": "餐后血糖≤10.0mmol/L",
"attrType": "C",
"optType": "1",
"attrObj": "df",
"dataValue": "8.6"
}]
}, {
"id": "6666666666",
"memberId": "1111",
"memberName": "李四",
"monitoringDate": "2018-05-29 15:01:49",
"infoType": "白血病",
"fromSource": "微信",
"status": "1",
"list": [{
"id": "33",
"defineId": "7f7d64f04092402e8bb5d1415576ddd0",
"monitoringId": "6666666666",
"attrName": "白血一期状态描述",
"attrType": "C",
"optType": "2",
"attrObj": "blood_one_state_desc",
"isEdit": "1",
"isDisplay": "1",
"isRequired": "1",
"dataValue": "9.8"
}, {
"id": "3333",
"defineId": "66666666666666",
"monitoringId": "6666666666",
"attrName": "白血细胞成分",
"attrType": "C",
"optType": "2",
"attrObj": "blood_3_state_desc",
"dataValue": "10.5"
}, {
"id": "444",
"defineId": "937256a78ecb48888853c515eb862b2f",
"monitoringId": "6666666666",
"attrName": "白血二期状态描述",
"attrType": "A",
"optType": "2",
"attrObj": "blood_two_state_desc",
"isEdit": "1",
"isDisplay": "1",
"isRequired": "1",
"dataValue": "8.8"
}]
}]
}
}
获取list并且渲染
getCategory(this.listQuery).then(response => {
let idArray = response.data.rows.map((item)=>{ return item.id });
let idIndex = idArray.indexOf(this.currentMonitoringId);
this.list = response.data.rows[idIndex].list;
})

浙公网安备 33010602011771号