lgq
2025-11-18 956f10584a109456c1bb8c72c9a4e02494812c03
local/www/js/page/detail-yg-hw-ls.js
@@ -27,12 +27,15 @@
    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);