openatc-components 0.5.69 → 0.5.70

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/debug.log ADDED
@@ -0,0 +1,6 @@
1
+ [0427/175107.441:ERROR:third_party\crashpad\crashpad\util\win\registration_protocol_win.cc:108] CreateFile: 系统找不到指定的文件。 (0x2)
2
+ [0427/175302.026:ERROR:third_party\crashpad\crashpad\util\win\registration_protocol_win.cc:108] CreateFile: 系统找不到指定的文件。 (0x2)
3
+ [0427/175302.118:ERROR:third_party\crashpad\crashpad\util\win\registration_protocol_win.cc:108] CreateFile: 系统找不到指定的文件。 (0x2)
4
+ [0427/183604.261:ERROR:third_party\crashpad\crashpad\util\win\registration_protocol_win.cc:108] CreateFile: 系统找不到指定的文件。 (0x2)
5
+ [0427/183610.355:ERROR:third_party\crashpad\crashpad\util\win\registration_protocol_win.cc:108] CreateFile: 系统找不到指定的文件。 (0x2)
6
+ [0427/183611.409:ERROR:third_party\crashpad\crashpad\util\win\registration_protocol_win.cc:108] CreateFile: 系统找不到指定的文件。 (0x2)
@@ -15,7 +15,7 @@
15
15
  <div class="name">{{$t('openatccomponents.channel.phaseVehicle')}}</div>
16
16
  <div class="content">
17
17
  <template v-for="(ring, index) in phaseDirection">
18
- <div :class="ring.selected ? 'card-selected' : 'card'" :key="ring" @click="onCardClick(ring, index)" :style="getStyle(ring)">
18
+ <div :class="ring.selected ? 'card-selected' : 'card'" :key="ring" @click="onCardClick(ring, index, 'phase')" :style="getStyle(ring)">
19
19
  <xdrdirselector
20
20
  Width="75PX"
21
21
  Height="75PX"
@@ -33,7 +33,7 @@
33
33
  <div class="name">{{$t('openatccomponents.channel.phasePedestrian')}}</div>
34
34
  <div class="content">
35
35
  <template v-for="(ring, index) in pedDirection">
36
- <div :class="ring.selected ? 'card-selected' : 'card'" :key="ring" @click="onCardClick(ring, index)">
36
+ <div :class="ring.selected ? 'card-selected' : 'card'" :key="ring" @click="onCardClick(ring, index, 'ped')" :style="getStyle(ring)">
37
37
  <xdrdirselector
38
38
  Width="75PX"
39
39
  Height="75PX"
@@ -161,12 +161,12 @@ export default {
161
161
  getStyle (ring) {
162
162
  return this.style
163
163
  },
164
- onCardClick (item, index) {
164
+ onCardClick (item, index, clickType) {
165
165
  item.selected = !item.selected
166
- let res = this.getParams()
166
+ let res = this.getParams(index, clickType)
167
167
  this.$emit('onPhasePedSelectChange', res)
168
168
  },
169
- getParams () {
169
+ getParams (index, clickType) {
170
170
  console.log('phaseDirection', this.phaseDirection)
171
171
  console.log('pedDirection', this.pedDirection)
172
172
  console.log('closePhaseRings', this.closePhaseRings)
@@ -176,11 +176,11 @@ export default {
176
176
  let phase = this.phaseDirection[i]
177
177
  let id = phase.id
178
178
  let isPhaseSelected = phase.selected
179
- if (isPhaseSelected) {
180
- type = 2
181
- }
182
179
  let ped = this.pedDirection.find(item => item.id === id)
183
180
  if (ped) {
181
+ if (clickType === 'phase' && index === i) {
182
+ ped.selected = isPhaseSelected
183
+ }
184
184
  let isPedSelected = ped.selected
185
185
  if (isPhaseSelected && isPedSelected) {
186
186
  type = 1
@@ -191,6 +191,8 @@ export default {
191
191
  } else if (!isPhaseSelected && !isPedSelected) {
192
192
  type = 0
193
193
  }
194
+ } else if (isPhaseSelected) {
195
+ type = 1
194
196
  }
195
197
  let phaseItem = {
196
198
  id: id,