|
@@ -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`],
|