openatc-components 0.1.34 → 0.1.37

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.
@@ -10,6 +10,7 @@
10
10
  <PatternStatus
11
11
  :showBarrier="showBarrier"
12
12
  :localPatternList="localPatternList"
13
+ :showCondition="showCondition"
13
14
  :contrloType="contrloType"
14
15
  :stagesChange="stagesChange"
15
16
  :patternList="patternList"
@@ -47,6 +48,10 @@ export default {
47
48
  localPatternList: {
48
49
  type: Array
49
50
  },
51
+ showCondition: {
52
+ type: Boolean,
53
+ default: false
54
+ },
50
55
  patternList: {
51
56
  type: Array
52
57
  },
@@ -135,6 +135,10 @@ export default {
135
135
  controlData: {
136
136
  type: Object
137
137
  },
138
+ showCondition: {
139
+ type: Boolean,
140
+ default: false
141
+ },
138
142
  cycle: {
139
143
  type: Number
140
144
  },
@@ -186,7 +190,7 @@ export default {
186
190
  }
187
191
  // this.controlDatas = this.controlData
188
192
  this.getPedPhasePos()
189
- if (this.controlData.patternid === 109) {
193
+ if ((this.controlData && this.controlData.patternid === 109) || (this.controlData && this.showCondition)) {
190
194
  this.handleTentivePatternData()
191
195
  } else {
192
196
  this.handlePatternData()
@@ -8,6 +8,7 @@
8
8
  :cycles="cycles"
9
9
  :cycle="cycle"
10
10
  :patternList="patternList"
11
+ :showCondition="showCondition"
11
12
  :localPatternList="localPatternList"
12
13
  :phaseList="phaseList"
13
14
  :showBarrier="showBarrier"
@@ -496,6 +497,10 @@ export default {
496
497
  contrloType: {
497
498
  type: String
498
499
  },
500
+ showCondition: {
501
+ type: Boolean,
502
+ default: false
503
+ },
499
504
  localPatternList: {
500
505
  type: Array
501
506
  },