|
|
|
@ -404,17 +404,25 @@ export default {
|
|
|
|
|
handleFilterSecondArr(arr) {
|
|
|
|
|
const item = arr[0]
|
|
|
|
|
let maxNum = 1
|
|
|
|
|
let itemNum = 1
|
|
|
|
|
for (let i = 1; i<= 50; i++) {
|
|
|
|
|
if (!item['dayEnergy' + i]) {
|
|
|
|
|
maxNum = i-1
|
|
|
|
|
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;
|
|
|
|
|
const eightNumArr = ['1052758023'] // 塞纳8个组串
|
|
|
|
|
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) => {
|
|
|
|
|
const index = inde + 1
|
|
|
|
|
const cList = Array.from(Array(this.itemNum)).map((cv, cIndex) => {
|
|
|
|
|