openatc-components 0.1.60 → 0.1.62
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.
package/package.json
CHANGED
|
@@ -194,7 +194,7 @@ export default {
|
|
|
194
194
|
let idPattern = this.localPatternList.filter(item => item.id === this.controlData.patternid)
|
|
195
195
|
if (idPattern.length === 0 || (this.controlData && this.showCondition)) {
|
|
196
196
|
this.handleTentivePatternData()
|
|
197
|
-
} else
|
|
197
|
+
} else {
|
|
198
198
|
this.handlePatternData()
|
|
199
199
|
}
|
|
200
200
|
this.handleBarrierHeight()
|
|
@@ -558,13 +558,13 @@ export default {
|
|
|
558
558
|
}
|
|
559
559
|
obj.split = split
|
|
560
560
|
if (ring.sum) {
|
|
561
|
-
obj.redWidth = ((currPhase.redclear + ring.sum) /
|
|
561
|
+
obj.redWidth = ((currPhase.redclear + ring.sum) / cycle * 100).toFixed(3) + '%'
|
|
562
562
|
} else {
|
|
563
|
-
obj.redWidth = (currPhase.redclear /
|
|
563
|
+
obj.redWidth = (currPhase.redclear / cycle * 100).toFixed(3) + '%'
|
|
564
564
|
}
|
|
565
|
-
obj.flashgreen = (currPhase.flashgreen /
|
|
566
|
-
obj.yellowWidth = (currPhase.yellow /
|
|
567
|
-
obj.greenWidth = ((split - currPhase.redclear - currPhase.yellow - currPhase.flashgreen) /
|
|
565
|
+
obj.flashgreen = (currPhase.flashgreen / cycle * 100).toFixed(3) + '%'
|
|
566
|
+
obj.yellowWidth = (currPhase.yellow / cycle * 100).toFixed(3) + '%'
|
|
567
|
+
obj.greenWidth = ((split - currPhase.redclear - currPhase.yellow - currPhase.flashgreen) / cycle * 100).toFixed(3) + '%'
|
|
568
568
|
// 忽略相位不显示
|
|
569
569
|
// let mode = ring.mode
|
|
570
570
|
// if (mode !== 7) { // 忽略相位不显示
|