openatc-components 0.4.39 → 0.4.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1170,17 +1170,17 @@ export default {
|
|
|
1170
1170
|
return k.id
|
|
1171
1171
|
})
|
|
1172
1172
|
})
|
|
1173
|
-
let valSplit = val.map(item => {
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
})
|
|
1178
|
-
let splitCycle = valSplit.length > 0 ? valSplit.map(item => {
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
}) : 0
|
|
1183
|
-
let cycle = Math.max(...splitCycle)// 每个环的周期最大值
|
|
1173
|
+
// let valSplit = val.map(item => {
|
|
1174
|
+
// return item.map(val => {
|
|
1175
|
+
// return val.value + (val.sum ? val.sum : 0)
|
|
1176
|
+
// })
|
|
1177
|
+
// })
|
|
1178
|
+
// let splitCycle = valSplit.length > 0 ? valSplit.map(item => {
|
|
1179
|
+
// return item.length > 0 ? item.reduce((a, b) => {
|
|
1180
|
+
// return a + b
|
|
1181
|
+
// }) : 0
|
|
1182
|
+
// }) : 0
|
|
1183
|
+
// let cycle = Math.max(...splitCycle)// 每个环的周期最大值
|
|
1184
1184
|
let newRings = ringsequence.filter(item => item)
|
|
1185
1185
|
let minLength = Math.min(...ringlength)
|
|
1186
1186
|
let resultArrs = [] // 环1分组
|
|
@@ -1313,7 +1313,7 @@ export default {
|
|
|
1313
1313
|
let barrier = this.step2(ringTeams, newPattern)
|
|
1314
1314
|
let barrierLeft = barrier.map(item => item)// 屏障左移显示出人行横道
|
|
1315
1315
|
this.barrierList = barrierLeft.map(j => {
|
|
1316
|
-
return (j / (this.max ? this.max :
|
|
1316
|
+
return (j / (this.max ? this.max : this.newCycle) * 100) + '%'
|
|
1317
1317
|
})
|
|
1318
1318
|
// this.barrierList.unshift(0)
|
|
1319
1319
|
}
|