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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.1.60",
3
+ "version": "0.1.62",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -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 if (this.controlData) {
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) / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
561
+ obj.redWidth = ((currPhase.redclear + ring.sum) / cycle * 100).toFixed(3) + '%'
562
562
  } else {
563
- obj.redWidth = (currPhase.redclear / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
563
+ obj.redWidth = (currPhase.redclear / cycle * 100).toFixed(3) + '%'
564
564
  }
565
- obj.flashgreen = (currPhase.flashgreen / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
566
- obj.yellowWidth = (currPhase.yellow / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
567
- obj.greenWidth = ((split - currPhase.redclear - currPhase.yellow - currPhase.flashgreen) / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
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) { // 忽略相位不显示