openatc-components 0.0.81 → 0.0.84

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.
@@ -179,6 +179,7 @@ export default {
179
179
  this.getIndexStage()
180
180
  }
181
181
  // this.controlDatas = this.controlData
182
+ this.getPedPhasePos()
182
183
  this.handlePatternData()
183
184
  this.handleBarrierHeight()
184
185
  },
@@ -187,10 +188,10 @@ export default {
187
188
  },
188
189
  phaseList: {
189
190
  handler: function (val, oldVal) {
190
- this.handlePatternData()
191
191
  this.getPedPhasePos()
192
192
  this.getBusPos()
193
193
  this.getStage()
194
+ this.handlePatternData()
194
195
  },
195
196
  // 深度观察监听
196
197
  deep: true
@@ -398,9 +398,14 @@ export default {
398
398
  },
399
399
  methods: {
400
400
  refreshShow (showWalk) {
401
- for (let i = 0; i < this.showWalk.length; i++) {
401
+ for (let i = 0; i < 16; i++) {
402
+ if (this.status[i].isshow) {
403
+ this.status[i].isshow = false
404
+ }
405
+ }
406
+ for (let i = 0; i < showWalk.length; i++) {
402
407
  for (let j = 0; j < this.status.length; j++) {
403
- if (this.showWalk[i].name === this.status[j].name) {
408
+ if (showWalk[i].name === this.status[j].name) {
404
409
  this.status[j].isshow = true
405
410
  }
406
411
  }
@@ -303,6 +303,7 @@ export default {
303
303
  statusData: {
304
304
  handler: function (val) {
305
305
  this.initData()
306
+ this.getPedPhasePos()
306
307
  },
307
308
  // 深度观察监听
308
309
  deep: true