openatc-components 0.1.111 → 0.1.112
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.
package/package.json
CHANGED
|
@@ -183,7 +183,6 @@ export default class RingDataModel {
|
|
|
183
183
|
}
|
|
184
184
|
getStageData () {
|
|
185
185
|
let data = this.crossStatusData
|
|
186
|
-
console.log(data, 'data')
|
|
187
186
|
let stagesTemp = []
|
|
188
187
|
let busPhaseData = this.getBusPos()
|
|
189
188
|
let sidewalkPhaseData = this.getPedPhasePos()
|
|
@@ -194,11 +193,12 @@ export default class RingDataModel {
|
|
|
194
193
|
let stageControType = 0
|
|
195
194
|
let peddirections = []
|
|
196
195
|
for (let stg of stage) {
|
|
196
|
+
let phaseMode = data.phase.filter(item => item.id === stg)
|
|
197
197
|
let currPhase = this.phaseList.filter((item) => {
|
|
198
198
|
return item.id === stg
|
|
199
199
|
})[0]
|
|
200
200
|
if (!currPhase) return
|
|
201
|
-
if (currPhase !== undefined) {
|
|
201
|
+
if (currPhase !== undefined && phaseMode[0].mode !== 1) {
|
|
202
202
|
directionList = [...currPhase.direction, ...directionList]
|
|
203
203
|
}
|
|
204
204
|
if (currPhase.peddirection) {
|