openatc-components 0.2.77 → 0.2.79
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/kisscomps/components/ChannelRealtimeIntersection/ChannelRealtimeIntersection.vue +100 -0
- package/package/kisscomps/components/ChannelRealtimeIntersection/index.js +2 -0
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkClickSvg.vue +34 -4
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/sidewalk.svg +535 -0
- package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +68 -61
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +19 -19
- package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +19 -19
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.json +8 -8
- package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json +8 -8
- package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +13 -1
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +1 -25
- package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +0 -8
- package/package/kisscomps/index.js +2 -0
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/i18n/language/en.js +0 -2
- package/src/i18n/language/zh.js +0 -2
- package/src/kisscomps/components/ChannelRealtimeIntersection/ChannelRealtimeIntersection.vue +100 -0
- package/src/kisscomps/components/ChannelRealtimeIntersection/index.js +2 -0
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkClickSvg.vue +34 -4
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/sidewalk.svg +535 -0
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +68 -61
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +19 -19
- package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +19 -19
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.json +8 -8
- package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json +8 -8
- package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +13 -1
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +1 -25
- package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +0 -8
- package/src/kisscomps/index.js +2 -0
- package/src/views/intersection.vue +60 -28
- package/src/views/overView.vue +1 -1
- package/src/node_modules/.package_versions.json +0 -1
package/package.json
CHANGED
package/src/i18n/language/en.js
CHANGED
|
@@ -114,8 +114,6 @@ const en = {
|
|
|
114
114
|
'maxFlow': 'The average lane flow is too large. Is it further optimized?',
|
|
115
115
|
'typecycle-opt': 'Cycle Opt',
|
|
116
116
|
'signalIP': 'Signal IP',
|
|
117
|
-
'stagecountdown': 'Stage Countdown',
|
|
118
|
-
'stageduration': 'Stage Duration',
|
|
119
117
|
'currentphase': 'Current phase',
|
|
120
118
|
'directionnull': 'Please select the import direction',
|
|
121
119
|
'faultinfo': 'Fault Information',
|
package/src/i18n/language/zh.js
CHANGED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020 kedacom
|
|
3
|
+
* OpenATC is licensed under Mulan PSL v2.
|
|
4
|
+
* You can use this software according to the terms and conditions of the Mulan PSL v2.
|
|
5
|
+
* You may obtain a copy of Mulan PSL v2 at:
|
|
6
|
+
* http://license.coscl.org.cn/MulanPSL2
|
|
7
|
+
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
|
|
8
|
+
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
|
|
9
|
+
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
10
|
+
* See the Mulan PSL v2 for more details.
|
|
11
|
+
**/
|
|
12
|
+
<!--通道实时状态路口图-->
|
|
13
|
+
<template>
|
|
14
|
+
<div class="channel-realtime-intersection">
|
|
15
|
+
<IntersectionMap
|
|
16
|
+
v-if="reset"
|
|
17
|
+
ref="intersectionMap"
|
|
18
|
+
channelType
|
|
19
|
+
:crossStatusData="crossStatusData"
|
|
20
|
+
:agentId="agentId"
|
|
21
|
+
:graphicMode="true"
|
|
22
|
+
:roadDirection="roadDirection"/>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script>
|
|
27
|
+
import IntersectionMap from '../IntersectionMap/intersectionmap'
|
|
28
|
+
|
|
29
|
+
export default {
|
|
30
|
+
name: 'channel-realtime-intersection',
|
|
31
|
+
components: {
|
|
32
|
+
IntersectionMap
|
|
33
|
+
},
|
|
34
|
+
computed: {
|
|
35
|
+
},
|
|
36
|
+
props: {
|
|
37
|
+
agentId: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: '0'
|
|
40
|
+
},
|
|
41
|
+
roadDirection: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: 'right'
|
|
44
|
+
},
|
|
45
|
+
channelRealtimeStatusData: {
|
|
46
|
+
type: Object
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
watch: {
|
|
50
|
+
agentId: {
|
|
51
|
+
handler: function (val) {
|
|
52
|
+
if (val) {
|
|
53
|
+
this.reset = false
|
|
54
|
+
this.$nextTick(() => {
|
|
55
|
+
this.reset = true
|
|
56
|
+
})
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
deep: true
|
|
60
|
+
},
|
|
61
|
+
resizeMap: {
|
|
62
|
+
handler: function (newval, oldval) {
|
|
63
|
+
if (newval === true && oldval === false) {
|
|
64
|
+
this.getParentSize()
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
channelRealtimeStatusData: {
|
|
69
|
+
handler: function (val) {
|
|
70
|
+
// 相位统计数据数据
|
|
71
|
+
this.crossStatusData = JSON.parse(JSON.stringify(val))
|
|
72
|
+
},
|
|
73
|
+
// 深度观察监听
|
|
74
|
+
deep: true
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
data () {
|
|
78
|
+
return {
|
|
79
|
+
reset: true,
|
|
80
|
+
crossStatusData: {}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
methods: {
|
|
84
|
+
|
|
85
|
+
},
|
|
86
|
+
created () {
|
|
87
|
+
},
|
|
88
|
+
mounted () {
|
|
89
|
+
// setTimeout(() => {
|
|
90
|
+
// this.crossStatusData = JSON.parse(JSON.stringify(this.channelRealtimeStatusData))
|
|
91
|
+
// }, 1500)
|
|
92
|
+
this.crossStatusData = JSON.parse(JSON.stringify(this.channelRealtimeStatusData))
|
|
93
|
+
},
|
|
94
|
+
destroyed () {
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
</script>
|
|
98
|
+
|
|
99
|
+
<style lang="css" rel="stylesheet/scss">
|
|
100
|
+
</style>
|
package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkClickSvg.vue
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
<g
|
|
22
22
|
id="西行人"
|
|
23
23
|
direction="2"
|
|
24
|
+
style="pointer-events: visible"
|
|
24
25
|
:class="this.sidewalkDir.indexOf(2) !== -1 ? '' : 'invisible'"
|
|
25
26
|
:fill="defaultColor"
|
|
26
27
|
>
|
|
@@ -56,11 +57,13 @@
|
|
|
56
57
|
<rect y="31" class="st0" width="16" height="4"></rect>
|
|
57
58
|
<rect y="23" class="st0" width="16" height="4"></rect>
|
|
58
59
|
</g>
|
|
60
|
+
<rect id="rect1" x="0.3" y="22.8" class="st1" width="15.8" height="206.2"/>
|
|
59
61
|
</g>
|
|
60
62
|
<g id="西-上下">
|
|
61
63
|
<g
|
|
62
64
|
id="西行人下"
|
|
63
65
|
direction="8"
|
|
66
|
+
style="pointer-events: visible"
|
|
64
67
|
:class="this.sidewalkDir.indexOf(8) !== -1 ? '' : 'invisible'"
|
|
65
68
|
:fill="defaultColor"
|
|
66
69
|
>
|
|
@@ -76,10 +79,12 @@
|
|
|
76
79
|
<rect y="152" class="st0" width="16" height="4"></rect>
|
|
77
80
|
<rect y="144" class="st0" width="16" height="4"></rect>
|
|
78
81
|
<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"/>
|
|
79
83
|
</g>
|
|
80
84
|
<g
|
|
81
85
|
id="西行人上"
|
|
82
86
|
direction="7"
|
|
87
|
+
style="pointer-events: visible"
|
|
83
88
|
:class="this.sidewalkDir.indexOf(7) !== -1 ? '' : 'invisible'"
|
|
84
89
|
:fill="defaultColor"
|
|
85
90
|
>
|
|
@@ -95,12 +100,14 @@
|
|
|
95
100
|
<rect y="39" class="st0" width="16" height="4"></rect>
|
|
96
101
|
<rect y="31" class="st0" width="16" height="4"></rect>
|
|
97
102
|
<rect y="23" class="st0" width="16" height="4"></rect>
|
|
103
|
+
<rect x="0" y="23" class="st1" width="16" height="92.9"/>
|
|
98
104
|
</g>
|
|
99
105
|
</g>
|
|
100
106
|
|
|
101
107
|
<g
|
|
102
108
|
id="东行人"
|
|
103
109
|
direction="1"
|
|
110
|
+
style="pointer-events: visible"
|
|
104
111
|
:class="this.sidewalkDir.indexOf(1) !== -1 ? '' : 'invisible'"
|
|
105
112
|
:fill="defaultColor"
|
|
106
113
|
>
|
|
@@ -136,12 +143,14 @@
|
|
|
136
143
|
<rect x="236" y="31" class="st0" width="16" height="4"></rect>
|
|
137
144
|
<rect x="236" y="23" class="st0" width="16" height="4"></rect>
|
|
138
145
|
</g>
|
|
146
|
+
<rect x="235.9" y="23.1" class="st1" width="16" height="205.9"/>
|
|
139
147
|
</g>
|
|
140
148
|
|
|
141
149
|
<g id="东-上下">
|
|
142
150
|
<g
|
|
143
151
|
id="东行人下"
|
|
144
152
|
direction="6"
|
|
153
|
+
style="pointer-events: visible"
|
|
145
154
|
:class="this.sidewalkDir.indexOf(6) !== -1 ? '' : 'invisible'"
|
|
146
155
|
:fill="defaultColor"
|
|
147
156
|
>
|
|
@@ -157,10 +166,12 @@
|
|
|
157
166
|
<rect x="236" y="152" class="st0" width="16" height="4"></rect>
|
|
158
167
|
<rect x="236" y="144" class="st0" width="16" height="4"></rect>
|
|
159
168
|
<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"/>
|
|
160
170
|
</g>
|
|
161
171
|
<g
|
|
162
172
|
id="东行人上"
|
|
163
173
|
direction="5"
|
|
174
|
+
style="pointer-events: visible"
|
|
164
175
|
:class="this.sidewalkDir.indexOf(5) !== -1 ? '' : 'invisible'"
|
|
165
176
|
:fill="defaultColor"
|
|
166
177
|
>
|
|
@@ -176,12 +187,14 @@
|
|
|
176
187
|
<rect x="236" y="39" class="st0" width="16" height="4"></rect>
|
|
177
188
|
<rect x="236" y="31" class="st0" width="16" height="4"></rect>
|
|
178
189
|
<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"/>
|
|
179
191
|
</g>
|
|
180
192
|
</g>
|
|
181
193
|
|
|
182
194
|
<g
|
|
183
195
|
id="北行人"
|
|
184
196
|
direction="4"
|
|
197
|
+
style="pointer-events: visible"
|
|
185
198
|
:class="this.sidewalkDir.indexOf(4) !== -1 ? '' : 'invisible'"
|
|
186
199
|
:fill="defaultColor"
|
|
187
200
|
>
|
|
@@ -217,12 +230,14 @@
|
|
|
217
230
|
<rect x="31" class="st0" width="4" height="16"></rect>
|
|
218
231
|
<rect x="23" class="st0" width="4" height="16"></rect>
|
|
219
232
|
</g>
|
|
233
|
+
<rect x="23" y="0" class="st1" width="206" height="16"/>
|
|
220
234
|
</g>
|
|
221
235
|
|
|
222
236
|
<g id="北-左右">
|
|
223
237
|
<g
|
|
224
238
|
id="北行人右"
|
|
225
239
|
direction="12"
|
|
240
|
+
style="pointer-events: visible"
|
|
226
241
|
:class="this.sidewalkDir.indexOf(12) !== -1 ? '' : 'invisible'"
|
|
227
242
|
:fill="defaultColor"
|
|
228
243
|
>
|
|
@@ -238,10 +253,12 @@
|
|
|
238
253
|
<rect x="152" class="st0" width="4" height="16"></rect>
|
|
239
254
|
<rect x="144" class="st0" width="4" height="16"></rect>
|
|
240
255
|
<rect x="136" class="st0" width="4" height="16"></rect>
|
|
256
|
+
<rect x="136" class="st1" width="92.9" height="15.9"/>
|
|
241
257
|
</g>
|
|
242
258
|
<g
|
|
243
259
|
id="北行人左"
|
|
244
260
|
direction="11"
|
|
261
|
+
style="pointer-events: visible"
|
|
245
262
|
:class="this.sidewalkDir.indexOf(11) !== -1 ? '' : 'invisible'"
|
|
246
263
|
:fill="defaultColor"
|
|
247
264
|
>
|
|
@@ -257,12 +274,14 @@
|
|
|
257
274
|
<rect x="39" class="st0" width="4" height="16"></rect>
|
|
258
275
|
<rect x="31" class="st0" width="4" height="16"></rect>
|
|
259
276
|
<rect x="23" class="st0" width="4" height="16"></rect>
|
|
277
|
+
<rect x="22.9" y="0" class="st1" width="93.1" height="16"/>
|
|
260
278
|
</g>
|
|
261
279
|
</g>
|
|
262
280
|
|
|
263
281
|
<g
|
|
264
282
|
id="南行人"
|
|
265
283
|
direction="3"
|
|
284
|
+
style="pointer-events: visible"
|
|
266
285
|
:class="this.sidewalkDir.indexOf(3) !== -1 ? '' : 'invisible'"
|
|
267
286
|
:fill="defaultColor"
|
|
268
287
|
>
|
|
@@ -298,12 +317,14 @@
|
|
|
298
317
|
<rect x="31" y="236" class="st0" width="4" height="16"></rect>
|
|
299
318
|
<rect x="23" y="236" class="st0" width="4" height="16"></rect>
|
|
300
319
|
</g>
|
|
320
|
+
<rect x="22.6" y="234.1" class="st1" width="206.4" height="16"/>
|
|
301
321
|
</g>
|
|
302
322
|
|
|
303
323
|
<g id="南-左右">
|
|
304
324
|
<g
|
|
305
325
|
id="南行人右"
|
|
306
326
|
direction="10"
|
|
327
|
+
style="pointer-events: visible"
|
|
307
328
|
:class="this.sidewalkDir.indexOf(10) !== -1 ? '' : 'invisible'"
|
|
308
329
|
:fill="defaultColor"
|
|
309
330
|
>
|
|
@@ -319,10 +340,12 @@
|
|
|
319
340
|
<rect x="152" y="236" class="st0" width="4" height="16"></rect>
|
|
320
341
|
<rect x="144" y="236" class="st0" width="4" height="16"></rect>
|
|
321
342
|
<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"/>
|
|
322
344
|
</g>
|
|
323
345
|
<g
|
|
324
346
|
id="南行人左"
|
|
325
347
|
direction="9"
|
|
348
|
+
style="pointer-events: visible"
|
|
326
349
|
:class="this.sidewalkDir.indexOf(9) !== -1 ? '' : 'invisible'"
|
|
327
350
|
:fill="defaultColor"
|
|
328
351
|
>
|
|
@@ -338,12 +361,14 @@
|
|
|
338
361
|
<rect x="39" y="236" class="st0" width="4" height="16"></rect>
|
|
339
362
|
<rect x="31" y="236" class="st0" width="4" height="16"></rect>
|
|
340
363
|
<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"/>
|
|
341
365
|
</g>
|
|
342
366
|
</g>
|
|
343
367
|
|
|
344
368
|
<g
|
|
345
369
|
id="斜杠行人"
|
|
346
370
|
direction="13"
|
|
371
|
+
style="pointer-events: visible"
|
|
347
372
|
:class="this.sidewalkDir.indexOf(13) !== -1 ? '' : 'invisible'"
|
|
348
373
|
:fill="defaultColor"
|
|
349
374
|
>
|
|
@@ -634,10 +659,12 @@
|
|
|
634
659
|
width="4"
|
|
635
660
|
height="16"
|
|
636
661
|
></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"/>
|
|
637
663
|
</g>
|
|
638
664
|
<g
|
|
639
665
|
id="反斜杠行人"
|
|
640
666
|
direction="14"
|
|
667
|
+
style="pointer-events: visible"
|
|
641
668
|
:class="this.sidewalkDir.indexOf(14) !== -1 ? '' : 'invisible'"
|
|
642
669
|
:fill="defaultColor"
|
|
643
670
|
>
|
|
@@ -937,10 +964,13 @@
|
|
|
937
964
|
width="16"
|
|
938
965
|
height="4"
|
|
939
966
|
></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"/>
|
|
940
969
|
</g>
|
|
941
970
|
<g
|
|
942
971
|
id="东西路段行人"
|
|
943
972
|
direction="15"
|
|
973
|
+
style="pointer-events: visible"
|
|
944
974
|
:class="this.sidewalkDir.indexOf(15) !== -1 ? '' : 'invisible'"
|
|
945
975
|
:fill="defaultColor"
|
|
946
976
|
>
|
|
@@ -1021,10 +1051,12 @@
|
|
|
1021
1051
|
<rect x="217.6" y="97.9" width="4" height="56.3"></rect>
|
|
1022
1052
|
<rect x="225.5" y="97.9" width="4" height="56.3"></rect>
|
|
1023
1053
|
</g>
|
|
1054
|
+
<rect x="22.4" y="97.7" class="st1" width="207" height="56.4"/>
|
|
1024
1055
|
</g>
|
|
1025
1056
|
<g
|
|
1026
1057
|
id="南北路段行人"
|
|
1027
1058
|
direction="16"
|
|
1059
|
+
style="pointer-events: visible"
|
|
1028
1060
|
:class="this.sidewalkDir.indexOf(16) !== -1 ? '' : 'invisible'"
|
|
1029
1061
|
:fill="defaultColor"
|
|
1030
1062
|
>
|
|
@@ -1105,6 +1137,7 @@
|
|
|
1105
1137
|
<rect x="97.9" y="217.6" width="56.3" height="4"></rect>
|
|
1106
1138
|
<rect x="97.9" y="225.5" width="56.3" height="4"></rect>
|
|
1107
1139
|
</g>
|
|
1140
|
+
<rect x="97.9" y="21.4" class="st1" width="56.2" height="207.2"/>
|
|
1108
1141
|
</g>
|
|
1109
1142
|
</svg>
|
|
1110
1143
|
</template>
|
|
@@ -1264,9 +1297,6 @@ export default {
|
|
|
1264
1297
|
fill-rule: evenodd;
|
|
1265
1298
|
}
|
|
1266
1299
|
.st1 {
|
|
1267
|
-
|
|
1268
|
-
}
|
|
1269
|
-
.st2 {
|
|
1270
|
-
fill: #606060;
|
|
1300
|
+
fill: none;
|
|
1271
1301
|
}
|
|
1272
1302
|
</style>
|