openatc-components 0.1.47 → 0.1.48

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.
@@ -390,7 +390,7 @@ export default {
390
390
  // ele.direction.forEach((dir, index) => {
391
391
  // 车道相位
392
392
  this.busPhaseData.push({
393
- phaseid: ele.id, // 相位id,用于对应相位状态
393
+ phaseid: ele.id, // 相位did,用于对应相位状态
394
394
  // id: dir, // 接口返回的dir字段,对应前端定义的相位方向id,唯一标识
395
395
  // name: this.PhaseDataModel.getBusPhasePos(dir).name,
396
396
  controltype: ele.controltype
@@ -574,6 +574,20 @@ export default {
574
574
  let nowPattern = this.localPatternList.filter(item => {
575
575
  return item.id === this.controlData.patternid
576
576
  })[0].rings
577
+ for (let rings of this.controlData.rings) {
578
+ for (let sequ of rings.sequence) {
579
+ let split = this.controlData.phase.filter((item) => {
580
+ return item.id === sequ
581
+ })[0].split
582
+ nowPattern.map(d => {
583
+ d.map(r => {
584
+ if (r.id === sequ) {
585
+ r.value = split
586
+ }
587
+ })
588
+ })
589
+ }
590
+ }
577
591
  this.handleOverViewChange(nowPattern)
578
592
  },
579
593
  handleBarrierHeight () { // 屏障高度