|
|
@ -75,7 +75,7 @@
|
|
|
|
<u-collapse-item
|
|
|
|
<u-collapse-item
|
|
|
|
name="index"
|
|
|
|
name="index"
|
|
|
|
:title="envData.environmentName"
|
|
|
|
:title="envData.environmentName"
|
|
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<view class="flex flex-center">
|
|
|
|
<view class="flex flex-center">
|
|
|
|
<table border="1" class="env-table" >
|
|
|
|
<table border="1" class="env-table" >
|
|
|
@ -113,15 +113,15 @@
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</table>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
</u-collapse-item>
|
|
|
|
</u-collapse-item>
|
|
|
|
</u-collapse>
|
|
|
|
</u-collapse>
|
|
|
|
|
|
|
|
|
|
|
|
</uni-section>
|
|
|
|
</uni-section>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
<view class="station-content">
|
|
|
|
<view class="station-content">
|
|
|
|
|
|
|
|
|
|
|
|
<uni-section title="采集器" type="line">
|
|
|
|
<uni-section title="采集器" type="line">
|
|
|
|
<template v-slot:right >
|
|
|
|
<template v-slot:right >
|
|
|
|
<view class="second-status" :class="allOffLineState ? 'z4' : 'z1'" v-show="showSecond" @click="handleGetStatus">
|
|
|
|
<view class="second-status" :class="allOffLineState ? 'z4' : 'z1'" v-show="showSecond" @click="handleGetStatus">
|
|
|
@ -404,17 +404,25 @@ export default {
|
|
|
|
handleFilterSecondArr(arr) {
|
|
|
|
handleFilterSecondArr(arr) {
|
|
|
|
const item = arr[0]
|
|
|
|
const item = arr[0]
|
|
|
|
let maxNum = 1
|
|
|
|
let maxNum = 1
|
|
|
|
|
|
|
|
let itemNum = 1
|
|
|
|
for (let i = 1; i<= 50; i++) {
|
|
|
|
for (let i = 1; i<= 50; i++) {
|
|
|
|
if (!item['dayEnergy' + i]) {
|
|
|
|
if (!item['dayEnergy' + i]) {
|
|
|
|
maxNum = i-1
|
|
|
|
maxNum = i-1
|
|
|
|
break
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for (let i = 25; i> 0; i--) {
|
|
|
|
|
|
|
|
if (item['electricQuantity1_' + i]) {
|
|
|
|
|
|
|
|
itemNum = i
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// this.itemNum = eightNumArr.includes(this.selectStations[0]) ? 8 : sixteenNumArr.includes(this.selectStations[1]) ? 16 : 12
|
|
|
|
|
|
|
|
this.itemNum = itemNum
|
|
|
|
// width: 183px;
|
|
|
|
// width: 183px;
|
|
|
|
const eightNumArr = ['1052758023'] // 塞纳8个组串
|
|
|
|
const eightNumArr = ['1052758023'] // 塞纳8个组串
|
|
|
|
const sixteenNumArr = ['30'] // 16个组串
|
|
|
|
const sixteenNumArr = ['30'] // 16个组串
|
|
|
|
this.itemNum = eightNumArr.includes(this.selectStations[0]) ? 8 : sixteenNumArr.includes(this.selectStations[1]) ? 16 : 12
|
|
|
|
// this.itemNum = eightNumArr.includes(this.selectStations[0]) ? 8 : sixteenNumArr.includes(this.selectStations[1]) ? 16 : 12
|
|
|
|
this.secondList = Array.from(Array(maxNum)).map((v, inde) => {
|
|
|
|
this.secondList = Array.from(Array(maxNum)).map((v, inde) => {
|
|
|
|
const index = inde + 1
|
|
|
|
const index = inde + 1
|
|
|
|
const cList = Array.from(Array(this.itemNum)).map((cv, cIndex) => {
|
|
|
|
const cList = Array.from(Array(this.itemNum)).map((cv, cIndex) => {
|
|
|
|