openatc-components 0.1.53 → 0.1.55
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
|
@@ -190,12 +190,15 @@ export default {
|
|
|
190
190
|
}
|
|
191
191
|
// this.controlDatas = this.controlData
|
|
192
192
|
this.getPedPhasePos()
|
|
193
|
-
if (
|
|
194
|
-
this.
|
|
195
|
-
|
|
196
|
-
|
|
193
|
+
if (this.localPatternList) {
|
|
194
|
+
let idPattern = this.localPatternList.filter(item => item.id === this.controlData.patternid)
|
|
195
|
+
if (idPattern.length === 0 || (this.controlData && this.showCondition)) {
|
|
196
|
+
this.handleTentivePatternData()
|
|
197
|
+
} else if (this.controlData) {
|
|
198
|
+
this.handlePatternData()
|
|
199
|
+
}
|
|
200
|
+
this.handleBarrierHeight()
|
|
197
201
|
}
|
|
198
|
-
this.handleBarrierHeight()
|
|
199
202
|
},
|
|
200
203
|
// 深度观察监听
|
|
201
204
|
deep: true
|
|
@@ -265,15 +268,18 @@ export default {
|
|
|
265
268
|
},
|
|
266
269
|
created () {
|
|
267
270
|
this.globalParamModel = this.$store.getters.globalParamModel
|
|
268
|
-
if (this.
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
271
|
+
if (this.localPatternList) {
|
|
272
|
+
let idPattern = this.localPatternList.filter(item => item.id === this.controlData.patternid)
|
|
273
|
+
if (this.patternStatusList && this.newCycle && !this.controlData) {
|
|
274
|
+
setTimeout(() => {
|
|
275
|
+
this.handleCurrentChange(this.patternStatusList)
|
|
276
|
+
this.handleBarrierHeight()
|
|
277
|
+
}, 400)
|
|
278
|
+
} else if (idPattern.length === 0 || (this.controlData && this.showCondition) || (this.controlData && this.localPatternList.length === 0)) {
|
|
279
|
+
this.handleTentivePatternData()
|
|
280
|
+
} else {
|
|
281
|
+
this.handlePatternData()
|
|
282
|
+
}
|
|
277
283
|
}
|
|
278
284
|
this.PhaseDataModel = new PhaseDataModel()
|
|
279
285
|
this.CrossDiagramMgr = new CrossDiagramMgr()
|
|
@@ -161,18 +161,22 @@ export default class RingDataModel {
|
|
|
161
161
|
if (currPhase !== undefined) {
|
|
162
162
|
directionList = [...currPhase.direction, ...directionList]
|
|
163
163
|
}
|
|
164
|
-
|
|
165
|
-
for (let
|
|
164
|
+
if (currPhase.peddirection) {
|
|
165
|
+
for (let walk of sidewalkPhaseData) {
|
|
166
|
+
for (let ped of currPhase.peddirection) {
|
|
166
167
|
// if (stg === walk.phaseid) {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
168
|
+
let obj = {}
|
|
169
|
+
obj.name = walk.name
|
|
170
|
+
obj.id = walk.id
|
|
171
|
+
if (ped === walk.id) {
|
|
172
|
+
peddirections.push(obj)
|
|
173
|
+
peddirections = Array.from(new Set(peddirections))
|
|
174
|
+
}
|
|
174
175
|
// }
|
|
176
|
+
}
|
|
175
177
|
}
|
|
178
|
+
} else {
|
|
179
|
+
peddirections = []
|
|
176
180
|
}
|
|
177
181
|
for (let busPhase of busPhaseData) {
|
|
178
182
|
if (stg === busPhase.phaseid) {
|