openatc-components 0.2.79 → 0.2.80

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.
Files changed (57) hide show
  1. package/package/kisscomps/components/BoardCard/BoardCard.vue +4 -0
  2. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkClickSvg.vue +4 -34
  3. package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +7 -71
  4. package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +19 -19
  5. package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +19 -19
  6. package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.json +8 -8
  7. package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json +8 -8
  8. package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +1 -13
  9. package/package/kisscomps/components/PatternStatus/PatternStatus.vue +94 -17
  10. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +98 -5
  11. package/package/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +7 -11
  12. package/package/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +5 -9
  13. package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +5 -7
  14. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +10 -41
  15. package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +5 -9
  16. package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -1
  17. package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +8 -12
  18. package/package/kisscomps/components/Stages/index.vue +1 -2
  19. package/package/kisscomps/components/patternList/patternList.vue +4 -0
  20. package/package/kisscomps/index.js +0 -2
  21. package/package/kissui.min.js +1 -1
  22. package/package.json +1 -1
  23. package/src/api/cross.js +0 -4
  24. package/src/api/template.js +0 -4
  25. package/src/i18n/language/zh.js +2 -2
  26. package/src/kisscomps/components/BoardCard/BoardCard.vue +4 -0
  27. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkClickSvg.vue +4 -34
  28. package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +7 -71
  29. package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +19 -19
  30. package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +19 -19
  31. package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.json +8 -8
  32. package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json +8 -8
  33. package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +1 -13
  34. package/src/kisscomps/components/PatternStatus/PatternStatus.vue +94 -17
  35. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +98 -5
  36. package/src/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +7 -11
  37. package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +5 -9
  38. package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +5 -7
  39. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +10 -41
  40. package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +5 -9
  41. package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -1
  42. package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +8 -12
  43. package/src/kisscomps/components/Stages/index.vue +1 -2
  44. package/src/kisscomps/components/patternList/patternList.vue +4 -0
  45. package/src/kisscomps/index.js +0 -2
  46. package/src/node_modules/.package_versions.json +1 -0
  47. package/src/views/intersection.vue +28 -60
  48. package/src/views/overView.vue +1 -1
  49. package/static/styles/commonkanban.scss +3 -3
  50. package/static/styles/overview.scss +2 -2
  51. package/static/styles/schemeconfig.scss +23 -38
  52. package/package/kisscomps/components/ChannelRealtimeIntersection/ChannelRealtimeIntersection.vue +0 -100
  53. package/package/kisscomps/components/ChannelRealtimeIntersection/index.js +0 -2
  54. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/sidewalk.svg +0 -535
  55. package/src/kisscomps/components/ChannelRealtimeIntersection/ChannelRealtimeIntersection.vue +0 -100
  56. package/src/kisscomps/components/ChannelRealtimeIntersection/index.js +0 -2
  57. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/sidewalk.svg +0 -535
@@ -12,6 +12,7 @@
12
12
  :controlPhase="controlPhase"
13
13
  :localPatternList="localPatternList"
14
14
  :showCondition="showCondition"
15
+ :patternType="patternType"
15
16
  :contrloType="contrloType"
16
17
  :allPatternList="allPatternList"
17
18
  :stagesChange="stagesChange"
@@ -87,6 +88,9 @@ export default {
87
88
  patternId: {
88
89
  type: Number
89
90
  },
91
+ patternType: {
92
+ type: String
93
+ },
90
94
  agentId: {
91
95
  type: String
92
96
  },
@@ -21,7 +21,6 @@
21
21
  <g
22
22
  id="西行人"
23
23
  direction="2"
24
- style="pointer-events: visible"
25
24
  :class="this.sidewalkDir.indexOf(2) !== -1 ? '' : 'invisible'"
26
25
  :fill="defaultColor"
27
26
  >
@@ -57,13 +56,11 @@
57
56
  <rect y="31" class="st0" width="16" height="4"></rect>
58
57
  <rect y="23" class="st0" width="16" height="4"></rect>
59
58
  </g>
60
- <rect id="rect1" x="0.3" y="22.8" class="st1" width="15.8" height="206.2"/>
61
59
  </g>
62
60
  <g id="西-上下">
63
61
  <g
64
62
  id="西行人下"
65
63
  direction="8"
66
- style="pointer-events: visible"
67
64
  :class="this.sidewalkDir.indexOf(8) !== -1 ? '' : 'invisible'"
68
65
  :fill="defaultColor"
69
66
  >
@@ -79,12 +76,10 @@
79
76
  <rect y="152" class="st0" width="16" height="4"></rect>
80
77
  <rect y="144" class="st0" width="16" height="4"></rect>
81
78
  <rect y="136" class="st0" width="16" height="4"></rect>
82
- <rect x="0" y="135.9" class="st1" width="16.2" height="93.1"/>
83
79
  </g>
84
80
  <g
85
81
  id="西行人上"
86
82
  direction="7"
87
- style="pointer-events: visible"
88
83
  :class="this.sidewalkDir.indexOf(7) !== -1 ? '' : 'invisible'"
89
84
  :fill="defaultColor"
90
85
  >
@@ -100,14 +95,12 @@
100
95
  <rect y="39" class="st0" width="16" height="4"></rect>
101
96
  <rect y="31" class="st0" width="16" height="4"></rect>
102
97
  <rect y="23" class="st0" width="16" height="4"></rect>
103
- <rect x="0" y="23" class="st1" width="16" height="92.9"/>
104
98
  </g>
105
99
  </g>
106
100
 
107
101
  <g
108
102
  id="东行人"
109
103
  direction="1"
110
- style="pointer-events: visible"
111
104
  :class="this.sidewalkDir.indexOf(1) !== -1 ? '' : 'invisible'"
112
105
  :fill="defaultColor"
113
106
  >
@@ -143,14 +136,12 @@
143
136
  <rect x="236" y="31" class="st0" width="16" height="4"></rect>
144
137
  <rect x="236" y="23" class="st0" width="16" height="4"></rect>
145
138
  </g>
146
- <rect x="235.9" y="23.1" class="st1" width="16" height="205.9"/>
147
139
  </g>
148
140
 
149
141
  <g id="东-上下">
150
142
  <g
151
143
  id="东行人下"
152
144
  direction="6"
153
- style="pointer-events: visible"
154
145
  :class="this.sidewalkDir.indexOf(6) !== -1 ? '' : 'invisible'"
155
146
  :fill="defaultColor"
156
147
  >
@@ -166,12 +157,10 @@
166
157
  <rect x="236" y="152" class="st0" width="16" height="4"></rect>
167
158
  <rect x="236" y="144" class="st0" width="16" height="4"></rect>
168
159
  <rect x="236" y="136" class="st0" width="16" height="4"></rect>
169
- <rect x="235.9" y="135.9" class="st1" width="16.2" height="93.3"/>
170
160
  </g>
171
161
  <g
172
162
  id="东行人上"
173
163
  direction="5"
174
- style="pointer-events: visible"
175
164
  :class="this.sidewalkDir.indexOf(5) !== -1 ? '' : 'invisible'"
176
165
  :fill="defaultColor"
177
166
  >
@@ -187,14 +176,12 @@
187
176
  <rect x="236" y="39" class="st0" width="16" height="4"></rect>
188
177
  <rect x="236" y="31" class="st0" width="16" height="4"></rect>
189
178
  <rect x="236" y="23" class="st0" width="16" height="4"></rect>
190
- <rect x="235.9" y="22.8" class="st1" width="16.2" height="93.1"/>
191
179
  </g>
192
180
  </g>
193
181
 
194
182
  <g
195
183
  id="北行人"
196
184
  direction="4"
197
- style="pointer-events: visible"
198
185
  :class="this.sidewalkDir.indexOf(4) !== -1 ? '' : 'invisible'"
199
186
  :fill="defaultColor"
200
187
  >
@@ -230,14 +217,12 @@
230
217
  <rect x="31" class="st0" width="4" height="16"></rect>
231
218
  <rect x="23" class="st0" width="4" height="16"></rect>
232
219
  </g>
233
- <rect x="23" y="0" class="st1" width="206" height="16"/>
234
220
  </g>
235
221
 
236
222
  <g id="北-左右">
237
223
  <g
238
224
  id="北行人右"
239
225
  direction="12"
240
- style="pointer-events: visible"
241
226
  :class="this.sidewalkDir.indexOf(12) !== -1 ? '' : 'invisible'"
242
227
  :fill="defaultColor"
243
228
  >
@@ -253,12 +238,10 @@
253
238
  <rect x="152" class="st0" width="4" height="16"></rect>
254
239
  <rect x="144" class="st0" width="4" height="16"></rect>
255
240
  <rect x="136" class="st0" width="4" height="16"></rect>
256
- <rect x="136" class="st1" width="92.9" height="15.9"/>
257
241
  </g>
258
242
  <g
259
243
  id="北行人左"
260
244
  direction="11"
261
- style="pointer-events: visible"
262
245
  :class="this.sidewalkDir.indexOf(11) !== -1 ? '' : 'invisible'"
263
246
  :fill="defaultColor"
264
247
  >
@@ -274,14 +257,12 @@
274
257
  <rect x="39" class="st0" width="4" height="16"></rect>
275
258
  <rect x="31" class="st0" width="4" height="16"></rect>
276
259
  <rect x="23" class="st0" width="4" height="16"></rect>
277
- <rect x="22.9" y="0" class="st1" width="93.1" height="16"/>
278
260
  </g>
279
261
  </g>
280
262
 
281
263
  <g
282
264
  id="南行人"
283
265
  direction="3"
284
- style="pointer-events: visible"
285
266
  :class="this.sidewalkDir.indexOf(3) !== -1 ? '' : 'invisible'"
286
267
  :fill="defaultColor"
287
268
  >
@@ -317,14 +298,12 @@
317
298
  <rect x="31" y="236" class="st0" width="4" height="16"></rect>
318
299
  <rect x="23" y="236" class="st0" width="4" height="16"></rect>
319
300
  </g>
320
- <rect x="22.6" y="234.1" class="st1" width="206.4" height="16"/>
321
301
  </g>
322
302
 
323
303
  <g id="南-左右">
324
304
  <g
325
305
  id="南行人右"
326
306
  direction="10"
327
- style="pointer-events: visible"
328
307
  :class="this.sidewalkDir.indexOf(10) !== -1 ? '' : 'invisible'"
329
308
  :fill="defaultColor"
330
309
  >
@@ -340,12 +319,10 @@
340
319
  <rect x="152" y="236" class="st0" width="4" height="16"></rect>
341
320
  <rect x="144" y="236" class="st0" width="4" height="16"></rect>
342
321
  <rect x="136" y="236" class="st0" width="4" height="16"></rect>
343
- <rect x="135.8" y="234.1" class="st1" width="93.2" height="16.1"/>
344
322
  </g>
345
323
  <g
346
324
  id="南行人左"
347
325
  direction="9"
348
- style="pointer-events: visible"
349
326
  :class="this.sidewalkDir.indexOf(9) !== -1 ? '' : 'invisible'"
350
327
  :fill="defaultColor"
351
328
  >
@@ -361,14 +338,12 @@
361
338
  <rect x="39" y="236" class="st0" width="4" height="16"></rect>
362
339
  <rect x="31" y="236" class="st0" width="4" height="16"></rect>
363
340
  <rect x="23" y="236" class="st0" width="4" height="16"></rect>
364
- <rect x="23" y="234.1" class="st1" width="92.8" height="16.1"/>
365
341
  </g>
366
342
  </g>
367
343
 
368
344
  <g
369
345
  id="斜杠行人"
370
346
  direction="13"
371
- style="pointer-events: visible"
372
347
  :class="this.sidewalkDir.indexOf(13) !== -1 ? '' : 'invisible'"
373
348
  :fill="defaultColor"
374
349
  >
@@ -659,12 +634,10 @@
659
634
  width="4"
660
635
  height="16"
661
636
  ></rect>
662
- <rect x="-18" y="119.1" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 301.8937 129.1823)" class="st1" width="284.3" height="16.1"/>
663
637
  </g>
664
638
  <g
665
639
  id="反斜杠行人"
666
640
  direction="14"
667
- style="pointer-events: visible"
668
641
  :class="this.sidewalkDir.indexOf(14) !== -1 ? '' : 'invisible'"
669
642
  :fill="defaultColor"
670
643
  >
@@ -964,13 +937,10 @@
964
937
  width="16"
965
938
  height="4"
966
939
  ></rect>
967
-
968
- <rect x="-12.8" y="117.2" transform="matrix(0.7071 0.7071 -0.7071 0.7071 125.5193 -52.5175)" class="st1" width="277.9" height="16.1"/>
969
940
  </g>
970
941
  <g
971
942
  id="东西路段行人"
972
943
  direction="15"
973
- style="pointer-events: visible"
974
944
  :class="this.sidewalkDir.indexOf(15) !== -1 ? '' : 'invisible'"
975
945
  :fill="defaultColor"
976
946
  >
@@ -1051,12 +1021,10 @@
1051
1021
  <rect x="217.6" y="97.9" width="4" height="56.3"></rect>
1052
1022
  <rect x="225.5" y="97.9" width="4" height="56.3"></rect>
1053
1023
  </g>
1054
- <rect x="22.4" y="97.7" class="st1" width="207" height="56.4"/>
1055
1024
  </g>
1056
1025
  <g
1057
1026
  id="南北路段行人"
1058
1027
  direction="16"
1059
- style="pointer-events: visible"
1060
1028
  :class="this.sidewalkDir.indexOf(16) !== -1 ? '' : 'invisible'"
1061
1029
  :fill="defaultColor"
1062
1030
  >
@@ -1137,7 +1105,6 @@
1137
1105
  <rect x="97.9" y="217.6" width="56.3" height="4"></rect>
1138
1106
  <rect x="97.9" y="225.5" width="56.3" height="4"></rect>
1139
1107
  </g>
1140
- <rect x="97.9" y="21.4" class="st1" width="56.2" height="207.2"/>
1141
1108
  </g>
1142
1109
  </svg>
1143
1110
  </template>
@@ -1297,6 +1264,9 @@ export default {
1297
1264
  fill-rule: evenodd;
1298
1265
  }
1299
1266
  .st1 {
1300
- fill: none;
1267
+ opacity: 0.9;
1268
+ }
1269
+ .st2 {
1270
+ fill: #606060;
1301
1271
  }
1302
1272
  </style>
@@ -240,12 +240,10 @@ export default {
240
240
  default: ''
241
241
  },
242
242
  choosedDirection: {
243
- type: Array,
244
- default: () => []
243
+ type: Array
245
244
  },
246
245
  choosedPedDirection: {
247
- type: Array,
248
- default: () => []
246
+ type: Array
249
247
  },
250
248
  isVipRoute: { // 区分普通路口和VIP路口,如果是vip路口(特勤路线和分组管控),才需要获取通道和处理通道冲突,并显示已选方向
251
249
  type: Boolean,
@@ -258,10 +256,6 @@ export default {
258
256
  isThirdSignal: {
259
257
  type: Boolean,
260
258
  default: false
261
- },
262
- channelType: {
263
- type: Boolean,
264
- default: false
265
259
  }
266
260
  },
267
261
  // computed: {
@@ -279,20 +273,10 @@ export default {
279
273
  handler: function (val, oldVal) {
280
274
  // 路口状态数据
281
275
  this.statusData = JSON.parse(JSON.stringify(val))
282
- // 默认显示相位数据(包括黄闪、全红、关灯状态下,或者匝道,均不做比对跟随相位的处理)
283
- this.drawDefaultPhaseIcon()
284
- if (this.channelType) {
285
- this.channelStatusList = val.channellamp
286
- // 显示实时通道状态
287
- this.createChannelStatusMap()
288
- this.getChannelPhaseStatus()
289
- // this.getChannelPedStatus()
290
- // this.getChannelCountdown()
291
- return
292
- }
293
-
294
276
  this.phaseStatusList = val.phase
295
277
  this.overlapStatusList = val.overlap
278
+ // 默认显示相位数据(包括黄闪、全红、关灯状态下,或者匝道,均不做比对跟随相位的处理)
279
+ this.drawDefaultPhaseIcon()
296
280
  if (val.control === 1 || val.control === 2 || val.control === 3) {
297
281
  // 黄闪、全红、关灯属于特殊控制,优先级最高,直接改变灯色,不用判断phase里的type,也不需要考虑跟随相位的灯色优先级
298
282
  if (val.control === 1) {
@@ -391,9 +375,7 @@ export default {
391
375
  comdirePhaseData: [], // 对比相同方向车道相位数据后,被删减的唯一direction的数组
392
376
  comdireOverlapPhaseData: [], // 对比相同方向车道跟随相位数据后,被删减的唯一direction的数组
393
377
  busPhaseData: [], // 公交相位数据
394
- comdireBusPhaseData: [], // 对比相同方向公交车道数据后,被删减的唯一direction的数组
395
- channelStatusMap: new Map(), // 通道实时状态映射
396
- channelStatusList: [] // 通道实时状态列表
378
+ comdireBusPhaseData: [] // 对比相同方向公交车道数据后,被删减的唯一direction的数组
397
379
  }
398
380
  },
399
381
  methods: {
@@ -687,10 +669,6 @@ export default {
687
669
  this.getChannelInfo()
688
670
  return
689
671
  }
690
- if (this.channelType) {
691
- this.getChannelInfo()
692
- return
693
- }
694
672
  this.crossInfo = res.data.data.param
695
673
  if (this.mainType === '100' || this.mainType === '101' || this.mainType === '104') {
696
674
  // 城市道路加载车道相位坐标和人行道坐标
@@ -988,33 +966,19 @@ export default {
988
966
  },
989
967
  handleRepeatRealdir (channelList) {
990
968
  // 按realdir去掉重复方向的数据
991
- let dirChannelList = channelList.filter(ele => ele.type === 0 || ele.type === 1 || ele.type === 3)
992
- let pedDirChannelList = channelList.filter(ele => ele.type === 2)
993
969
  let map = new Map()
994
- let map2 = new Map()
995
- dirChannelList.forEach(ele => {
970
+ channelList.forEach(ele => {
996
971
  ele.realdir.forEach(dir => {
997
972
  if (map.get(dir) === undefined) {
998
973
  map.set(dir, ele)
999
974
  }
1000
975
  })
1001
976
  })
1002
- pedDirChannelList.forEach(ele => {
1003
- ele.realdir.forEach(dir => {
1004
- if (map2.get(dir) === undefined) {
1005
- map2.set(dir, ele)
1006
- }
1007
- })
1008
- })
1009
977
  let arr = Array.from(map)
1010
- let pedarr = Array.from(map2)
1011
978
  let newarr = []
1012
979
  arr.forEach(ele => {
1013
980
  newarr.push(ele[1])
1014
981
  })
1015
- pedarr.forEach(ele => {
1016
- newarr.push(ele[1])
1017
- })
1018
982
  // console.log(newarr)
1019
983
  return newarr
1020
984
  },
@@ -1066,7 +1030,7 @@ export default {
1066
1030
  async drawPhaseIcon () {
1067
1031
  const targetIds = [4, 8, 12, 16] // 掉头相位后画
1068
1032
  this.LanePhaseData = this.LanePhaseData.filter(item => !targetIds.includes(item.id)).concat(this.LanePhaseData.filter(item => targetIds.includes(item.id)))
1069
- if (!this.isThirdSignal && this.isVipRoute) {
1033
+ if (!this.isThirdSignal) {
1070
1034
  await this.getConflictList()
1071
1035
  this.handleClickedPhase()
1072
1036
  this.compLanePhaseData = JSON.parse(JSON.stringify(this.LanePhaseData))
@@ -1176,34 +1140,6 @@ export default {
1176
1140
  // console.log(this.LanePhaseData)
1177
1141
  }
1178
1142
  })
1179
- },
1180
- createChannelStatusMap () {
1181
- // 生成相位id和相位状态对应数据结构
1182
- this.channelStatusList.map(channel => {
1183
- let channelId = channel.id
1184
- let channelInfo = {
1185
- type: channel.light
1186
- }
1187
- this.channelStatusMap.set(channelId, channelInfo)
1188
- })
1189
- },
1190
- getChannelPhaseStatus () {
1191
- this.comdirePhaseData = []
1192
- let curLanePhaseData = []
1193
- for (let i = 0; i < this.LanePhaseData.length; i++) {
1194
- let curPhaseStatus = this.channelStatusMap.get(this.LanePhaseData[i].channelid)
1195
- if (!curPhaseStatus) continue
1196
- const data = {
1197
- ...this.LanePhaseData[i],
1198
- type: curPhaseStatus.type,
1199
- color: this.ColorMap.get(curPhaseStatus.type),
1200
- // phaseCountdown: curPhaseStatus.phaseCountdown,
1201
- flag: 'channel' // 车道相位数据标识
1202
- }
1203
- curLanePhaseData.push(data)
1204
- }
1205
- this.LanePhaseData = JSON.parse(JSON.stringify(curLanePhaseData))
1206
- this.compLanePhaseData = JSON.parse(JSON.stringify(this.LanePhaseData))
1207
1143
  }
1208
1144
  },
1209
1145
  mounted () {
@@ -12,11 +12,11 @@
12
12
  <template>
13
13
  <div :id="Data.key" :style="{position: 'absolute', left: Data.left, top: Data.top}">
14
14
  <div :class="Data.id < 9 ? '' : 'hide'">
15
- <!-- <svg v-if="Data.id === 4 || Data.id === 8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 18.1 14.5" :width="IconLenghDiaoTou" :height="IconWdithDiaoTou">
15
+ <svg v-if="Data.id === 4 || Data.id === 8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 18.1 14.5" :width="IconLenghDiaoTou" :height="IconWdithDiaoTou">
16
16
  <path id="东掉头" :class="Data.name === '东掉头' ? '' : 'invisible'" d="M4.876,3.054H8.5V0.039L16.07,4.276,8.411,8.513V5.5H4.792C3.53,5.5,2.436,6.883,2.436,8.513s1.094,3.015,2.357,3.015H18.006v2.444H4.876A5.2,5.2,0,0,1-.005,8.513,5.2,5.2,0,0,1,4.876,3.054Z" transform="translate(0 -0.031)" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
17
17
  <path id="西掉头" :class="Data.name === '西掉头' ? '' : 'invisible'" d="M13.124,10.964H9.5v3.028L1.93,9.736,9.589,5.48V8.508h3.619c1.262,0,2.357-1.391,2.357-3.028S14.47,2.452,13.208,2.452H-0.006V0H13.124c2.693,0,4.881,2.455,4.881,5.483S15.817,10.964,13.124,10.964Z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
18
- </svg> -->
19
- <svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
18
+ </svg>
19
+ <svg v-else version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
20
20
  viewBox="0 0 36 26" style="enable-background:new 0 0 36 26;" xml:space="preserve" :width="IconLengh" :height="IconWdith">
21
21
  <!-- 东相位 -->
22
22
  <path id="东左转" :class="Data.name === '东左转' ? '' : 'invisible'" d="M11,7.1h24v-3H10.9c-3.1,0-5.7,2.6-5.8,5.7l-0.4,2.9L1,12.2l3.9,9.7l6.5-8.2l-3.7-0.5l0.5-3.3
@@ -24,22 +24,24 @@
24
24
  <path id="东右转" :class="Data.name === '东右转' ? '' : 'invisible'" d="M8.1,15.8l-0.4-3l3.7-0.5L4.9,4.1L1,13.8l3.7-0.5l0.4,2.9c0,3.2,2.6,5.7,5.8,5.7H35v-3H10.9
25
25
  c-1.5,0-2.8-1.3-2.8-2.8V15.8z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
26
26
  <polygon id="东直行" :class="Data.name === '东直行' ? '' : 'invisible'" points="35,11.5 10.1,11.5 10.1,7.8 0.9,13 10.1,18.2 10.1,14.5 35,14.5 " :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
27
- <path id="东掉头" :class="Data.name === '东掉头' ? '' : 'invisible'" d="M1.1,14.5c0,3.7,2.6,6.7,5.8,6.7H35v-3H6.8c-1.5,0-2.8-1.7-2.8-3.7s1.3-3.7,2.8-3.7h4.3v3.7l9.1-5.2l-9-5.2v3.7H6.9C3.7,7.8,1.1,10.8,1.1,14.5z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
27
+ <!-- <path id="东掉头" :class="Data.name === '东掉头' ? '' : 'invisible'" d="M13.6,15.2c0,3.7,2.6,6.7,5.8,6.7H35v-3H19.4c-1.5,0-2.8-1.7-2.8-3.7s1.3-3.7,2.8-3.7h4.3v3.7
28
+ l9.1-5.2l-9.1-5.2v3.7h-4.3C16.2,8.5,13.6,11.5,13.6,15.2z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/> -->
28
29
  <!-- 西相位 -->
29
30
  <path id="西左转" :class="Data.name === '西左转' ? '' : 'invisible'" d="M25,18.9H1v3h24.1c3.1,0,5.7-2.6,5.8-5.7l0.4-2.9l3.7,0.5l-3.9-9.7l-6.5,8.2l3.7,0.5l-0.5,3.3
30
31
  C27.8,17.6,26.6,18.9,25,18.9L25,18.9z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
31
32
  <path id="西右转" :class="Data.name === '西右转' ? '' : 'invisible'" d="M27.9,10.2l0.4,3l-3.7,0.5l6.5,8.2l3.9-9.7l-3.7,0.5l-0.4-2.9c0-3.2-2.6-5.7-5.8-5.7H1v3h24.1
32
33
  c1.5,0,2.8,1.3,2.8,2.8V10.2z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
33
34
  <polygon id="西直行" :class="Data.name === '西直行' ? '' : 'invisible'" points="1,14.5 26,14.5 26,18.2 35.1,13 26,7.8 26,11.5 1,11.5 " :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
34
- <path id="西掉头" :class="Data.name === '西掉头' ? '' : 'invisible'" d="M34.9,10.8c0-3.7-2.6-6.7-5.8-6.7H0.9v3h28.3c1.5,0,2.8,1.7,2.8,3.7s-1.3,3.7-2.8,3.7h-4.3v-3.7L15.8,16l9,5.2v-3.7h4.3C32.3,17.5,34.9,14.5,34.9,10.8z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
35
+ <!-- <path id="西掉头" :class="Data.name === '西掉头' ? '' : 'invisible'" d="M22.4,10.8c0-3.7-2.6-6.7-5.8-6.7H1v3h15.7c1.5,0,2.8,1.7,2.8,3.7s-1.3,3.7-2.8,3.7h-4.3v-3.7
36
+ L3.3,16l9,5.3v-3.8h4.3C19.8,17.5,22.4,14.5,22.4,10.8z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/> -->
35
37
  </svg>
36
38
  </div>
37
39
  <div :class="Data.id >= 9 ? '' : 'hide'">
38
- <!-- <svg v-if="Data.id === 12 || Data.id === 16" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 14.5 18.1" :width="IconWdithDiaoTou" :height="IconLenghDiaoTou">
40
+ <svg v-if="Data.id === 12 || Data.id === 16" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 14.5 18.1" :width="IconWdithDiaoTou" :height="IconLenghDiaoTou">
39
41
  <path id="南掉头" :class="Data.name === '南掉头' ? '' : 'invisible'" d="M10.946,4.876V8.5h3.015L9.724,16.07,5.487,8.411H8.5V4.792c0-1.262-1.385-2.357-3.015-2.357S2.472,3.53,2.472,4.792V18.006H0.028V4.876A5.2,5.2,0,0,1,5.487-.005,5.2,5.2,0,0,1,10.946,4.876Z" transform="translate(-0.031)" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
40
42
  <path id="北掉头" :class="Data.name === '北掉头' ? '' : 'invisible'" d="M3.036,13.124V9.5H0.008L4.264,1.93,8.52,9.589H5.492v3.619c0,1.262,1.391,2.357,3.028,2.357s3.028-1.094,3.028-2.357V-0.006H14V13.124c0,2.693-2.455,4.881-5.483,4.881S3.036,15.817,3.036,13.124Z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
41
- </svg> -->
42
- <svg version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
43
+ </svg>
44
+ <svg v-else version="1.1" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
43
45
  viewBox="0 0 26 36" style="enable-background:new 0 0 26 36;" xml:space="preserve" :width="IconWdith" :height="IconLengh">
44
46
  <!-- 南相位 -->
45
47
  <path id="南左转" :class="Data.name === '南左转' ? '' : 'invisible'" d="M18.9,11v24h3V10.9c0-3.1-2.6-5.7-5.7-5.8l-2.9-0.4L13.8,1L4.1,4.9l8.2,6.5l0.5-3.7l3.3,0.5
@@ -47,14 +49,16 @@
47
49
  <path id="南右转" :class="Data.name === '南右转' ? '' : 'invisible'" d="M10.2,8.1l3-0.4l0.5,3.7l8.2-6.5L12.2,1l0.5,3.7L9.8,5.1c-3.2,0-5.7,2.6-5.7,5.8V35h3V10.9
48
50
  c0-1.5,1.3-2.8,2.8-2.8H10.2z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
49
51
  <polygon id="南直行" :class="Data.name === '南直行' ? '' : 'invisible'" points="14.5,35 14.5,10.1 18.2,10.1 13,0.9 7.8,10.1 11.5,10.1 11.5,35 " :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
50
- <path id="南掉头" :class="Data.name === '南掉头' ? '' : 'invisible'" d="M11.5,1.1c-3.7,0-6.7,2.6-6.7,5.8V35h3V6.8C7.8,5.3,9.5,4,11.5,4s3.7,1.3,3.7,2.8v4.3h-3.7l5.2,9.1l5.2-9h-3.7V6.9C18.2,3.7,15.2,1.1,11.5,1.1z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
52
+ <!-- <path id="南掉头" :class="Data.name === '南掉头' ? '' : 'invisible'" d="M10.8,13.6c-3.7,0-6.7,2.6-6.7,5.8V35h3V19.4c0-1.5,1.7-2.8,3.7-2.8s3.7,1.3,3.7,2.8v4.3h-3.7
53
+ l5.2,9.1l5.2-9.1h-3.8v-4.3C17.4,16.2,14.4,13.6,10.8,13.6z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/> -->
51
54
  <!-- 北相位 -->
52
55
  <path id="北左转" :class="Data.name === '北左转' ? '' : 'invisible'" d="M7.1,25V1h-3v24.1c0,3.1,2.6,5.7,5.7,5.8l2.9,0.4L12.2,35l9.7-3.9l-8.2-6.5l-0.5,3.7l-3.3-0.5
53
56
  C8.4,27.8,7.1,26.6,7.1,25L7.1,25z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
54
57
  <path id="北右转" :class="Data.name === '北右转' ? '' : 'invisible'" d="M15.8,27.9l-3,0.4l-0.5-3.7l-8.2,6.5l9.7,3.9l-0.5-3.7l2.9-0.4c3.2,0,5.7-2.6,5.7-5.8V1h-3v24.1
55
58
  c0,1.5-1.3,2.8-2.8,2.8H15.8z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
56
59
  <polygon id="北直行" :class="Data.name === '北直行' ? '' : 'invisible'" points="11.5,0.9 11.5,25.9 7.8,25.9 13,35 18.2,25.9 14.5,25.9 14.5,0.9 " :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
57
- <path id="北掉头" :class="Data.name === '北掉头' ? '' : 'invisible'" d="M14.5,34.9c3.7,0,6.7-2.6,6.7-5.8V0.9h-3v28.3c0,1.5-1.7,2.8-3.7,2.8s-3.7-1.3-3.7-2.8v-4.3h3.7l-5.2-9.1l-5.2,9h3.7v4.3C7.8,32.3,10.8,34.9,14.5,34.9z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
60
+ <!-- <path id="北掉头" :class="Data.name === '北掉头' ? '' : 'invisible'" d="M15.2,22.4c3.7,0,6.7-2.6,6.7-5.8V1h-3v15.7c0,1.5-1.7,2.8-3.7,2.8s-3.7-1.3-3.7-2.8v-4.3h3.7
61
+ L10,3.3l-5.2,9h3.7v4.3C8.5,19.8,11.5,22.4,15.2,22.4z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/> -->
58
62
  </svg>
59
63
  </div>
60
64
  </div>
@@ -136,9 +140,8 @@ export default {
136
140
  },
137
141
  methods: {
138
142
  handleClick (e) {
139
- let clickedSvg = e.currentTarget
140
- // console.log(clickedSvg)
141
- let clickedPath = clickedSvg.querySelector(`#${this.Data.name}`)
143
+ let clickedPath = e.target
144
+ // console.log(clickedPath)
142
145
  if (clickedPath) {
143
146
  // 在这里对找到的元素进行操作
144
147
  if (clickedPath.getAttribute('disabled') === 'true') {
@@ -170,12 +173,9 @@ export default {
170
173
  },
171
174
  IconAddEvent () {
172
175
  let IconDom = document.getElementById(this.Data.key)
173
- // let DirDom = IconDom.querySelector(`#${this.Data.name}`)
174
- // if (this.clickMode && DirDom.getAttribute('class') !== 'invisible') {
175
- // DirDom.addEventListener('click', this.handleClick)
176
- // }
177
- if (this.clickMode) {
178
- IconDom.addEventListener('click', this.handleClick)
176
+ let DirDom = IconDom.querySelector(`#${this.Data.name}`)
177
+ if (this.clickMode && DirDom.getAttribute('class') !== 'invisible') {
178
+ DirDom.addEventListener('click', this.handleClick)
179
179
  }
180
180
  }
181
181
  },
@@ -12,33 +12,35 @@
12
12
  <template>
13
13
  <div :id="Data.key" :style="{position: 'absolute', left: Data.left, top: Data.top}">
14
14
  <div :class="Data.id < 9 ? '' : 'hide'">
15
- <!-- <svg v-if="Data.id === 4 || Data.id === 8" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 14" :width="IconLenghDiaoTou" :height="IconWdithDiaoTou">
15
+ <svg v-if="Data.id === 4 || Data.id === 8" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 14" :width="IconLenghDiaoTou" :height="IconWdithDiaoTou">
16
16
  <path id="东掉头" :class="Data.name === '东掉头' ? '' : 'invisible'" d="M4.876,10.981H8.5v3.042L16.07,9.748,8.411,5.474V8.515H4.792c-1.262,0-2.357-1.4-2.357-3.042S3.53,2.432,4.792,2.432H18.006V-0.034H4.876c-2.693,0-4.881,2.466-4.881,5.508S2.183,10.981,4.876,10.981Z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
17
17
  <path id="西掉头" :class="Data.name === '西掉头' ? '' : 'invisible'" d="M13.124,3.036H9.5V0.008L1.93,4.264,9.589,8.52V5.492h3.619c1.262,0,2.357,1.391,2.357,3.028s-1.094,3.028-2.357,3.028H-0.006V14H13.124c2.693,0,4.881-2.455,4.881-5.483S15.817,3.036,13.124,3.036Z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
18
- </svg> -->
19
- <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 36 26" :width="IconLengh" :height="IconWdith">
18
+ </svg>
19
+ <svg v-else xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 36 26" :width="IconLengh" :height="IconWdith">
20
20
  <!-- 东相位 -->
21
21
  <path id="东左转" :class="Data.name === '东左转' ? '' : 'invisible'" d="M11,7.1h24v-3H10.9c-3.1,0-5.7,2.6-5.8,5.7l-0.4,2.9L1,12.2l3.9,9.7l6.5-8.2l-3.7-0.5l0.5-3.3
22
22
  C8.2,8.4,9.4,7.1,11,7.1L11,7.1z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
23
23
  <path id="东右转" :class="Data.name === '东右转' ? '' : 'invisible'" d="M8.1,15.8l-0.4-3l3.7-0.5L4.9,4.1L1,13.8l3.7-0.5l0.4,2.9c0,3.2,2.6,5.7,5.8,5.7H35v-3H10.9
24
24
  c-1.5,0-2.8-1.3-2.8-2.8V15.8z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
25
25
  <polygon id="东直行" :class="Data.name === '东直行' ? '' : 'invisible'" points="35,11.5 10.1,11.5 10.1,7.8 0.9,13 10.1,18.2 10.1,14.5 35,14.5 " :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
26
- <path id="东掉头" :class="Data.name === '东掉头' ? '' : 'invisible'" d="M6.9,17.5h4.3v3.7l9-5.2l-9.1-5.2v3.7H6.8c-1.5,0-2.8-1.7-2.8-3.7s1.3-3.7,2.8-3.7H35v-3H6.9c-3.2,0-5.8,3-5.8,6.7C1.1,14.5,3.7,17.5,6.9,17.5z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
26
+ <!-- <path id="东掉头" :class="Data.name === '东掉头' ? '' : 'invisible'" d="M19.4,17.5h4.3v3.7l9.1-5.2l-9.1-5.2v3.7h-4.3c-1.5,0-2.8-1.7-2.8-3.7s1.3-3.7,2.8-3.7H35v-3H19.4
27
+ c-3.2,0-5.8,3-5.8,6.7C13.6,14.5,16.2,17.5,19.4,17.5z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/> -->
27
28
  <!-- 西相位 -->
28
29
  <path id="西左转" :class="Data.name === '西左转' ? '' : 'invisible'" d="M25,18.9H1v3h24.1c3.1,0,5.7-2.6,5.8-5.7l0.4-2.9l3.7,0.5l-3.9-9.7l-6.5,8.2l3.7,0.5l-0.5,3.3
29
30
  C27.8,17.6,26.6,18.9,25,18.9L25,18.9z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
30
31
  <path id="西右转" :class="Data.name === '西右转' ? '' : 'invisible'" d="M27.9,10.2l0.4,3l-3.7,0.5l6.5,8.2l3.9-9.7l-3.7,0.5l-0.4-2.9c0-3.2-2.6-5.7-5.8-5.7H1v3h24.1
31
32
  c1.5,0,2.8,1.3,2.8,2.8V10.2z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
32
33
  <polygon id="西直行" :class="Data.name === '西直行' ? '' : 'invisible'" points="1,14.5 26,14.5 26,18.2 35.1,13 26,7.8 26,11.5 1,11.5 " :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
33
- <path id="西掉头" :class="Data.name === '西掉头' ? '' : 'invisible'" d="M29.1,8.5h-4.3V4.8l-9,5.2l9.1,5.2v-3.7h4.3c1.5,0,2.8,1.7,2.8,3.7s-1.3,3.7-2.8,3.7H0.9v3h28.2c3.2,0,5.8-3,5.8-6.7C34.9,11.5,32.3,8.5,29.1,8.5z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
34
+ <!-- <path id="西掉头" :class="Data.name === '西掉头' ? '' : 'invisible'" d="M16.6,8.5h-4.3V4.7L3.3,10l9.1,5.2v-3.7h4.3c1.5,0,2.8,1.7,2.8,3.7s-1.3,3.7-2.8,3.7H1v3h15.6
35
+ c3.2,0,5.8-3,5.8-6.7C22.4,11.5,19.8,8.5,16.6,8.5z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/> -->
34
36
  </svg>
35
37
  </div>
36
38
  <div :class="Data.id >= 9 ? '' : 'hide'">
37
- <!-- <svg v-if="Data.id === 12 || Data.id === 16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 18" :width="IconWdithDiaoTou" :height="IconLenghDiaoTou">
39
+ <svg v-if="Data.id === 12 || Data.id === 16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 18" :width="IconWdithDiaoTou" :height="IconLenghDiaoTou">
38
40
  <path id="南掉头" :class="Data.name === '南掉头' ? '' : 'invisible'" d="M3.036,4.876V8.5H0.008L4.264,16.07,8.52,8.411H5.492V4.792c0-1.262,1.391-2.357,3.028-2.357s3.028,1.094,3.028,2.357V18.006H14V4.876C14,2.183,11.548-.005,8.52-0.005S3.036,2.183,3.036,4.876Z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)" />
39
41
  <path id="北掉头" :class="Data.name === '北掉头' ? '' : 'invisible'" d="M10.981,13.124V9.5h3.042L9.748,1.93,5.474,9.589H8.515v3.619c0,1.262-1.4,2.357-3.042,2.357S2.432,14.47,2.432,13.208V-0.006H-0.034V13.124c0,2.693,2.466,4.881,5.508,4.881S10.981,15.817,10.981,13.124Z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)" />
40
- </svg> -->
41
- <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
42
+ </svg>
43
+ <svg v-else xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
42
44
  viewBox="0 0 26 36" style="enable-background:new 0 0 26 36;" xml:space="preserve" :width="IconWdith" :height="IconLengh">
43
45
  <!-- 南相位 -->
44
46
  <path id="南左转" :class="Data.name === '南左转' ? '' : 'invisible'" d="M18.9,11v24h3V10.9c0-3.1-2.6-5.7-5.7-5.8l-2.9-0.4L13.8,1L4.1,4.9l8.2,6.5l0.5-3.7l3.3,0.5
@@ -46,14 +48,16 @@
46
48
  <path id="南右转" :class="Data.name === '南右转' ? '' : 'invisible'" d="M10.2,8.1l3-0.4l0.5,3.7l8.2-6.5L12.2,1l0.5,3.7L9.8,5.1c-3.2,0-5.7,2.6-5.7,5.8V35h3V10.9
47
49
  c0-1.5,1.3-2.8,2.8-2.8H10.2z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
48
50
  <polygon id="南直行" :class="Data.name === '南直行' ? '' : 'invisible'" points="14.5,35 14.5,10.1 18.2,10.1 13,0.9 7.8,10.1 11.5,10.1 11.5,35 " :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
49
- <path id="南掉头" :class="Data.name === '南掉头' ? '' : 'invisible'" d="M8.5,6.9v4.3H4.8l5.2,9l5.2-9.1h-3.7V6.8c0-1.5,1.7-2.8,3.7-2.8s3.7,1.3,3.7,2.8V35h3V6.9c0-3.2-3-5.8-6.7-5.8C11.5,1.1,8.5,3.7,8.5,6.9z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
51
+ <!-- <path id="南掉头" :class="Data.name === '南掉头' ? '' : 'invisible'" d="M8.5,19.4v4.3H4.7l5.2,9.1l5.2-9.1h-3.7v-4.3c0-1.5,1.7-2.8,3.7-2.8s3.7,1.3,3.7,2.8V35h3V19.4
52
+ c0-3.2-3-5.8-6.7-5.8C11.5,13.6,8.5,16.2,8.5,19.4z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/> -->
50
53
  <!-- 北相位 -->
51
54
  <path id="北左转" :class="Data.name === '北左转' ? '' : 'invisible'" d="M7.1,25V1h-3v24.1c0,3.1,2.6,5.7,5.7,5.8l2.9,0.4L12.2,35l9.7-3.9l-8.2-6.5l-0.5,3.7l-3.3-0.5
52
55
  C8.4,27.8,7.1,26.6,7.1,25L7.1,25z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
53
56
  <path id="北右转" :class="Data.name === '北右转' ? '' : 'invisible'" d="M15.8,27.9l-3,0.4l-0.5-3.7l-8.2,6.5l9.7,3.9l-0.5-3.7l2.9-0.4c3.2,0,5.7-2.6,5.7-5.8V1h-3v24.1
54
57
  c0,1.5-1.3,2.8-2.8,2.8H15.8z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
55
58
  <polygon id="北直行" :class="Data.name === '北直行' ? '' : 'invisible'" points="11.5,0.9 11.5,25.9 7.8,25.9 13,35 18.2,25.9 14.5,25.9 14.5,0.9 " :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
56
- <path id="北掉头" :class="Data.name === '北掉头' ? '' : 'invisible'" d="M17.5,29.1v-4.3h3.7l-5.2-9l-5.2,9.1h3.7v4.3c0,1.5-1.7,2.8-3.7,2.8s-3.7-1.3-3.7-2.8V0.9h-3v28.2c0,3.2,3,5.8,6.7,5.8C14.5,34.9,17.5,32.3,17.5,29.1z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/>
59
+ <!-- <path id="北掉头" :class="Data.name === '北掉头' ? '' : 'invisible'" d="M17.5,16.6v-4.3h3.7L16,3.3l-5.2,9.1h3.7v4.3c0,1.5-1.7,2.8-3.7,2.8s-3.7-1.3-3.7-2.8V1h-3v15.6
60
+ c0,3.2,3,5.8,6.7,5.8C14.5,22.4,17.5,19.8,17.5,16.6z" :fill="this.FlashColor ? this.FlashColor : (Data.color ? Data.color : defaultColor)"/> -->
57
61
  </svg>
58
62
  </div>
59
63
  </div>
@@ -135,9 +139,8 @@ export default {
135
139
  },
136
140
  methods: {
137
141
  handleClick (e) {
138
- let clickedSvg = e.currentTarget
139
- // console.log(clickedSvg)
140
- let clickedPath = clickedSvg.querySelector(`#${this.Data.name}`)
142
+ let clickedPath = e.target
143
+ // console.log(clickedPath)
141
144
  if (clickedPath) {
142
145
  // 在这里对找到的元素进行操作
143
146
  if (clickedPath.getAttribute('disabled') === 'true') {
@@ -169,12 +172,9 @@ export default {
169
172
  },
170
173
  IconAddEvent () {
171
174
  let IconDom = document.getElementById(this.Data.key)
172
- // let DirDom = IconDom.querySelector(`#${this.Data.name}`)
173
- // if (this.clickMode && DirDom.getAttribute('class') !== 'invisible') {
174
- // DirDom.addEventListener('click', this.handleClick)
175
- // }
176
- if (this.clickMode) {
177
- IconDom.addEventListener('click', this.handleClick)
175
+ let DirDom = IconDom.querySelector(`#${this.Data.name}`)
176
+ if (this.clickMode && DirDom.getAttribute('class') !== 'invisible') {
177
+ DirDom.addEventListener('click', this.handleClick)
178
178
  }
179
179
  }
180
180
  },
@@ -24,8 +24,8 @@
24
24
  "id": 4,
25
25
  "name": "东掉头",
26
26
  "ename": "East-Back",
27
- "x": "588px",
28
- "y": "325px"
27
+ "x": "602px",
28
+ "y": "300px"
29
29
  },
30
30
  {
31
31
  "id": 5,
@@ -52,8 +52,8 @@
52
52
  "id": 8,
53
53
  "name": "西掉头",
54
54
  "ename": "West-Back",
55
- "x": "244px",
56
- "y": "300px"
55
+ "x": "247px",
56
+ "y": "333px"
57
57
  },
58
58
  {
59
59
  "id": 9,
@@ -80,8 +80,8 @@
80
80
  "id": 12,
81
81
  "name": "北掉头",
82
82
  "ename": "North-Back",
83
- "x": "436px",
84
- "y": "134px"
83
+ "x": "412px",
84
+ "y": "137px"
85
85
  },
86
86
  {
87
87
  "id": 13,
@@ -108,8 +108,8 @@
108
108
  "id": 16,
109
109
  "name": "南掉头",
110
110
  "ename": "South-Back",
111
- "x": "412px",
112
- "y": "476px"
111
+ "x": "444px",
112
+ "y": "489px"
113
113
  }
114
114
  ]
115
115
  }