openatc-components 0.0.13 → 0.0.16

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 (35) hide show
  1. package/package/kisscomps/components/BoardCard/BoardCard.vue +85 -0
  2. package/package/kisscomps/components/BoardCard/index.js +2 -0
  3. package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +1 -1
  4. package/package/kisscomps/components/OverLap/OverLap.vue +193 -0
  5. package/package/kisscomps/components/OverLap/index.js +2 -0
  6. package/package/kisscomps/components/PatternStatus/PatternStatus.vue +832 -0
  7. package/package/kisscomps/components/PatternStatus/index.js +2 -0
  8. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +94 -78
  9. package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +22 -42
  10. package/package/kisscomps/components/StageStatus/StageStatus.vue +303 -0
  11. package/package/kisscomps/components/StageStatus/index.js +2 -0
  12. package/package/kisscomps/components/patternList/index.js +2 -0
  13. package/package/kisscomps/components/patternList/patternList.vue +558 -0
  14. package/package/kisscomps/index.js +12 -0
  15. package/package/kissui.min.js +1 -1
  16. package/package.json +3 -3
  17. package/src/api/control.js +2 -2
  18. package/src/api/param.js +2 -2
  19. package/src/kisscomps/components/BoardCard/BoardCard.vue +85 -0
  20. package/src/kisscomps/components/BoardCard/index.js +2 -0
  21. package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +1 -1
  22. package/src/kisscomps/components/OverLap/OverLap.vue +193 -0
  23. package/src/kisscomps/components/OverLap/index.js +2 -0
  24. package/src/kisscomps/components/PatternStatus/PatternStatus.vue +832 -0
  25. package/src/kisscomps/components/PatternStatus/index.js +2 -0
  26. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +94 -78
  27. package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +22 -42
  28. package/src/kisscomps/components/StageStatus/StageStatus.vue +303 -0
  29. package/src/kisscomps/components/StageStatus/index.js +2 -0
  30. package/src/kisscomps/components/patternList/index.js +2 -0
  31. package/src/kisscomps/components/patternList/patternList.vue +558 -0
  32. package/src/kisscomps/index.js +12 -0
  33. package/src/utils/RingDataModel.js +98 -0
  34. package/src/views/intersection.vue +3 -2
  35. package/src/views/schemeconfig.vue +17 -2
@@ -0,0 +1,558 @@
1
+ <template>
2
+ <div>
3
+ <BoardCard
4
+ :patternId="patternId"
5
+ :contrloType="contrloType"
6
+ :stagesChange="stagesChange"
7
+ :patternStatusList="patternStatusList"
8
+ :cycles="cycles"
9
+ :cycle="cycle"
10
+ :localPatternList="localPatternList"
11
+ :phaseList="phaseList"
12
+ :agentId="agentId"
13
+ :controlData="controlData"
14
+ :syncTime="syncTime"
15
+ :isPhase="isPhase"
16
+ >
17
+ </BoardCard>
18
+ </div>
19
+ </template>
20
+
21
+ <script>
22
+ import BoardCard from '../BoardCard/BoardCard.vue'
23
+ export default {
24
+ name: 'pattern-list',
25
+ components: {
26
+ BoardCard
27
+ },
28
+ data () {
29
+ return {
30
+ // patternStatusList: [
31
+ // {
32
+ // 'id': 1,
33
+ // 'desc': '',
34
+ // 'offset': 0,
35
+ // 'cycle': 200,
36
+ // 'rings': [
37
+ // [
38
+ // {
39
+ // 'name': 'phase1',
40
+ // 'id': 1,
41
+ // 'value': 30,
42
+ // 'mode': 2,
43
+ // 'options': [
44
+ // 0,
45
+ // 0,
46
+ // 0
47
+ // ],
48
+ // 'minSplit': 13
49
+ // },
50
+ // {
51
+ // 'name': 'phase2',
52
+ // 'id': 2,
53
+ // 'value': 30,
54
+ // 'mode': 2,
55
+ // 'options': [
56
+ // 0,
57
+ // 0,
58
+ // 0
59
+ // ],
60
+ // 'minSplit': 13
61
+ // },
62
+ // {
63
+ // 'name': 'phase3',
64
+ // 'id': 3,
65
+ // 'value': 30,
66
+ // 'mode': 2,
67
+ // 'options': [
68
+ // 0,
69
+ // 0,
70
+ // 0
71
+ // ],
72
+ // 'minSplit': 13
73
+ // },
74
+ // {
75
+ // 'name': 'phase4',
76
+ // 'id': 4,
77
+ // 'value': 30,
78
+ // 'mode': 2,
79
+ // 'options': [
80
+ // 0,
81
+ // 0,
82
+ // 0
83
+ // ],
84
+ // 'minSplit': 13
85
+ // }
86
+ // ],
87
+ // [
88
+ // {
89
+ // 'name': 'phase5',
90
+ // 'id': 5,
91
+ // 'value': 30,
92
+ // 'mode': 2,
93
+ // 'options': [
94
+ // 0,
95
+ // 0,
96
+ // 0
97
+ // ],
98
+ // 'minSplit': 13
99
+ // },
100
+ // {
101
+ // 'name': 'phase6',
102
+ // 'id': 6,
103
+ // 'value': 30,
104
+ // 'mode': 2,
105
+ // 'options': [
106
+ // 0,
107
+ // 0,
108
+ // 0
109
+ // ],
110
+ // 'minSplit': 13
111
+ // },
112
+ // {
113
+ // 'name': 'phase7',
114
+ // 'id': 7,
115
+ // 'value': 30,
116
+ // 'mode': 2,
117
+ // 'options': [
118
+ // 0,
119
+ // 0,
120
+ // 0
121
+ // ],
122
+ // 'minSplit': 13
123
+ // },
124
+ // {
125
+ // 'name': 'phase8',
126
+ // 'id': 8,
127
+ // 'value': 30,
128
+ // 'mode': 2,
129
+ // 'options': [
130
+ // 0,
131
+ // 0,
132
+ // 0
133
+ // ],
134
+ // 'minSplit': 13
135
+ // }
136
+ // ],
137
+ // [],
138
+ // []
139
+ // ],
140
+ // 'barriers': [
141
+ // {
142
+ // 'barrier': 1,
143
+ // 'length': 60,
144
+ // 'items': [
145
+ // {
146
+ // 'ring': 2,
147
+ // 'data': [
148
+ // 5,
149
+ // 6
150
+ // ]
151
+ // },
152
+ // {
153
+ // 'ring': 1,
154
+ // 'data': [
155
+ // 1,
156
+ // 2
157
+ // ]
158
+ // }
159
+ // ]
160
+ // },
161
+ // {
162
+ // 'barrier': 2,
163
+ // 'length': 60,
164
+ // 'items': [
165
+ // {
166
+ // 'ring': 2,
167
+ // 'data': [
168
+ // 7,
169
+ // 8
170
+ // ]
171
+ // },
172
+ // {
173
+ // 'ring': 1,
174
+ // 'data': [
175
+ // 3,
176
+ // 4
177
+ // ]
178
+ // }
179
+ // ]
180
+ // }
181
+ // ],
182
+ // 'stagesList': [
183
+ // {
184
+ // 'key': 0,
185
+ // 'split': 30,
186
+ // 'stages': [
187
+ // 1,
188
+ // 5
189
+ // ],
190
+ // 'green': 20,
191
+ // 'yellow': 10,
192
+ // 'red': 10,
193
+ // 'phases': [
194
+ // 1,
195
+ // 5
196
+ // ],
197
+ // 'stageSplit': 40
198
+ // },
199
+ // {
200
+ // 'key': 1,
201
+ // 'split': 30,
202
+ // 'stages': [
203
+ // 2,
204
+ // 6
205
+ // ],
206
+ // 'green': 20,
207
+ // 'yellow': 10,
208
+ // 'red': 10,
209
+ // 'phases': [
210
+ // 2,
211
+ // 6
212
+ // ],
213
+ // 'stageSplit': 40
214
+ // },
215
+ // {
216
+ // 'key': 2,
217
+ // 'split': 30,
218
+ // 'stages': [
219
+ // 3,
220
+ // 7
221
+ // ],
222
+ // 'green': 20,
223
+ // 'yellow': 10,
224
+ // 'red': 10,
225
+ // 'phases': [
226
+ // 3,
227
+ // 7
228
+ // ],
229
+ // 'stageSplit': 40
230
+ // },
231
+ // {
232
+ // 'key': 3,
233
+ // 'split': 30,
234
+ // 'stages': [
235
+ // 4,
236
+ // 8
237
+ // ],
238
+ // 'green': 20,
239
+ // 'yellow': 10,
240
+ // 'red': 10,
241
+ // 'phases': [
242
+ // 4,
243
+ // 8
244
+ // ],
245
+ // 'stageSplit': 40
246
+ // },
247
+ // {
248
+ // 'key': 4,
249
+ // 'green': 20,
250
+ // 'yellow': 10,
251
+ // 'red': 10,
252
+ // 'phases': [
253
+ // 6,
254
+ // 4
255
+ // ],
256
+ // 'stageSplit': 40
257
+ // }
258
+ // ],
259
+ // 'stages': [
260
+ // [
261
+ // 1,
262
+ // 5
263
+ // ],
264
+ // [
265
+ // 2,
266
+ // 6
267
+ // ],
268
+ // [
269
+ // 3,
270
+ // 7
271
+ // ],
272
+ // [
273
+ // 4,
274
+ // 8
275
+ // ]
276
+ // ]
277
+ // }
278
+ // ],
279
+ // phaseList: [
280
+ // {
281
+ // 'id': 1,
282
+ // 'direction': [
283
+ // 13
284
+ // ],
285
+ // 'mingreen': 15,
286
+ // 'max1': 65,
287
+ // 'max2': 70,
288
+ // 'passage': 3,
289
+ // 'phasewalk': 0,
290
+ // 'pedclear': 8,
291
+ // 'yellow': 3,
292
+ // 'redclear': 2,
293
+ // 'flashgreen': 3,
294
+ // 'redyellow': 0,
295
+ // 'ring': 1,
296
+ // 'concurrent': [
297
+ // 5,
298
+ // 6
299
+ // ],
300
+ // 'greenpulse': 10,
301
+ // 'redpulse': 5,
302
+ // 'controltype': 0,
303
+ // 'peddirection': []
304
+ // },
305
+ // {
306
+ // 'id': 2,
307
+ // 'direction': [
308
+ // 10,
309
+ // 12
310
+ // ],
311
+ // 'mingreen': 15,
312
+ // 'max1': 65,
313
+ // 'max2': 70,
314
+ // 'passage': 3,
315
+ // 'phasewalk': 0,
316
+ // 'pedclear': 8,
317
+ // 'yellow': 3,
318
+ // 'redclear': 2,
319
+ // 'flashgreen': 3,
320
+ // 'redyellow': 0,
321
+ // 'ring': 1,
322
+ // 'concurrent': [
323
+ // 5,
324
+ // 6
325
+ // ],
326
+ // 'greenpulse': 10,
327
+ // 'redpulse': 5,
328
+ // 'controltype': 0,
329
+ // 'peddirection': []
330
+ // },
331
+ // {
332
+ // 'id': 3,
333
+ // 'direction': [
334
+ // 3
335
+ // ],
336
+ // 'mingreen': 15,
337
+ // 'max1': 65,
338
+ // 'max2': 70,
339
+ // 'passage': 3,
340
+ // 'phasewalk': 0,
341
+ // 'pedclear': 8,
342
+ // 'yellow': 3,
343
+ // 'redclear': 2,
344
+ // 'flashgreen': 3,
345
+ // 'redyellow': 0,
346
+ // 'ring': 1,
347
+ // 'concurrent': [
348
+ // 7,
349
+ // 8
350
+ // ],
351
+ // 'controltype': 2,
352
+ // 'peddirection': [
353
+ // 2,
354
+ // 3,
355
+ // 4
356
+ // ],
357
+ // 'greenpulse': 10,
358
+ // 'redpulse': 5
359
+ // },
360
+ // {
361
+ // 'id': 4,
362
+ // 'direction': [
363
+ // 6,
364
+ // 8
365
+ // ],
366
+ // 'mingreen': 15,
367
+ // 'max1': 65,
368
+ // 'max2': 70,
369
+ // 'passage': 3,
370
+ // 'phasewalk': 0,
371
+ // 'pedclear': 8,
372
+ // 'yellow': 3,
373
+ // 'redclear': 2,
374
+ // 'flashgreen': 3,
375
+ // 'redyellow': 0,
376
+ // 'ring': 1,
377
+ // 'concurrent': [
378
+ // 7,
379
+ // 8
380
+ // ],
381
+ // 'controltype': 0,
382
+ // 'peddirection': [],
383
+ // 'greenpulse': 10,
384
+ // 'redpulse': 5
385
+ // },
386
+ // {
387
+ // 'id': 5,
388
+ // 'direction': [
389
+ // 9
390
+ // ],
391
+ // 'mingreen': 15,
392
+ // 'max1': 65,
393
+ // 'max2': 70,
394
+ // 'passage': 3,
395
+ // 'phasewalk': 0,
396
+ // 'pedclear': 8,
397
+ // 'yellow': 3,
398
+ // 'redclear': 2,
399
+ // 'flashgreen': 3,
400
+ // 'redyellow': 0,
401
+ // 'ring': 2,
402
+ // 'concurrent': [
403
+ // 1,
404
+ // 2
405
+ // ],
406
+ // 'controltype': 0,
407
+ // 'peddirection': [],
408
+ // 'greenpulse': 10,
409
+ // 'redpulse': 5
410
+ // },
411
+ // {
412
+ // 'id': 6,
413
+ // 'direction': [
414
+ // 14,
415
+ // 16
416
+ // ],
417
+ // 'mingreen': 15,
418
+ // 'max1': 65,
419
+ // 'max2': 70,
420
+ // 'passage': 3,
421
+ // 'phasewalk': 0,
422
+ // 'pedclear': 8,
423
+ // 'yellow': 3,
424
+ // 'redclear': 2,
425
+ // 'flashgreen': 3,
426
+ // 'redyellow': 0,
427
+ // 'ring': 2,
428
+ // 'concurrent': [
429
+ // 2,
430
+ // 1
431
+ // ],
432
+ // 'controltype': 0,
433
+ // 'peddirection': [],
434
+ // 'greenpulse': 10,
435
+ // 'redpulse': 5
436
+ // },
437
+ // {
438
+ // 'id': 7,
439
+ // 'direction': [],
440
+ // 'mingreen': 15,
441
+ // 'max1': 65,
442
+ // 'max2': 70,
443
+ // 'passage': 3,
444
+ // 'phasewalk': 0,
445
+ // 'pedclear': 8,
446
+ // 'yellow': 3,
447
+ // 'redclear': 2,
448
+ // 'flashgreen': 3,
449
+ // 'redyellow': 0,
450
+ // 'ring': 2,
451
+ // 'concurrent': [
452
+ // 3,
453
+ // 4
454
+ // ],
455
+ // 'controltype': 2,
456
+ // 'peddirection': [
457
+ // 5,
458
+ // 6
459
+ // ],
460
+ // 'greenpulse': 10,
461
+ // 'redpulse': 5
462
+ // },
463
+ // {
464
+ // 'id': 8,
465
+ // 'direction': [
466
+ // 2,
467
+ // 4
468
+ // ],
469
+ // 'mingreen': 15,
470
+ // 'max1': 65,
471
+ // 'max2': 70,
472
+ // 'passage': 3,
473
+ // 'phasewalk': 0,
474
+ // 'pedclear': 8,
475
+ // 'yellow': 3,
476
+ // 'redclear': 2,
477
+ // 'flashgreen': 3,
478
+ // 'redyellow': 0,
479
+ // 'ring': 2,
480
+ // 'concurrent': [
481
+ // 4,
482
+ // 3
483
+ // ],
484
+ // 'controltype': 0,
485
+ // 'peddirection': [],
486
+ // 'greenpulse': 10,
487
+ // 'redpulse': 5
488
+ // }
489
+ // ],
490
+ // cycles: 120
491
+ }
492
+ },
493
+ props: {
494
+ contrloType: {
495
+ type: Boolean
496
+ },
497
+ localPatternList: {
498
+ type: Array
499
+ },
500
+ stagesChange: {
501
+ type: Array
502
+ },
503
+ phaseList: {
504
+ type: Array
505
+ },
506
+ controlData: {
507
+ type: Object
508
+ },
509
+ patternStatusList: {
510
+ type: Array
511
+ },
512
+ patternId: {
513
+ type: Number
514
+ },
515
+ agentId: {
516
+ type: String
517
+ },
518
+ isPhase: {
519
+ type: Boolean,
520
+ default: false
521
+ },
522
+ cycles: {
523
+ type: Number
524
+ },
525
+ cycle: {
526
+ type: Number
527
+ },
528
+ syncTime: {
529
+ type: Number
530
+ }
531
+ },
532
+ watch: {
533
+ // $route: {
534
+ // handler: function (val, oldVal) {
535
+ // if (val.query !== undefined) {
536
+ // this.resetCrossDiagram()
537
+ // }
538
+ // },
539
+ // // 深度观察监听
540
+ // deep: true
541
+ // },
542
+ // Token: {
543
+ // handler: function (val) {
544
+ // this.setPropsToken(val)
545
+ // }
546
+ // }
547
+ },
548
+ created () {
549
+ // if (this.$route.query !== undefined && Object.keys(this.$route.query).length) {
550
+ // this.resetCrossDiagram()
551
+ // }
552
+ }
553
+ }
554
+ </script>
555
+
556
+ <style>
557
+
558
+ </style>
@@ -3,8 +3,14 @@ import XRDDirSelector from './components/XRDDirSelector/index'
3
3
  import IntersectionWithInterface from './components/IntersectionWithInterface/index'
4
4
  import IntersectionMap from './components/IntersectionMap/index'
5
5
  import SchemeConfig from './components/SchemeConfig/index'
6
+ import lockingPhaselControlModal from './components/SchemeConfig/lockingPhaselControlModal/index'
6
7
  import FaultDetailModal from './components/FaultDetailModal/index'
7
8
  import CommonKanban from './components/CommonKanban/index'
9
+ import patternList from './components/patternList/index'
10
+ import PatternStatus from './components/PatternStatus/index'
11
+ import BoardCard from './components/BoardCard/index'
12
+ import StageStatus from './components/StageStatus/index'
13
+ import OverLap from './components/OverLap/index'
8
14
 
9
15
  import en from '../i18n/language/en'
10
16
  import zh from '../i18n/language/zh'
@@ -16,7 +22,13 @@ const components = {
16
22
  IntersectionWithInterface,
17
23
  IntersectionMap,
18
24
  SchemeConfig,
25
+ lockingPhaselControlModal,
19
26
  FaultDetailModal,
27
+ PatternStatus,
28
+ BoardCard,
29
+ OverLap,
30
+ StageStatus,
31
+ patternList,
20
32
  CommonKanban
21
33
  }
22
34