openatc-components 0.1.53 → 0.1.54

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.
@@ -190,12 +190,15 @@ export default {
190
190
  }
191
191
  // this.controlDatas = this.controlData
192
192
  this.getPedPhasePos()
193
- if ((this.controlData && this.controlData.patternid === 109) || (this.controlData && this.showCondition) || (this.controlData && this.localPatternList.length === 0)) {
194
- this.handleTentivePatternData()
195
- } else if (this.controlData) {
196
- this.handlePatternData()
193
+ if (this.localPatternList) {
194
+ let idPattern = this.localPatternList.filter(item => item.id === this.controlData.patternid)
195
+ if (idPattern.length === 0 || (this.controlData && this.showCondition)) {
196
+ this.handleTentivePatternData()
197
+ } else if (this.controlData) {
198
+ this.handlePatternData()
199
+ }
200
+ this.handleBarrierHeight()
197
201
  }
198
- this.handleBarrierHeight()
199
202
  },
200
203
  // 深度观察监听
201
204
  deep: true
@@ -265,12 +268,13 @@ export default {
265
268
  },
266
269
  created () {
267
270
  this.globalParamModel = this.$store.getters.globalParamModel
271
+ let idPattern = this.localPatternList.filter(item => item.id === this.controlData.patternid)
268
272
  if (this.patternStatusList && this.newCycle && !this.controlData) {
269
273
  setTimeout(() => {
270
274
  this.handleCurrentChange(this.patternStatusList)
271
275
  this.handleBarrierHeight()
272
276
  }, 400)
273
- } else if ((this.controlData && this.controlData.patternid === 109) || (this.controlData && this.showCondition) || (this.controlData && this.localPatternList.length === 0)) {
277
+ } else if (idPattern.length === 0 || (this.controlData && this.showCondition) || (this.controlData && this.localPatternList.length === 0)) {
274
278
  this.handleTentivePatternData()
275
279
  } else {
276
280
  this.handlePatternData()