openatc-components 0.2.80 → 0.2.81

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 (58) hide show
  1. package/package/kisscomps/components/BoardCard/BoardCard.vue +0 -4
  2. package/package/kisscomps/components/ChannelRealtimeIntersection/ChannelRealtimeIntersection.vue +101 -0
  3. package/package/kisscomps/components/ChannelRealtimeIntersection/index.js +2 -0
  4. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkClickSvg.vue +34 -4
  5. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/sidewalk.svg +535 -0
  6. package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +105 -9
  7. package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +19 -19
  8. package/package/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +19 -19
  9. package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.json +8 -8
  10. package/package/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json +8 -8
  11. package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +13 -1
  12. package/package/kisscomps/components/PatternStatus/PatternStatus.vue +17 -94
  13. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +5 -98
  14. package/package/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +11 -7
  15. package/package/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +9 -5
  16. package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +7 -5
  17. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +41 -10
  18. package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +9 -5
  19. package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -1
  20. package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +12 -8
  21. package/package/kisscomps/components/Stages/index.vue +2 -1
  22. package/package/kisscomps/components/patternList/patternList.vue +0 -4
  23. package/package/kisscomps/index.js +2 -0
  24. package/package/kissui.min.js +1 -1
  25. package/package.json +1 -1
  26. package/src/api/cross.js +4 -0
  27. package/src/api/template.js +4 -0
  28. package/src/i18n/language/zh.js +2 -2
  29. package/src/kisscomps/components/BoardCard/BoardCard.vue +0 -4
  30. package/src/kisscomps/components/ChannelRealtimeIntersection/ChannelRealtimeIntersection.vue +101 -0
  31. package/src/kisscomps/components/ChannelRealtimeIntersection/index.js +2 -0
  32. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/SidewalkClickSvg.vue +34 -4
  33. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/sidewalk.svg +535 -0
  34. package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +105 -9
  35. package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/LphaseIconSvg.vue +19 -19
  36. package/src/kisscomps/components/IntersectionMap/crossDirection/phaseIcon/phaseIconSvg.vue +19 -19
  37. package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.json +8 -8
  38. package/src/kisscomps/components/IntersectionMap/crossDirection/posJson/phasePos.left.json +8 -8
  39. package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +13 -1
  40. package/src/kisscomps/components/PatternStatus/PatternStatus.vue +17 -94
  41. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +5 -98
  42. package/src/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +11 -7
  43. package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +9 -5
  44. package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +7 -5
  45. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +41 -10
  46. package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +9 -5
  47. package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -1
  48. package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +12 -8
  49. package/src/kisscomps/components/Stages/index.vue +2 -1
  50. package/src/kisscomps/components/patternList/patternList.vue +0 -4
  51. package/src/kisscomps/index.js +2 -0
  52. package/src/router/index.js +1 -1
  53. package/src/views/intersection.vue +76 -28
  54. package/src/views/overView.vue +1 -1
  55. package/static/styles/commonkanban.scss +3 -3
  56. package/static/styles/overview.scss +2 -2
  57. package/static/styles/schemeconfig.scss +38 -23
  58. package/src/node_modules/.package_versions.json +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.2.80",
3
+ "version": "0.2.81",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
package/src/api/cross.js CHANGED
@@ -22,6 +22,10 @@ export const getDuration = (data) => {
22
22
  }
23
23
 
24
24
  export const getChannelizatonChart = (agentid) => {
25
+ if (!agentid || agentid === '0') {
26
+ console.log('getChannelizatonChart agentid:', agentid)
27
+ return false
28
+ }
25
29
  let api = new Authapi('getChannelizatonChart')
26
30
  return api.Send({}, {}, [agentid])
27
31
  }
@@ -20,6 +20,10 @@ export function createTemplate (param) {
20
20
  return api.Send({}, param, [])
21
21
  }
22
22
  export function getIntersectionInfo (agentid) {
23
+ if (!agentid || agentid === '0') {
24
+ console.log('getIntersectionInfo agentid:', agentid)
25
+ return false
26
+ }
23
27
  // 获取路口类型和相位信息
24
28
  let api = new Authapi('getIntersectionInfo')
25
29
  let paramList = [agentid]
@@ -264,7 +264,7 @@ const zh = {
264
264
  'modelList21': '预留21',
265
265
  'modelList22': '相位锁定',
266
266
  'modelList25': '方位锁定',
267
- 'modelList23': '相位放行控制',
267
+ 'modelList23': '相位关断',
268
268
  'modelList100': '临时方案',
269
269
  'modelList101': '方向锁定',
270
270
  'modelList24': '优先控制',
@@ -446,7 +446,7 @@ const zh = {
446
446
  'delaystart': '晚启动时间 ',
447
447
  'advanceend': '早结束时间',
448
448
  'stageConfig': '阶段配置',
449
- 'parameters': '扩展参数配置',
449
+ 'parameters': '扩展参数',
450
450
  'overLap': '跟随相位',
451
451
  'plan': '方案',
452
452
  'patternOptimize': '方案优化',
@@ -12,7 +12,6 @@
12
12
  :controlPhase="controlPhase"
13
13
  :localPatternList="localPatternList"
14
14
  :showCondition="showCondition"
15
- :patternType="patternType"
16
15
  :contrloType="contrloType"
17
16
  :allPatternList="allPatternList"
18
17
  :stagesChange="stagesChange"
@@ -88,9 +87,6 @@ export default {
88
87
  patternId: {
89
88
  type: Number
90
89
  },
91
- patternType: {
92
- type: String
93
- },
94
90
  agentId: {
95
91
  type: String
96
92
  },
@@ -0,0 +1,101 @@
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
+ // 模拟
91
+ // this.crossStatusData = JSON.parse(JSON.stringify(this.channelRealtimeStatusData))
92
+ // }, 3000)
93
+ this.crossStatusData = JSON.parse(JSON.stringify(this.channelRealtimeStatusData))
94
+ },
95
+ destroyed () {
96
+ }
97
+ }
98
+ </script>
99
+
100
+ <style lang="css" rel="stylesheet/scss">
101
+ </style>
@@ -0,0 +1,2 @@
1
+ import ChannelRealtimeIntersection from './ChannelRealtimeIntersection.vue'
2
+ export default ChannelRealtimeIntersection
@@ -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
- opacity: 0.9;
1268
- }
1269
- .st2 {
1270
- fill: #606060;
1300
+ fill: none;
1271
1301
  }
1272
1302
  </style>