openatc-components 0.1.46 → 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.
|
@@ -270,6 +270,8 @@ export default {
|
|
|
270
270
|
this.handleCurrentChange(this.patternStatusList)
|
|
271
271
|
this.handleBarrierHeight()
|
|
272
272
|
}, 400)
|
|
273
|
+
} else if ((this.controlData && this.controlData.patternid === 109) || (this.controlData && this.showCondition) || (this.controlData && this.localPatternList.length === 0)) {
|
|
274
|
+
this.handleTentivePatternData()
|
|
273
275
|
} else {
|
|
274
276
|
this.handlePatternData()
|
|
275
277
|
}
|
|
@@ -388,7 +390,7 @@ export default {
|
|
|
388
390
|
// ele.direction.forEach((dir, index) => {
|
|
389
391
|
// 车道相位
|
|
390
392
|
this.busPhaseData.push({
|
|
391
|
-
phaseid: ele.id, // 相位
|
|
393
|
+
phaseid: ele.id, // 相位did,用于对应相位状态
|
|
392
394
|
// id: dir, // 接口返回的dir字段,对应前端定义的相位方向id,唯一标识
|
|
393
395
|
// name: this.PhaseDataModel.getBusPhasePos(dir).name,
|
|
394
396
|
controltype: ele.controltype
|
|
@@ -572,6 +574,20 @@ export default {
|
|
|
572
574
|
let nowPattern = this.localPatternList.filter(item => {
|
|
573
575
|
return item.id === this.controlData.patternid
|
|
574
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
|
+
}
|
|
575
591
|
this.handleOverViewChange(nowPattern)
|
|
576
592
|
},
|
|
577
593
|
handleBarrierHeight () { // 屏障高度
|