openatc-components 0.1.92 → 0.1.94
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.
|
@@ -566,6 +566,7 @@ export default {
|
|
|
566
566
|
obj.split = split
|
|
567
567
|
obj.cycle = cycle
|
|
568
568
|
if (ring.sum) {
|
|
569
|
+
obj.sum = ring.sum
|
|
569
570
|
obj.redWidth = ((currPhase.redclear + ring.sum) / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
570
571
|
} else {
|
|
571
572
|
obj.redWidth = (currPhase.redclear / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
@@ -591,13 +592,23 @@ export default {
|
|
|
591
592
|
let nowPattern = this.localPatternList.filter(item => {
|
|
592
593
|
return item.id === this.controlData.patternid
|
|
593
594
|
})[0].rings
|
|
595
|
+
// 信号机忽略相位,更新最新的相位信息
|
|
596
|
+
let filterPattern = []
|
|
597
|
+
for (let i of nowPattern) {
|
|
598
|
+
for (let j of this.controlData.rings) {
|
|
599
|
+
let filterSequence = i.filter(item => j.sequence.includes(item.id))
|
|
600
|
+
if (filterSequence.length > 0) {
|
|
601
|
+
filterPattern.push(filterSequence)
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
594
605
|
for (let rings of this.controlData.rings) {
|
|
595
606
|
for (let sequ of rings.sequence) {
|
|
596
607
|
let split = this.controlData.phase.filter((item) => {
|
|
597
608
|
return item.id === sequ
|
|
598
609
|
})[0].split
|
|
599
|
-
|
|
600
|
-
d.map(r => {
|
|
610
|
+
filterPattern.map(d => {
|
|
611
|
+
return d.map(r => {
|
|
601
612
|
if (r.id === sequ) {
|
|
602
613
|
r.value = split
|
|
603
614
|
}
|
|
@@ -605,7 +616,7 @@ export default {
|
|
|
605
616
|
})
|
|
606
617
|
}
|
|
607
618
|
}
|
|
608
|
-
this.handleOverViewChange(
|
|
619
|
+
this.handleOverViewChange(filterPattern)
|
|
609
620
|
},
|
|
610
621
|
handleBarrierHeight () { // 屏障高度
|
|
611
622
|
if (!this.patternInfo) return
|
|
@@ -796,6 +807,7 @@ export default {
|
|
|
796
807
|
obj.split = split
|
|
797
808
|
obj.cycle = cycle
|
|
798
809
|
if (ring.sum) {
|
|
810
|
+
obj.sum = ring.sum
|
|
799
811
|
obj.redWidth = ((currPhase.redclear + ring.sum) / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
800
812
|
} else {
|
|
801
813
|
obj.redWidth = (currPhase.redclear / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
@@ -1002,6 +1014,7 @@ export default {
|
|
|
1002
1014
|
}
|
|
1003
1015
|
}
|
|
1004
1016
|
obj.split = split
|
|
1017
|
+
obj.cycle = cycle
|
|
1005
1018
|
if (ring.sum) {
|
|
1006
1019
|
obj.sum = ring.sum
|
|
1007
1020
|
obj.redWidth = ((currPhase.redclear + ring.sum) / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
@@ -1340,7 +1353,7 @@ export default {
|
|
|
1340
1353
|
height: 34px;
|
|
1341
1354
|
}
|
|
1342
1355
|
.direction {
|
|
1343
|
-
|
|
1356
|
+
filter: brightness(70%);
|
|
1344
1357
|
}
|
|
1345
1358
|
.mask {
|
|
1346
1359
|
background: rgb(242, 121, 121) !important;
|