diff --git a/weapp/package/inspectionInput/inspectionInput.js b/weapp/package/inspectionInput/inspectionInput.js index d880bcb..253e8a4 100644 --- a/weapp/package/inspectionInput/inspectionInput.js +++ b/weapp/package/inspectionInput/inspectionInput.js @@ -501,7 +501,12 @@ Page({ } if (checkItems.isNormal === false) { alarm = true; // 巡检记录异常 - // reportArr[index].alarm = true; // 设备异常 + if(pointDevices.length){ + reportArr[index].alarm = true; // 设备异常 + }else{ + //无设备 + reportArr[index].alarm = true; // + } } }