openatc-components 0.1.59 → 0.1.61

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.1.59",
3
+ "version": "0.1.61",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -1175,7 +1175,6 @@ const en = {
1175
1175
  'countdown': 'Countdown',
1176
1176
  'detector': 'Detector',
1177
1177
  'laneturn': 'Lane turn',
1178
- 'mixingturn': 'Mixing turn',
1179
1178
  'straightahead': 'Straightahead',
1180
1179
  'turnleft': 'Turnleft',
1181
1180
  'turnright': 'Turnright',
@@ -1174,7 +1174,6 @@ const zh = {
1174
1174
  'countdown': '倒计时',
1175
1175
  'detector': '检测器',
1176
1176
  'laneturn': '车道转向',
1177
- 'mixingturn': '混合转向',
1178
1177
  'straightahead': '直行',
1179
1178
  'turnleft': '左转',
1180
1179
  'turnright': '右转',
@@ -194,7 +194,7 @@ export default {
194
194
  let idPattern = this.localPatternList.filter(item => item.id === this.controlData.patternid)
195
195
  if (idPattern.length === 0 || (this.controlData && this.showCondition)) {
196
196
  this.handleTentivePatternData()
197
- } else if (this.controlData) {
197
+ } else {
198
198
  this.handlePatternData()
199
199
  }
200
200
  this.handleBarrierHeight()
@@ -511,6 +511,7 @@ export default {
511
511
  }
512
512
  return item.id === ring.id
513
513
  })[0]
514
+ if (!currPhase) return
514
515
  let peddirections = []
515
516
  for (let walk of this.sidewalkPhaseData) {
516
517
  if (currPhase.peddirection) {
@@ -726,6 +727,7 @@ export default {
726
727
  }
727
728
  return item.id === ring.id
728
729
  })[0]
730
+ if (!currPhase) return
729
731
  let peddirections = []
730
732
  for (let walk of this.sidewalkPhaseData) {
731
733
  if (currPhase.peddirection) {
@@ -918,6 +920,7 @@ export default {
918
920
  }
919
921
  return item.id === ring.id
920
922
  })[0]
923
+ if (!currPhase) return
921
924
  let peddirections = []
922
925
  for (let walk of this.sidewalkPhaseData) {
923
926
  if (currPhase.peddirection) {
@@ -1077,7 +1080,7 @@ export default {
1077
1080
  max = total
1078
1081
  }
1079
1082
  })
1080
- while (index > 0 && max < this.max) { // && max < _this.newCycle
1083
+ while (index > 0 && max < this.newCycle) { // && max < _this.newCycle
1081
1084
  index--
1082
1085
  max += ret[index]
1083
1086
  }
@@ -70,17 +70,20 @@ export default class RingDataModel {
70
70
  let peddirections = []
71
71
  let sidewalkPhaseData = this.getPedPhasePos()
72
72
  for (let walk of sidewalkPhaseData) {
73
- if (!phaseList.peddirection) return
74
- for (let ped of phaseList.peddirection) {
73
+ if (phaseList.peddirection) {
74
+ for (let ped of phaseList.peddirection) {
75
75
  // if (stg === walk.phaseid) {
76
- let obj = {}
77
- obj.name = walk.name
78
- obj.id = walk.id
79
- if (ped === walk.id) {
80
- peddirections.push(obj)
81
- peddirections = Array.from(new Set(peddirections))
82
- }
76
+ let obj = {}
77
+ obj.name = walk.name
78
+ obj.id = walk.id
79
+ if (ped === walk.id) {
80
+ peddirections.push(obj)
81
+ peddirections = Array.from(new Set(peddirections))
82
+ }
83
83
  // }
84
+ }
85
+ } else {
86
+ peddirections = []
84
87
  }
85
88
  }
86
89
  for (let id of phaseList.direction) {
@@ -158,6 +161,7 @@ export default class RingDataModel {
158
161
  let currPhase = this.phaseList.filter((item) => {
159
162
  return item.id === stg
160
163
  })[0]
164
+ if (!currPhase) return
161
165
  if (currPhase !== undefined) {
162
166
  directionList = [...currPhase.direction, ...directionList]
163
167
  }