openatc-components 0.0.37 → 0.0.39-hotfix

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.
@@ -288,6 +288,13 @@ export default {
288
288
  this.init()
289
289
  }
290
290
  }
291
+ },
292
+ agentId: {
293
+ handler: function (val1, val2) {
294
+ if (val1 !== val2) {
295
+ this.init()
296
+ }
297
+ }
291
298
  }
292
299
  },
293
300
  data () {
@@ -417,6 +424,15 @@ export default {
417
424
  }))
418
425
  this.comdireBusPhaseData = JSON.parse(JSON.stringify(comdireBusPhaseData))
419
426
  }
427
+ if (this.mainType === '103') {
428
+ if (this.LanePhaseData.length) {
429
+ const LanePhaseData = this.LanePhaseData.map(data => ({
430
+ ...data,
431
+ color: this.phaseControlColorMap.get(Control)
432
+ }))
433
+ this.LanePhaseData = JSON.parse(JSON.stringify(LanePhaseData))
434
+ }
435
+ }
420
436
  },
421
437
  createPhaseStatusMap () {
422
438
  // 生成相位id和相位状态对应数据结构
@@ -63,7 +63,8 @@ export default {
63
63
  type: Boolean
64
64
  },
65
65
  tentative: {
66
- type: Boolean
66
+ type: Boolean,
67
+ default: false
67
68
  },
68
69
  cycle: {
69
70
  type: Number