| | |
| | | var dataList = new Array();
|
| | | //遍历同类型设备集合,根据id查询数据后保存
|
| | | for (var i = 0; i < deviceList.length; i++) {
|
| | | $.post("./cgi-bin/detail/query-data", JSON.stringify({id: deviceList[i].id}), function (data, status) {
|
| | | if ("success" == status) {
|
| | | console.log(data);
|
| | | dataList.push(data);
|
| | | }
|
| | | }, "json");
|
| | | var cur = deviceList[i];
|
| | | if(cur.vld != 1){
|
| | | $.post("./cgi-bin/detail/query-data", JSON.stringify({id: deviceList[i].id}), function (data, status) {
|
| | | if ("success" == status) {
|
| | | console.log(data);
|
| | | dataList.push(data);
|
| | | }
|
| | | }, "json");
|
| | | }
|
| | | }
|
| | | if (dataList != null && dataList.length > 0) {
|
| | | renderInfo(dataList);
|