ソースを参照

光钎测温详情界面数据修改-提交

lxh 1 週間 前
コミット
e9c9e4c32a

+ 2 - 1
src/views/vent/monitorManager/deviceMonitor/components/device/modal/fiber.modal.hlg.vue

@@ -199,7 +199,8 @@
             // activeDeviceID.value = item.deviceID;
             posList.length = 0;
             posList1.length = 0;
-            let counts = Math.ceil((Object.keys(item.readData).length - 2) / 5);
+            // let counts = Math.ceil((Object.keys(item.readData).length - 2) / 5);
+            let counts = Math.ceil((Object.keys(item.readData).filter(v=>v.indexOf('Section')!=-1).length) / 5);
             for (let i = 0; i < counts; i++) {
               posList.push({
                 Section_MaxTemp: item.readData[`Section${i + 1}_MaxTemp`],