openatc-components 0.2.44 → 0.2.46

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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.2.44",
3
+ "version": "0.2.46",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -121,6 +121,7 @@ export default {
121
121
  } else {
122
122
  direction.push({
123
123
  id: '',
124
+ color: '#454545',
124
125
  peddirection: this.getPedPhasePos(i.peddirection)
125
126
  })
126
127
  }
@@ -137,6 +138,7 @@ export default {
137
138
  key: this.CrossDiagramMgr.getUniqueKey('pedphase'),
138
139
  phaseid: i.id, // 相位id,用于对应相位状态
139
140
  id: dir,
141
+ color: '#454545',
140
142
  name: this.PhaseDataModel.getSidePos(dir).name
141
143
  })
142
144
  }
@@ -557,7 +557,7 @@ export default {
557
557
  this.changeStatus()
558
558
  }
559
559
  this.setPropsToken(this.Token)
560
- await this.getPhase()
560
+ // await this.getPhase()
561
561
  this.getFault()
562
562
  this.initData()
563
563
  },
@@ -4,6 +4,7 @@
4
4
  v-model="valuess"
5
5
  :multiple="multiple"
6
6
  :disabled="disabled"
7
+ size="small"
7
8
  @visible-change="visibleChange($event)"
8
9
  :clearable="clearable"
9
10
  :filterable="filterable"
@@ -23,10 +23,10 @@
23
23
  :options="options">
24
24
  <div class="stage-item" >
25
25
  <el-row :gutter="0">
26
- <el-col :span="12">
26
+ <el-col :span="6">
27
27
  {{this.$t('openatccomponents.overview.phasesplit')}}
28
28
  </el-col>
29
- <el-col :span="12">
29
+ <el-col :span="18">
30
30
  <el-input-number
31
31
  v-if="isRing"
32
32
  class="stage-value"
@@ -49,10 +49,10 @@
49
49
  </el-col>
50
50
  </el-row>
51
51
  <el-row :gutter="0">
52
- <el-col :span="12">
52
+ <el-col :span="6">
53
53
  {{this.$t('openatccomponents.pattern.phase')}}
54
54
  </el-col>
55
- <el-col :span="12">
55
+ <el-col :span="18">
56
56
  <SelectCrossPhase
57
57
  v-if="isRing"
58
58
  type="phases"
@@ -82,10 +82,10 @@
82
82
  </el-col>
83
83
  </el-row>
84
84
  <el-row :gutter="0" v-if="isRing">
85
- <el-col :span="12">
85
+ <el-col :span="6">
86
86
  {{this.$t('openatccomponents.pattern.green')}}
87
87
  </el-col>
88
- <el-col :span="12">
88
+ <el-col :span="18">
89
89
  <el-input-number
90
90
  class="stage-value"
91
91
  size="small"
@@ -97,10 +97,10 @@
97
97
  </el-col>
98
98
  </el-row>
99
99
  <el-row :gutter="0" v-if="isRing">
100
- <el-col :span="12">
100
+ <el-col :span="6">
101
101
  {{this.$t('openatccomponents.pattern.yellow')}}
102
102
  </el-col>
103
- <el-col :span="12">
103
+ <el-col :span="18">
104
104
  <el-input-number
105
105
  class="stage-value"
106
106
  size="small"
@@ -112,10 +112,10 @@
112
112
  </el-col>
113
113
  </el-row>
114
114
  <el-row :gutter="0" v-if="isRing">
115
- <el-col :span="12">
115
+ <el-col :span="6">
116
116
  {{this.$t('openatccomponents.pattern.red')}}
117
117
  </el-col>
118
- <el-col :span="12">
118
+ <el-col :span="18">
119
119
  <el-input-number
120
120
  class="stage-value"
121
121
  size="small"
@@ -304,6 +304,9 @@ export default {
304
304
  color: color
305
305
  }
306
306
  dirArr.push(recd)
307
+ for(let i=0;i<rec.peddirection.length;i++) {
308
+ rec.peddirection[i].color = color
309
+ }
307
310
  }
308
311
  return dirArr
309
312
  }
@@ -484,7 +484,6 @@
484
484
  </template>
485
485
  <script>
486
486
  import { mapState } from 'vuex'
487
- import { getTheme } from '../../../utils/auth.js'
488
487
 
489
488
  export default {
490
489
  name: 'xdr-dir-selector',
@@ -556,196 +555,168 @@ export default {
556
555
  id: 1,
557
556
  name: '东西路段人行横道',
558
557
  isshow: false,
559
- color: getTheme() === 'light' ? '#040000' : '#fff',
560
558
  lockColor: '#7ccc66'
561
559
  },
562
560
  {
563
561
  id: 2,
564
562
  name: '南北路段人行横道',
565
563
  isshow: false,
566
- color: getTheme() === 'light' ? '#040000' : '#fff',
567
564
  lockColor: '#7ccc66'
568
565
  },
569
566
  {
570
567
  id: 3,
571
568
  name: 'X人行横道-\\',
572
569
  isshow: false,
573
- color: getTheme() === 'light' ? '#040000' : '#fff',
574
570
  lockColor: '#7ccc66'
575
571
  },
576
572
  {
577
573
  id: 4,
578
574
  name: 'X人行横道-/',
579
575
  isshow: false,
580
- color: getTheme() === 'light' ? '#040000' : '#fff',
581
576
  lockColor: '#7ccc66'
582
577
  },
583
578
  {
584
579
  id: 5,
585
580
  name: '北人行横道',
586
581
  isshow: false,
587
- color: getTheme() === 'light' ? '#040000' : '#fff',
588
582
  lockColor: '#7ccc66'
589
583
  },
590
584
  {
591
585
  id: 6,
592
586
  name: '南人行横道',
593
587
  isshow: false,
594
- color: getTheme() === 'light' ? '#040000' : '#fff',
595
588
  lockColor: '#7ccc66'
596
589
  },
597
590
  {
598
591
  id: 7,
599
592
  name: '东人行横道',
600
593
  isshow: false,
601
- color: getTheme() === 'light' ? '#040000' : '#fff',
602
594
  lockColor: '#7ccc66'
603
595
  },
604
596
  {
605
597
  id: 8,
606
598
  name: '西人行横道',
607
599
  isshow: false,
608
- color: getTheme() === 'light' ? '#040000' : '#fff',
609
600
  lockColor: '#7ccc66'
610
601
  },
611
602
  {
612
603
  id: 9,
613
604
  name: '西人行横道-下',
614
605
  isshow: false,
615
- color: getTheme() === 'light' ? '#040000' : '#fff',
616
606
  lockColor: '#7ccc66'
617
607
  },
618
608
  {
619
609
  id: 10,
620
610
  name: '西人行横道-上',
621
611
  isshow: false,
622
- color: getTheme() === 'light' ? '#040000' : '#fff',
623
612
  lockColor: '#7ccc66'
624
613
  },
625
614
  {
626
615
  id: 11,
627
616
  name: '东人行横道-上',
628
617
  isshow: false,
629
- color: getTheme() === 'light' ? '#040000' : '#fff',
630
618
  lockColor: '#7ccc66'
631
619
  },
632
620
  {
633
621
  id: 12,
634
622
  name: '东人行横道-下',
635
623
  isshow: false,
636
- color: getTheme() === 'light' ? '#040000' : '#fff',
637
624
  lockColor: '#7ccc66'
638
625
  },
639
626
  {
640
627
  id: 13,
641
628
  name: '南人行横道-右',
642
629
  isshow: false,
643
- color: getTheme() === 'light' ? '#040000' : '#fff',
644
630
  lockColor: '#7ccc66'
645
631
  },
646
632
  {
647
633
  id: 14,
648
634
  name: '南人行横道-左',
649
635
  isshow: false,
650
- color: getTheme() === 'light' ? '#040000' : '#fff',
651
636
  lockColor: '#7ccc66'
652
637
  },
653
638
  {
654
639
  id: 15,
655
640
  name: '北人行横道-右',
656
641
  isshow: false,
657
- color: getTheme() === 'light' ? '#040000' : '#fff',
658
642
  lockColor: '#7ccc66'
659
643
  },
660
644
  {
661
645
  id: 16,
662
646
  name: '北人行横道-左',
663
647
  isshow: false,
664
- color: getTheme() === 'light' ? '#040000' : '#fff',
665
648
  lockColor: '#7ccc66'
666
649
  },
667
650
  {
668
651
  id: 17,
669
652
  name: '东南人行横道',
670
653
  isshow: false,
671
- color: getTheme() === 'light' ? '#040000' : '#fff',
672
654
  lockColor: '#7ccc66'
673
655
  },
674
656
  {
675
657
  id: 18,
676
658
  name: '西南人行横道',
677
659
  isshow: false,
678
- color: getTheme() === 'light' ? '#040000' : '#fff',
679
660
  lockColor: '#7ccc66'
680
661
  },
681
662
  {
682
663
  id: 19,
683
664
  name: '东北人行横道',
684
665
  isshow: false,
685
- color: getTheme() === 'light' ? '#040000' : '#fff',
686
666
  lockColor: '#7ccc66'
687
667
  },
688
668
  {
689
669
  id: 20,
690
670
  name: '西北人行横道',
691
671
  isshow: false,
692
- color: getTheme() === 'light' ? '#040000' : '#fff',
693
672
  lockColor: '#7ccc66'
694
673
  },
695
674
  {
696
675
  id: 21,
697
676
  name: '东南人行横道-上',
698
677
  isshow: false,
699
- color: getTheme() === 'light' ? '#040000' : '#fff',
700
678
  lockColor: '#7ccc66'
701
679
  },
702
680
  {
703
681
  id: 22,
704
682
  name: '东南人行横道-下',
705
683
  isshow: false,
706
- color: getTheme() === 'light' ? '#040000' : '#fff',
707
684
  lockColor: '#7ccc66'
708
685
  },
709
686
  {
710
687
  id: 23,
711
688
  name: '西南人行横道-上',
712
689
  isshow: false,
713
- color: getTheme() === 'light' ? '#040000' : '#fff',
714
690
  lockColor: '#7ccc66'
715
691
  },
716
692
  {
717
693
  id: 24,
718
694
  name: '西南人行横道-下',
719
695
  isshow: false,
720
- color: getTheme() === 'light' ? '#040000' : '#fff',
721
696
  lockColor: '#7ccc66'
722
697
  },
723
698
  {
724
699
  id: 25,
725
700
  name: '东北人行横道-上',
726
701
  isshow: false,
727
- color: getTheme() === 'light' ? '#040000' : '#fff',
728
702
  lockColor: '#7ccc66'
729
703
  },
730
704
  {
731
705
  id: 26,
732
706
  name: '东北人行横道-下',
733
707
  isshow: false,
734
- color: getTheme() === 'light' ? '#040000' : '#fff',
735
708
  lockColor: '#7ccc66'
736
709
  },
737
710
  {
738
711
  id: 27,
739
712
  name: '西北人行横道-上',
740
713
  isshow: false,
741
- color: getTheme() === 'light' ? '#040000' : '#fff',
742
714
  lockColor: '#7ccc66'
743
715
  },
744
716
  {
745
717
  id: 28,
746
718
  name: '西北人行横道-下',
747
719
  isshow: false,
748
- color: getTheme() === 'light' ? '#040000' : '#fff',
749
720
  lockColor: '#7ccc66'
750
721
  }
751
722
  ],
@@ -7,7 +7,7 @@ export default new Router({
7
7
  {
8
8
  path: '/',
9
9
  component: (resolve) => {
10
- require(['@/views/intersection'], resolve)
10
+ require(['@/views/overView'], resolve)
11
11
  }
12
12
  },
13
13
  {
@@ -1 +0,0 @@
1
- {}