openatc-components 0.1.18 → 0.1.20

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.
@@ -15,7 +15,8 @@
15
15
  <el-option
16
16
  v-for="item in patternSelect"
17
17
  :key="item.value"
18
- :value="item.desc">
18
+ :label="item.label"
19
+ :value="item.value">
19
20
  </el-option>
20
21
  </el-select>
21
22
  <!-- <el-input v-model="manualInfo.tempDuration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
@@ -67,22 +68,17 @@
67
68
  <el-row>
68
69
  <el-tabs v-model="activeList" type="card">
69
70
  <el-tab-pane :label="$t('openatccomponents.pattern.ringConfig')" name="ring">
70
- <!-- <el-row :gutter="20"> -->
71
- <!-- <el-col :span="12" > -->
72
- <!-- <div class="components-container board" > -->
73
- <div style="width: 100%; overflow: hidden;margin-top: 20px;">
74
- <kan-ban v-for="n in ringCount"
75
- :key="n" class="closephasekanban"
76
- :index="n"
77
- :options="patternOne.length===0?allPatternList[0].options:patternOne[0].options"
78
- :list="patternOne.length===0?planPattern.rings[n-1]:patternOne[0].rings[n-1]"
79
- :phaseList="phaseList"
80
- :header-text="$t('openatccomponents.pattern.ring')+n"
81
- @handleSplit="handleSplit">
82
- </kan-ban>
83
- </div>
84
- <!-- </el-col> -->
85
- <!-- </el-row> -->
71
+ <div style="width: 100%; overflow: hidden;margin-top: 20px;">
72
+ <kan-ban v-for="n in ringCount"
73
+ :key="n" class="closephasekanban"
74
+ :index="n"
75
+ :options="patternOne.length===0?allPatternList[0].options:patternOne[0].options"
76
+ :list="patternOne.length===0?planPattern.rings[n-1]:patternOne[0].rings[n-1]"
77
+ :phaseList="phaseList"
78
+ :header-text="$t('openatccomponents.pattern.ring')+n"
79
+ @handleSplit="handleSplit">
80
+ </kan-ban>
81
+ </div>
86
82
  </el-tab-pane>
87
83
  <el-tab-pane :label="$t('openatccomponents.pattern.stageConfig')" name="kanban">
88
84
  <el-scrollbar :vertical="true">
@@ -106,7 +102,6 @@
106
102
  </el-tab-pane>
107
103
  <el-tab-pane :label="$t('openatccomponents.pattern.parameters')" name="parame">
108
104
  <el-row>
109
- <!-- <el-col :span="12"> -->
110
105
  <expend-config
111
106
  v-for="(j,index) in ringCounts"
112
107
  :key="index"
@@ -116,8 +111,6 @@
116
111
  :list="patternOne.length===0?planPattern.rings[j-1]:patternOne[0].rings[j-1]"
117
112
  >
118
113
  </expend-config>
119
- <!-- </el-col> -->
120
- <!-- <el-col :span="12"> -->
121
114
  <div style="width: 60%;margin: 10px auto;color:#ffffff">
122
115
  {{$t('openatccomponents.pattern.forbiddenstage')}}
123
116
  <el-input class="stage-value" size="small" v-model="forbiddenstage"></el-input>
@@ -127,12 +120,9 @@
127
120
  <el-input class="stage-value" size="small" v-model="screenstage"></el-input>
128
121
  </div>
129
122
  <div style="width: 60%;margin: 10px auto;color:#ffffff">
130
- <!-- <el-col :span="8"> -->
131
123
  {{$t('openatccomponents.pattern.coordinatestage')}}
132
124
  <el-input class="stage-value" size="small" v-model="coordinatestage"></el-input>
133
- <!-- </el-col> -->
134
125
  </div>
135
- <!-- </el-col> -->
136
126
  </el-row>
137
127
  </el-tab-pane>
138
128
  <el-tab-pane :label="$t('openatccomponents.pattern.overLap')" name="overlap">
@@ -213,96 +203,6 @@ export default {
213
203
  options: {
214
204
  group: 'pattern'
215
205
  },
216
- // overlap: [
217
- // {
218
- // 'id': 1,
219
- // 'desc': '东方向南半测行人相位',
220
- // 'includedphases': [
221
- // 1,
222
- // 8
223
- // ],
224
- // 'peddirection': [
225
- // 6
226
- // ]
227
- // },
228
- // {
229
- // 'id': 2,
230
- // 'desc': '东方向北半测行人相位',
231
- // 'includedphases': [
232
- // 1,
233
- // 2
234
- // ],
235
- // 'peddirection': [
236
- // 5
237
- // ]
238
- // },
239
- // {
240
- // 'id': 3,
241
- // 'desc': '西方向南半测行人相位',
242
- // 'includedphases': [
243
- // 5,
244
- // 6
245
- // ],
246
- // 'peddirection': [
247
- // 8
248
- // ]
249
- // },
250
- // {
251
- // 'id': 4,
252
- // 'desc': '西方向北半测行人相位',
253
- // 'includedphases': [
254
- // 4,
255
- // 5
256
- // ],
257
- // 'peddirection': [
258
- // 7
259
- // ]
260
- // },
261
- // {
262
- // 'id': 5,
263
- // 'desc': '南方向东半测行人相位',
264
- // 'includedphases': [
265
- // 7,
266
- // 8
267
- // ],
268
- // 'peddirection': [
269
- // 10
270
- // ]
271
- // },
272
- // {
273
- // 'id': 6,
274
- // 'desc': '南方向西半测行人相位',
275
- // 'includedphases': [
276
- // 6,
277
- // 7
278
- // ],
279
- // 'peddirection': [
280
- // 9
281
- // ]
282
- // },
283
- // {
284
- // 'id': 7,
285
- // 'desc': '北方向东半测行人相位',
286
- // 'includedphases': [
287
- // 2,
288
- // 3
289
- // ],
290
- // 'peddirection': [
291
- // 12
292
- // ]
293
- // },
294
- // {
295
- // 'id': 8,
296
- // 'desc': '北方向西半测行人相位',
297
- // 'includedphases': [
298
- // 3,
299
- // 4
300
- // ],
301
- // 'peddirection': [
302
- // 11
303
- // ]
304
- // }
305
- // ],
306
206
  max: '',
307
207
  patternCycleEqual: true,
308
208
  activeList: 'ring',
@@ -311,727 +211,6 @@ export default {
311
211
  coordphaseOption: [],
312
212
  patternOne: [],
313
213
  planPattern: {},
314
- // allPatternList: [
315
- // {
316
- // 'id': 1,
317
- // 'desc': '',
318
- // 'offset': 10,
319
- // 'cycle': 120,
320
- // 'rings': [
321
- // [
322
- // {
323
- // 'name': 'phase1',
324
- // 'id': 1,
325
- // 'value': 30,
326
- // 'mode': 2,
327
- // 'options': [],
328
- // 'minSplit': 20,
329
- // 'desc': [
330
- // {
331
- // 'id': 13,
332
- // 'color': '#454545'
333
- // }
334
- // ]
335
- // },
336
- // {
337
- // 'name': 'phase2',
338
- // 'id': 2,
339
- // 'value': 30,
340
- // 'mode': 2,
341
- // 'options': [],
342
- // 'minSplit': 20,
343
- // 'desc': [
344
- // {
345
- // 'id': 10,
346
- // 'color': '#454545'
347
- // },
348
- // {
349
- // 'id': 12,
350
- // 'color': '#454545'
351
- // }
352
- // ]
353
- // },
354
- // {
355
- // 'name': 'phase3',
356
- // 'id': 3,
357
- // 'value': 30,
358
- // 'mode': 2,
359
- // 'options': [],
360
- // 'minSplit': 20,
361
- // 'desc': [
362
- // {
363
- // 'id': 1,
364
- // 'color': '#454545'
365
- // }
366
- // ]
367
- // },
368
- // {
369
- // 'name': 'phase4',
370
- // 'id': 4,
371
- // 'value': 30,
372
- // 'mode': 2,
373
- // 'options': [],
374
- // 'minSplit': 20,
375
- // 'desc': [
376
- // {
377
- // 'id': 6,
378
- // 'color': '#454545'
379
- // },
380
- // {
381
- // 'id': 8,
382
- // 'color': '#454545'
383
- // }
384
- // ]
385
- // }
386
- // ],
387
- // [
388
- // {
389
- // 'name': 'phase5',
390
- // 'id': 5,
391
- // 'value': 30,
392
- // 'mode': 2,
393
- // 'options': [],
394
- // 'minSplit': 20,
395
- // 'desc': [
396
- // {
397
- // 'id': 9,
398
- // 'color': '#454545'
399
- // }
400
- // ]
401
- // },
402
- // {
403
- // 'name': 'phase6',
404
- // 'id': 6,
405
- // 'value': 30,
406
- // 'mode': 2,
407
- // 'options': [],
408
- // 'minSplit': 20,
409
- // 'desc': [
410
- // {
411
- // 'id': 14,
412
- // 'color': '#454545'
413
- // },
414
- // {
415
- // 'id': 16,
416
- // 'color': '#454545'
417
- // }
418
- // ]
419
- // },
420
- // {
421
- // 'name': 'phase7',
422
- // 'id': 7,
423
- // 'value': 30,
424
- // 'mode': 2,
425
- // 'options': [],
426
- // 'minSplit': 20,
427
- // 'desc': [
428
- // {
429
- // 'id': 5,
430
- // 'color': '#454545'
431
- // }
432
- // ]
433
- // },
434
- // {
435
- // 'name': 'phase8',
436
- // 'id': 8,
437
- // 'value': 30,
438
- // 'mode': 2,
439
- // 'options': [],
440
- // 'minSplit': 20,
441
- // 'desc': [
442
- // {
443
- // 'id': 2,
444
- // 'color': '#454545'
445
- // },
446
- // {
447
- // 'id': 4,
448
- // 'color': '#454545'
449
- // }
450
- // ]
451
- // }
452
- // ],
453
- // [],
454
- // []
455
- // ],
456
- // 'barriers': [
457
- // {
458
- // 'barrier': 1,
459
- // 'length': 60,
460
- // 'items': [
461
- // {
462
- // 'ring': 2,
463
- // 'data': [
464
- // 5,
465
- // 6
466
- // ]
467
- // },
468
- // {
469
- // 'ring': 1,
470
- // 'data': [
471
- // 1,
472
- // 2
473
- // ]
474
- // }
475
- // ]
476
- // },
477
- // {
478
- // 'barrier': 2,
479
- // 'length': 60,
480
- // 'items': [
481
- // {
482
- // 'ring': 2,
483
- // 'data': [
484
- // 7,
485
- // 8
486
- // ]
487
- // },
488
- // {
489
- // 'ring': 1,
490
- // 'data': [
491
- // 3,
492
- // 4
493
- // ]
494
- // }
495
- // ]
496
- // }
497
- // ],
498
- // 'stagesList': [
499
- // {
500
- // 'split': 30,
501
- // 'stages': [
502
- // 1,
503
- // 5
504
- // ]
505
- // },
506
- // {
507
- // 'split': 30,
508
- // 'stages': [
509
- // 2,
510
- // 6
511
- // ]
512
- // },
513
- // {
514
- // 'split': 30,
515
- // 'stages': [
516
- // 3,
517
- // 7
518
- // ]
519
- // },
520
- // {
521
- // 'split': 30,
522
- // 'stages': [
523
- // 4,
524
- // 8
525
- // ]
526
- // }
527
- // ],
528
- // 'stages': [
529
- // [
530
- // 1,
531
- // 5
532
- // ],
533
- // [
534
- // 2,
535
- // 6
536
- // ],
537
- // [
538
- // 3,
539
- // 7
540
- // ],
541
- // [
542
- // 4,
543
- // 8
544
- // ]
545
- // ]
546
- // },
547
- // {
548
- // 'id': 2,
549
- // 'desc': '方案2',
550
- // 'offset': 0,
551
- // 'cycle': 110,
552
- // 'rings': [
553
- // [
554
- // {
555
- // 'name': 'phase1',
556
- // 'id': 1,
557
- // 'value': 20,
558
- // 'mode': 2,
559
- // 'options': [
560
- // 0,
561
- // 0,
562
- // 0
563
- // ],
564
- // 'minSplit': 13,
565
- // 'delaystart': 0,
566
- // 'advanceend': 0
567
- // },
568
- // {
569
- // 'name': 'phase2',
570
- // 'id': 2,
571
- // 'value': 35,
572
- // 'mode': 2,
573
- // 'options': [
574
- // 0,
575
- // 0,
576
- // 0
577
- // ],
578
- // 'minSplit': 13,
579
- // 'delaystart': 0,
580
- // 'advanceend': 0
581
- // },
582
- // {
583
- // 'name': 'phase3',
584
- // 'id': 3,
585
- // 'value': 30,
586
- // 'mode': 2,
587
- // 'options': [
588
- // 0,
589
- // 0,
590
- // 0
591
- // ],
592
- // 'minSplit': 13,
593
- // 'delaystart': 0,
594
- // 'advanceend': 0
595
- // },
596
- // {
597
- // 'name': 'phase4',
598
- // 'id': 4,
599
- // 'value': 25,
600
- // 'mode': 2,
601
- // 'options': [
602
- // 0,
603
- // 0,
604
- // 0
605
- // ],
606
- // 'minSplit': 13,
607
- // 'delaystart': 0,
608
- // 'advanceend': 0
609
- // }
610
- // ],
611
- // [
612
- // {
613
- // 'name': 'Phase 5',
614
- // 'id': 5,
615
- // 'value': 27,
616
- // 'mode': 2,
617
- // 'options': [
618
- // 0,
619
- // 0,
620
- // 0
621
- // ],
622
- // 'minSplit': 13,
623
- // 'delaystart': 0,
624
- // 'advanceend': 0
625
- // },
626
- // {
627
- // 'name': 'Phase 6',
628
- // 'id': 6,
629
- // 'value': 28,
630
- // 'mode': 2,
631
- // 'options': [
632
- // 0,
633
- // 0,
634
- // 0
635
- // ],
636
- // 'minSplit': 13,
637
- // 'delaystart': 0,
638
- // 'advanceend': 0
639
- // },
640
- // {
641
- // 'name': 'Phase 7',
642
- // 'id': 7,
643
- // 'value': 35,
644
- // 'mode': 2,
645
- // 'options': [
646
- // 0,
647
- // 0,
648
- // 0
649
- // ],
650
- // 'minSplit': 13,
651
- // 'delaystart': 0,
652
- // 'advanceend': 0
653
- // },
654
- // {
655
- // 'name': 'Phase 8',
656
- // 'id': 8,
657
- // 'value': 20,
658
- // 'mode': 2,
659
- // 'options': [
660
- // 0,
661
- // 0,
662
- // 0
663
- // ],
664
- // 'minSplit': 13,
665
- // 'delaystart': 0,
666
- // 'advanceend': 0
667
- // }
668
- // ],
669
- // [],
670
- // []
671
- // ],
672
- // 'stagesList': [
673
- // {
674
- // 'split': 20,
675
- // 'stages': [
676
- // 1,
677
- // 5
678
- // ],
679
- // 'delaystart': 0,
680
- // 'advanceend': 0
681
- // },
682
- // {
683
- // 'split': 7,
684
- // 'stages': [
685
- // 2,
686
- // 5
687
- // ],
688
- // 'delaystart': 0,
689
- // 'advanceend': 0
690
- // },
691
- // {
692
- // 'split': 28,
693
- // 'stages': [
694
- // 2,
695
- // 6
696
- // ],
697
- // 'delaystart': 0,
698
- // 'advanceend': 0
699
- // },
700
- // {
701
- // 'split': 30,
702
- // 'stages': [
703
- // 3,
704
- // 7
705
- // ],
706
- // 'delaystart': 0,
707
- // 'advanceend': 0
708
- // },
709
- // {
710
- // 'split': 5,
711
- // 'stages': [
712
- // 4,
713
- // 7
714
- // ],
715
- // 'delaystart': 0,
716
- // 'advanceend': 0
717
- // },
718
- // {
719
- // 'split': 20,
720
- // 'stages': [
721
- // 4,
722
- // 8
723
- // ],
724
- // 'delaystart': 0,
725
- // 'advanceend': 0
726
- // }
727
- // ],
728
- // 'stages': [
729
- // [
730
- // 1,
731
- // 5
732
- // ],
733
- // [
734
- // 2,
735
- // 5
736
- // ],
737
- // [
738
- // 2,
739
- // 6
740
- // ],
741
- // [
742
- // 3,
743
- // 7
744
- // ],
745
- // [
746
- // 4,
747
- // 7
748
- // ],
749
- // [
750
- // 4,
751
- // 8
752
- // ]
753
- // ],
754
- // 'barriers': [
755
- // {
756
- // 'barrier': 1,
757
- // 'length': 55,
758
- // 'items': [
759
- // {
760
- // 'ring': 2,
761
- // 'data': [
762
- // 5,
763
- // 6
764
- // ]
765
- // },
766
- // {
767
- // 'ring': 1,
768
- // 'data': [
769
- // 1,
770
- // 2
771
- // ]
772
- // }
773
- // ]
774
- // },
775
- // {
776
- // 'barrier': 2,
777
- // 'length': 55,
778
- // 'items': [
779
- // {
780
- // 'ring': 2,
781
- // 'data': [
782
- // 7,
783
- // 8
784
- // ]
785
- // },
786
- // {
787
- // 'ring': 1,
788
- // 'data': [
789
- // 3,
790
- // 4
791
- // ]
792
- // }
793
- // ]
794
- // }
795
- // ]
796
- // },
797
- // {
798
- // 'id': 3,
799
- // 'desc': '方案3',
800
- // 'offset': 0,
801
- // 'cycle': 120,
802
- // 'rings': [
803
- // [
804
- // {
805
- // 'name': 'phase1',
806
- // 'id': 1,
807
- // 'value': 40,
808
- // 'mode': 2,
809
- // 'options': [
810
- // 0,
811
- // 0,
812
- // 0
813
- // ],
814
- // 'minSplit': 13,
815
- // 'delaystart': 0,
816
- // 'advanceend': 0
817
- // },
818
- // {
819
- // 'name': 'phase2',
820
- // 'id': 2,
821
- // 'value': 20,
822
- // 'mode': 2,
823
- // 'options': [
824
- // 0,
825
- // 0,
826
- // 0
827
- // ],
828
- // 'minSplit': 13,
829
- // 'delaystart': 0,
830
- // 'advanceend': 0
831
- // },
832
- // {
833
- // 'name': 'phase3',
834
- // 'id': 3,
835
- // 'value': 30,
836
- // 'mode': 2,
837
- // 'options': [
838
- // 0,
839
- // 0,
840
- // 0
841
- // ],
842
- // 'minSplit': 13,
843
- // 'delaystart': 0,
844
- // 'advanceend': 0
845
- // },
846
- // {
847
- // 'name': 'phase4',
848
- // 'id': 4,
849
- // 'value': 30,
850
- // 'mode': 2,
851
- // 'options': [
852
- // 0,
853
- // 0,
854
- // 0
855
- // ],
856
- // 'minSplit': 13,
857
- // 'delaystart': 0,
858
- // 'advanceend': 0
859
- // }
860
- // ],
861
- // [
862
- // {
863
- // 'name': 'Phase 5',
864
- // 'id': 5,
865
- // 'value': 20,
866
- // 'mode': 2,
867
- // 'options': [
868
- // 0,
869
- // 0,
870
- // 0
871
- // ],
872
- // 'minSplit': 13,
873
- // 'delaystart': 0,
874
- // 'advanceend': 0
875
- // },
876
- // {
877
- // 'name': 'Phase 6',
878
- // 'id': 6,
879
- // 'value': 40,
880
- // 'mode': 2,
881
- // 'options': [
882
- // 0,
883
- // 0,
884
- // 0
885
- // ],
886
- // 'minSplit': 13,
887
- // 'delaystart': 0,
888
- // 'advanceend': 0
889
- // },
890
- // {
891
- // 'name': 'Phase 7',
892
- // 'id': 7,
893
- // 'value': 30,
894
- // 'mode': 2,
895
- // 'options': [
896
- // 0,
897
- // 0,
898
- // 0
899
- // ],
900
- // 'minSplit': 13,
901
- // 'delaystart': 0,
902
- // 'advanceend': 0
903
- // },
904
- // {
905
- // 'name': 'Phase 8',
906
- // 'id': 8,
907
- // 'value': 30,
908
- // 'mode': 2,
909
- // 'options': [
910
- // 0,
911
- // 0,
912
- // 0
913
- // ],
914
- // 'minSplit': 13,
915
- // 'delaystart': 0,
916
- // 'advanceend': 0
917
- // }
918
- // ],
919
- // [],
920
- // []
921
- // ],
922
- // 'stagesList': [
923
- // {
924
- // 'split': 20,
925
- // 'stages': [
926
- // 1,
927
- // 5
928
- // ],
929
- // 'delaystart': 0,
930
- // 'advanceend': 0
931
- // },
932
- // {
933
- // 'split': 20,
934
- // 'stages': [
935
- // 1,
936
- // 6
937
- // ],
938
- // 'delaystart': 0,
939
- // 'advanceend': 0
940
- // },
941
- // {
942
- // 'split': 20,
943
- // 'stages': [
944
- // 2,
945
- // 6
946
- // ],
947
- // 'delaystart': 0,
948
- // 'advanceend': 0
949
- // },
950
- // {
951
- // 'split': 30,
952
- // 'stages': [
953
- // 3,
954
- // 7
955
- // ],
956
- // 'delaystart': 0,
957
- // 'advanceend': 0
958
- // },
959
- // {
960
- // 'split': 30,
961
- // 'stages': [
962
- // 4,
963
- // 8
964
- // ],
965
- // 'delaystart': 0,
966
- // 'advanceend': 0
967
- // }
968
- // ],
969
- // 'stages': [
970
- // [
971
- // 1,
972
- // 5
973
- // ],
974
- // [
975
- // 1,
976
- // 6
977
- // ],
978
- // [
979
- // 2,
980
- // 6
981
- // ],
982
- // [
983
- // 3,
984
- // 7
985
- // ],
986
- // [
987
- // 4,
988
- // 8
989
- // ]
990
- // ],
991
- // 'barriers': [
992
- // {
993
- // 'barrier': 1,
994
- // 'length': 60,
995
- // 'items': [
996
- // {
997
- // 'ring': 2,
998
- // 'data': [
999
- // 5,
1000
- // 6
1001
- // ]
1002
- // },
1003
- // {
1004
- // 'ring': 1,
1005
- // 'data': [
1006
- // 1,
1007
- // 2
1008
- // ]
1009
- // }
1010
- // ]
1011
- // },
1012
- // {
1013
- // 'barrier': 2,
1014
- // 'length': 60,
1015
- // 'items': [
1016
- // {
1017
- // 'ring': 2,
1018
- // 'data': [
1019
- // 7,
1020
- // 8
1021
- // ]
1022
- // },
1023
- // {
1024
- // 'ring': 1,
1025
- // 'data': [
1026
- // 3,
1027
- // 4
1028
- // ]
1029
- // }
1030
- // ]
1031
- // }
1032
- // ]
1033
- // }
1034
- // ],
1035
214
  manualInfo: {
1036
215
  tempPatternid: '',
1037
216
  offset: 0,
@@ -1174,7 +353,7 @@ export default {
1174
353
  },
1175
354
  selectPattern () {
1176
355
  this.manualInfo.offset = 0
1177
- let selectId = isNaN(parseInt(this.manualInfo.tempPatternid)) ? Number(this.manualInfo.tempPatternid.replace(/[^0-9]/ig, '')) : this.manualInfo.tempPatternid
356
+ let selectId = Number(this.manualInfo.tempPatternid)
1178
357
  this.patternOne = this.allPatternList.filter(item => {
1179
358
  return item.id === selectId
1180
359
  })