openatc-components 0.4.66 → 0.4.68
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.
|
@@ -723,9 +723,15 @@ export default {
|
|
|
723
723
|
if (this.phaseList.length === 0) return
|
|
724
724
|
for (let patternStatus of val[0]) {
|
|
725
725
|
// if (patternStatus.mode !== 7) {
|
|
726
|
-
let concurrent = this.phaseList.filter((item) => {
|
|
727
|
-
return item.id === patternStatus.id // patternStatus.id当前相位id concurrent当前相位的并发相位
|
|
728
|
-
|
|
726
|
+
// let concurrent = this.phaseList.filter((item) => {
|
|
727
|
+
// return item.id === patternStatus.id // patternStatus.id当前相位id concurrent当前相位的并发相位
|
|
728
|
+
// })[0].concurrent// 当前相位的并发相位
|
|
729
|
+
let phaseItem = this.phaseList.find(item => item.id === patternStatus.id)
|
|
730
|
+
if (!phaseItem) {
|
|
731
|
+
// 找不到对应的phase,跳过或者做其他处理
|
|
732
|
+
continue
|
|
733
|
+
}
|
|
734
|
+
let concurrent = phaseItem.concurrent
|
|
729
735
|
if (concurrent) {
|
|
730
736
|
let obj = {
|
|
731
737
|
id: patternStatus.id,
|
|
@@ -835,12 +841,20 @@ export default {
|
|
|
835
841
|
let split = ring.value
|
|
836
842
|
obj.id = ring.id
|
|
837
843
|
// obj.split = split
|
|
838
|
-
let currPhase = this.phaseList.filter((item) => {
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
})[0]
|
|
844
|
+
// let currPhase = this.phaseList.filter((item) => {
|
|
845
|
+
// if (item.id === ring.id && item.controltype === 99) {
|
|
846
|
+
// obj.controltype = item.controltype
|
|
847
|
+
// }
|
|
848
|
+
// return item.id === ring.id
|
|
849
|
+
// })[0]
|
|
850
|
+
let currPhase = this.phaseList.find(item => item.id === ring.id)
|
|
851
|
+
if (!currPhase) {
|
|
852
|
+
// 找不到对应的phase,跳过或者做其他处理
|
|
853
|
+
continue
|
|
854
|
+
}
|
|
855
|
+
if (currPhase.controltype === 99) {
|
|
856
|
+
obj.controltype = currPhase.controltype
|
|
857
|
+
}
|
|
844
858
|
if (!currPhase) return
|
|
845
859
|
let peddirections = []
|
|
846
860
|
for (let walk of this.sidewalkPhaseData) {
|