openatc-components 0.2.37 → 0.2.39

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 (42) hide show
  1. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/PatternWalkSvg.vue +429 -0
  2. package/package/kisscomps/components/PatternStatus/PatternStatus.vue +7 -4
  3. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +181 -28
  4. package/package/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +75 -32
  5. package/package/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +15 -4
  6. package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +40 -17
  7. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +3 -3
  8. package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +22 -12
  9. package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -1
  10. package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +23 -12
  11. package/package/kisscomps/components/StageBord/StageBord.vue +1 -0
  12. package/package/kisscomps/components/Stages/index.vue +52 -11
  13. package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +30 -28
  14. package/package/kissui.min.js +1 -1
  15. package/package.json +1 -1
  16. package/src/i18n/language/en.js +6 -1
  17. package/src/i18n/language/zh.js +7 -2
  18. package/src/icons/svg/fangxiangsuoding.svg +1 -0
  19. package/src/icons/svg/jieduansuoding.svg +1 -0
  20. package/src/icons/svg/xiangweisuoding.svg +1 -0
  21. package/src/kisscomps/components/PatternStatus/PatternStatus.vue +7 -4
  22. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +181 -28
  23. package/src/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +75 -32
  24. package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +15 -4
  25. package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +40 -17
  26. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +128 -0
  27. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/icon.vue +426 -0
  28. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +820 -0
  29. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/othersIcon.vue +194 -0
  30. package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +22 -12
  31. package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -1
  32. package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +23 -12
  33. package/src/kisscomps/components/StageBord/StageBord.vue +1 -0
  34. package/src/kisscomps/components/Stages/index.vue +52 -11
  35. package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +30 -28
  36. package/src/views/intersection.vue +1 -1
  37. package/src/views/overView.vue +1 -1
  38. package/static/styles/commonkanban.scss +1 -0
  39. package/static/styles/light/theme/element-light.scss +4 -4
  40. package/static/styles/schemeconfig.scss +91 -59
  41. package/static/styles/stages.scss +1 -8
  42. package/src/node_modules/.package_versions.json +0 -1
@@ -10,43 +10,56 @@
10
10
  * See the Mulan PSL v2 for more details.
11
11
  **/
12
12
  <template>
13
- <div class="manual-control-modal lockingphase-control">
14
- <div class="title" style="margin-bottom: 18px;">{{$t('openatccomponents.overview.phaselocking')}}</div>
13
+ <div class="lockingphase-control manual-control-modal">
14
+ <!-- <div class="title" style="margin-bottom: 18px;">{{$t('openatccomponents.overview.phaselocking')}}</div> -->
15
15
  <el-row>
16
- <el-col :span="24">
16
+ <el-col :span="12">
17
17
  <el-form
18
18
  :inline="true"
19
19
  ref="manual"
20
20
  label-position="left"
21
21
  :model="manualInfo"
22
- label-width="100px">
22
+ label-width="74px">
23
23
  <el-form-item
24
24
  :label="$t('openatccomponents.phase.greenclear') + ':'"
25
25
  prop="intersection">
26
- <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempGreenflash" size="mini"></el-input-number>
27
- </el-form-item>
28
- <el-form-item
29
- :label="$t('openatccomponents.overview.duration') + ':'"
30
- prop="count">
31
- <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDuration" size="mini"></el-input-number>
26
+ <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempGreenflash" size="small"></el-input-number>
32
27
  </el-form-item>
28
+
33
29
  <el-form-item
34
30
  :label="$t('openatccomponents.overview.yellowflash') + ':'"
35
31
  prop="intersection">
36
- <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempYellow" size="mini"></el-input-number>
37
- </el-form-item>
38
- <el-form-item
39
- :label="$t('openatccomponents.overview.allred') + ':'"
40
- prop="intersection">
41
- <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempRedclear" size="mini"></el-input-number>
32
+ <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempYellow" size="small"></el-input-number>
42
33
  </el-form-item>
34
+
43
35
  <el-form-item
44
36
  :label="$t('openatccomponents.phase.mingreen') + ':'"
45
37
  prop="count">
46
- <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempMingreen" size="mini"></el-input-number>
38
+ <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempMingreen" size="small"></el-input-number>
47
39
  </el-form-item>
48
40
  </el-form>
49
41
  </el-col>
42
+ <el-col :span="12">
43
+ <el-form
44
+ :inline="true"
45
+ ref="manual"
46
+ label-position="left"
47
+ :model="manualInfo"
48
+ label-width="74px">
49
+
50
+ <el-form-item
51
+ :label="$t('openatccomponents.overview.duration') + ':'"
52
+ prop="count">
53
+ <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDuration" size="small"></el-input-number>
54
+ </el-form-item>
55
+
56
+ <el-form-item
57
+ :label="$t('openatccomponents.overview.allred') + ':'"
58
+ prop="intersection">
59
+ <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempRedclear" size="small"></el-input-number>
60
+ </el-form-item>
61
+ </el-form>
62
+ </el-col>
50
63
  </el-row>
51
64
  <el-row>
52
65
  <div class="model-label">{{$t('openatccomponents.overview.mode')}}:</div>
@@ -78,6 +91,7 @@
78
91
  </el-row>
79
92
  <div class="footer">
80
93
  <el-button @click="handleClose()">{{$t('openatccomponents.button.Back')}}</el-button>
94
+ <el-button type="primary" plain @click="toAutoControl()" v-if="isHasPermission('configer:manual:renew')">{{$t('openatccomponents.overview.recovery')}}</el-button>
81
95
  <el-button type="primary" @click="handleLockPhase()">{{lockPhaseBtnName}}</el-button>
82
96
  </div>
83
97
  </div>
@@ -85,6 +99,8 @@
85
99
 
86
100
  <script>
87
101
  import RingDataModel from '../../../../utils/RingDataModel.js'
102
+ import { hasPermission } from '../../../../utils/auth'
103
+
88
104
  export default {
89
105
  name: 'LockPhaselControl',
90
106
  props: {
@@ -182,6 +198,13 @@ export default {
182
198
  this.closePhaseRings[i].phases = sortedlist
183
199
  }
184
200
  }
201
+ },
202
+ toAutoControl () {
203
+ this.$emit('toAutoControl')
204
+ },
205
+ isHasPermission (path) {
206
+ let res = hasPermission(path)
207
+ return res
185
208
  }
186
209
  }
187
210
  }
@@ -27,7 +27,7 @@
27
27
  ref="manual"
28
28
  label-position="left"
29
29
  :model="manualInfo"
30
- label-width="100px">
30
+ label-width="74px">
31
31
  <el-form-item
32
32
  :label="$t('openatccomponents.overview.duration') + ':'"
33
33
  prop="count">
@@ -82,7 +82,7 @@
82
82
  ref="manual"
83
83
  label-position="left"
84
84
  :model="manualInfo"
85
- label-width="100px">
85
+ label-width="74px">
86
86
  <el-form-item
87
87
  :label="$t('openatccomponents.overview.duration') + ':'"
88
88
  prop="count">
@@ -106,7 +106,7 @@
106
106
  ref="manual"
107
107
  label-position="left"
108
108
  :model="manualInfo"
109
- label-width="100px">
109
+ label-width="74px">
110
110
  <el-form-item
111
111
  :label="$t('openatccomponents.overview.duration') + ':'"
112
112
  prop="count">
@@ -1,18 +1,18 @@
1
1
  <template>
2
2
  <div class="priority-control">
3
- <div class="title" style="margin-bottom: 18px;">{{$t('openatccomponents.overview.prioritycontrol')}}</div>
3
+ <!-- <div class="title" style="margin-bottom: 18px;">{{$t('openatccomponents.overview.prioritycontrol')}}</div> -->
4
4
  <el-row>
5
5
  <el-col :span="12">
6
6
  <el-form
7
7
  ref="manual"
8
8
  label-position="left"
9
9
  :model="manualInfo"
10
- label-width="100px">
10
+ label-width="74px">
11
11
  <el-form-item
12
12
  :label="$t('openatccomponents.overview.delay') + ':'"
13
13
  prop="intersection">
14
- <el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.delay" size="mini"></el-input-number>
15
- <!-- <el-input v-model="manualInfo.tempDelay" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
14
+ <el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.delay" size="small"></el-input-number>
15
+ <!-- <el-input v-model="manualInfo.tempDelay" size="small" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
16
16
  </el-form-item>
17
17
  <el-form-item
18
18
  :label="$t('openatccomponents.overview.priorityType') + ':'"
@@ -25,7 +25,7 @@
25
25
  :value="item.value">
26
26
  </el-option>
27
27
  </el-select>
28
- <!-- <el-input v-model="manualInfo.tempDuration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
28
+ <!-- <el-input v-model="manualInfo.tempDuration" size="small" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
29
29
  </el-form-item>
30
30
  </el-form>
31
31
  </el-col>
@@ -34,12 +34,12 @@
34
34
  ref="manual"
35
35
  label-position="left"
36
36
  :model="manualInfo"
37
- label-width="100px">
37
+ label-width="74px">
38
38
  <el-form-item
39
39
  :label="$t('openatccomponents.overview.duration') + ':'"
40
40
  prop="intersection">
41
- <el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.duration" size="mini"></el-input-number>
42
- <!-- <el-input v-model="manualInfo.duration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
41
+ <el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.duration" size="small"></el-input-number>
42
+ <!-- <el-input v-model="manualInfo.duration" size="small" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
43
43
  </el-form-item>
44
44
  <el-form-item
45
45
  :label="$t('openatccomponents.overview.priorityPhase') + ':'"
@@ -56,7 +56,7 @@
56
56
  </div>
57
57
  </el-option>
58
58
  </el-select>
59
- <!-- <el-input v-model="manualInfo.tempDuration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
59
+ <!-- <el-input v-model="manualInfo.tempDuration" size="small" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
60
60
  </el-form-item>
61
61
  </el-form>
62
62
  </el-col>
@@ -67,8 +67,9 @@
67
67
  ref="manual"
68
68
  label-position="left"
69
69
  :model="manualInfo"
70
- label-width="100px">
70
+ label-width="74px">
71
71
  <el-form-item
72
+ style="margin-bottom: 0;"
72
73
  :label="$t('openatccomponents.overview.level') + ':'"
73
74
  prop="count">
74
75
  <el-select v-model="manualInfo.level" class="col-inner" size="small" clearable :placeholder="$t('openatccomponents.common.select')">
@@ -79,17 +80,19 @@
79
80
  :value="item.value">
80
81
  </el-option>
81
82
  </el-select>
82
- <!-- <el-input v-model="manualInfo.tempDuration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
83
+ <!-- <el-input v-model="manualInfo.tempDuration" size="small" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
83
84
  </el-form-item>
84
85
  </el-form>
85
86
  </el-col>
86
87
  </el-row>
87
88
  <div class="footer" v-if="realtimeStatusModalvisible">
88
89
  <el-button @click="handleClose()">{{$t('openatccomponents.button.Back')}}</el-button>
90
+ <el-button type="primary" plain @click="toAutoControl()" v-if="isHasPermission('configer:manual:renew')">{{$t('openatccomponents.overview.recovery')}}</el-button>
89
91
  <el-button type="primary" @click="handleManualControl()">{{$t('openatccomponents.overview.implement')}}</el-button>
90
92
  </div>
91
93
  <div class="footer" v-if="!realtimeStatusModalvisible">
92
94
  <el-button @click="handleClose()">{{$t('openatccomponents.button.Back')}}</el-button>
95
+ <el-button type="primary" plain @click="toAutoControl()" v-if="isHasPermission('configer:manual:renew')">{{$t('openatccomponents.overview.recovery')}}</el-button>
93
96
  <el-button type="primary" @click="handleManualControl()">{{$t('openatccomponents.overview.comfirm')}}</el-button>
94
97
  </div>
95
98
  </div>
@@ -97,7 +100,7 @@
97
100
 
98
101
  <script>
99
102
  import xdrdirselector from '../../XRDDirSelector/XRDDirSelector'
100
- import { getTheme } from '../../../../utils/auth'
103
+ import { getTheme, hasPermission } from '../../../../utils/auth'
101
104
  import { getDirName } from './utils'
102
105
  export default {
103
106
  name: 'prioritycontrol',
@@ -187,6 +190,13 @@ export default {
187
190
  level: this.manualInfo.level
188
191
  }
189
192
  this.$emit('closePhaseControl', submitdata)
193
+ },
194
+ toAutoControl () {
195
+ this.$emit('toAutoControl')
196
+ },
197
+ isHasPermission (path) {
198
+ let res = hasPermission(path)
199
+ return res
190
200
  }
191
201
  }
192
202
  }
@@ -80,7 +80,7 @@
80
80
  >{{$t('openatccomponents.overview.controlmode')}}</div>
81
81
  <el-button
82
82
  type="primary"
83
- style="float: right; margin-right: 20px;margin-top: 40px;font-size: 14px;"
83
+ style="float: right; margin-right: 20px;margin-top: 16px;font-size: 14px;"
84
84
  size="mini"
85
85
  v-if="isHasPermission('configer:manual') && isHasPermission('configer:manual:renew')"
86
86
  @click="changeStatus"
@@ -1,15 +1,15 @@
1
1
  <template>
2
2
  <div class="tentativeplan-control">
3
- <div class="title" style="margin-bottom: 18px">
3
+ <!-- <div class="title" style="margin-bottom: 18px">
4
4
  {{ $t('openatccomponents.overview.tentativeplan') }}
5
- </div>
5
+ </div> -->
6
6
  <el-row>
7
7
  <el-col :span="12">
8
8
  <el-form
9
9
  ref="manual"
10
10
  label-position="left"
11
11
  :model="manualInfo"
12
- label-width="100px"
12
+ label-width="74px"
13
13
  >
14
14
  <el-form-item
15
15
  :label="$t('openatccomponents.overview.patternid') + ':'"
@@ -30,7 +30,7 @@
30
30
  >
31
31
  </el-option>
32
32
  </el-select>
33
- <!-- <el-input v-model="manualInfo.tempDuration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
33
+ <!-- <el-input v-model="manualInfo.tempDuration" size="small" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
34
34
  </el-form-item>
35
35
  <el-form-item
36
36
  :label="$t('openatccomponents.overview.delay') + ':'"
@@ -44,9 +44,9 @@
44
44
  :step="1"
45
45
  :controls="false"
46
46
  v-model.number="manualInfo.tempDelay"
47
- size="mini"
47
+ size="small"
48
48
  ></el-input-number>
49
- <!-- <el-input v-model="manualInfo.tempDelay" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
49
+ <!-- <el-input v-model="manualInfo.tempDelay" size="small" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
50
50
  </el-form-item>
51
51
  </el-form>
52
52
  </el-col>
@@ -55,7 +55,7 @@
55
55
  ref="manual"
56
56
  label-position="left"
57
57
  :model="manualInfo"
58
- label-width="100px"
58
+ label-width="74px"
59
59
  >
60
60
  <el-form-item
61
61
  :label="$t('openatccomponents.overview.patternoffset') + ':'"
@@ -69,9 +69,9 @@
69
69
  :step="1"
70
70
  :controls="false"
71
71
  v-model.number="manualInfo.offset"
72
- size="mini"
72
+ size="small"
73
73
  ></el-input-number>
74
- <!-- <el-input v-model="manualInfo.offset" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
74
+ <!-- <el-input v-model="manualInfo.offset" size="small" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
75
75
  </el-form-item>
76
76
  <el-form-item
77
77
  :label="$t('openatccomponents.overview.duration') + ':'"
@@ -85,9 +85,9 @@
85
85
  :step="1"
86
86
  :controls="false"
87
87
  v-model.number="manualInfo.duration"
88
- size="mini"
88
+ size="small"
89
89
  ></el-input-number>
90
- <!-- <el-input v-model="manualInfo.duration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
90
+ <!-- <el-input v-model="manualInfo.duration" size="small" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
91
91
  </el-form-item>
92
92
  </el-form>
93
93
  </el-col>
@@ -318,6 +318,7 @@
318
318
  <el-button @click="handleClose()">{{
319
319
  $t('openatccomponents.button.Back')
320
320
  }}</el-button>
321
+ <el-button type="primary" plain @click="toAutoControl()" v-if="isHasPermission('configer:manual:renew')">{{$t('openatccomponents.overview.recovery')}}</el-button>
321
322
  <el-button type="primary" @click="handleManualControl()">{{
322
323
  $t('openatccomponents.overview.implement')
323
324
  }}</el-button>
@@ -326,6 +327,7 @@
326
327
  <el-button @click="handleClose()">{{
327
328
  $t('openatccomponents.button.Back')
328
329
  }}</el-button>
330
+ <el-button type="primary" plain @click="toAutoControl()" v-if="isHasPermission('configer:manual:renew')">{{$t('openatccomponents.overview.recovery')}}</el-button>
329
331
  <el-button type="primary" @click="handleManualControl()">{{
330
332
  $t('openatccomponents.overview.comfirm')
331
333
  }}</el-button>
@@ -334,6 +336,8 @@
334
336
  </template>
335
337
 
336
338
  <script>
339
+ import { hasPermission } from '../../../../utils/auth'
340
+
337
341
  export default {
338
342
  name: 'tentativeplancontrol',
339
343
  props: {
@@ -991,7 +995,7 @@ export default {
991
995
  stage.map(item => {
992
996
  for (let ring of rings) {
993
997
  for (let ringItem of ring) {
994
- if (item === ringItem.id && (ringItem.mode !== 7 && ringItem.mode !== 8)) {
998
+ if (item === ringItem.id && (ringItem.mode !== 7 && ringItem.mode !== 8 && ringItem.mode !== 9)) {
995
999
  newStage.push(item)
996
1000
  }
997
1001
  }
@@ -1184,6 +1188,13 @@ export default {
1184
1188
  if (this.patternCycleEqual) {
1185
1189
  this.$emit('closePhaseControl', submitdata)
1186
1190
  }
1191
+ },
1192
+ toAutoControl () {
1193
+ this.$emit('toAutoControl')
1194
+ },
1195
+ isHasPermission (path) {
1196
+ let res = hasPermission(path)
1197
+ return res
1187
1198
  }
1188
1199
  }
1189
1200
  }
@@ -269,6 +269,7 @@ export default {
269
269
  line-height: 40px;
270
270
  padding: 1px 1px;
271
271
  box-sizing: border-box;
272
+ font-size: 14PX;
272
273
  }
273
274
  .el-button--primary:hover, .el-button--primary:focus{
274
275
  background: #299BCC;
@@ -15,7 +15,7 @@
15
15
  <div>
16
16
  <div style="width: 100%; height: auto;">
17
17
  <div class="control-model" v-for="(item, index) in stagesList" :key="index">
18
- <div style="position:relative;" :style="singleStyle" class="single-model" @click="selectStages(index + 1)" :class="currentStage == index + 1 ? 'single-model-select' : ''">
18
+ <div style="position:relative;" :style="{...singleStyle, 'backgroundColor': item[0].bgcolor}" class="single-model" @click="selectStages(index + 1)" :class="currentStage == index + 1 ? 'single-model-select' : ''">
19
19
  <!-- <template v-for="(side, index) in item[0].sidewalkPhaseData" >
20
20
  <PatternWalkSvg class="patternWalk"
21
21
  v-if="item[0].peddirection.includes(side.id)"
@@ -28,18 +28,18 @@
28
28
  :showWalk="item[0].peddirection"
29
29
  :Width="'40'"
30
30
  :Height="'40'" /> -->
31
- <xdr-dir-selector Width="75PX" Height="75PX" Widths="65px" Heights="65px" :Data="showStyle" :Datas="showStyles" :showlist="item"></xdr-dir-selector>
32
- <div style="height:65px;display:flex;flex-direction:row;justify-content:center;align-items:end;">
33
- <div class="current-stage-num" style="width:20%;">{{index + 1}}</div>
31
+ <xdr-dir-selector Width="75PX" Height="75PX" Widths="65px" Heights="65px" :Data="showStyle" :Datas="showStyles" :showlist="dirListSetTheme(item)"></xdr-dir-selector>
32
+ <div style="height:80px;display:flex;flex-direction:row;justify-content:center;align-items:end;">
33
+ <div class="current-stage-num" style="width:20%;" :style="{color: themeColor}">{{index + 1}}</div>
34
34
  <div style="width:70%;">
35
- <i class="iconfont icon-feijidongche" style="font-size:11PX;color:#606266;margin-left:10PX" v-if="item[item.length-1].controltype === 6"></i>
36
- <i class="iconfont icon-lukouzhilu" style="font-size:16PX;color:#454545;margin-left:10PX" v-if="item[item.length-1].controltype === 1"></i>
37
- <i class="iconfont icon-BRT" style="font-size:11PX;color:#454545;margin-left:10PX" v-if="item[item.length-1].controltype === 4"></i>
35
+ <i class="iconfont icon-feijidongche" :style="{color: themeColor}" style="font-size:11PX;color:#606266;margin-left:10PX" v-if="item[item.length-1].controltype === 6"></i>
36
+ <i class="iconfont icon-lukouzhilu" :style="{color: themeColor2}" style="font-size:16PX;color:#454545;margin-left:10PX" v-if="item[item.length-1].controltype === 1"></i>
37
+ <i class="iconfont icon-BRT" :style="{color: themeColor2}" style="font-size:11PX;color:#454545;margin-left:10PX" v-if="item[item.length-1].controltype === 4"></i>
38
38
  <div style="transform:scale(0.65);margin-left:10PX">
39
- <i class="iconfont icon-xuxiangwei-xin" style="font-size:5PX;color:#454545;" v-if="item[item.length-1].controltype === 99"></i>
39
+ <i class="iconfont icon-xuxiangwei-xin" :style="{color: themeColor2}" style="font-size:5PX;color:#454545;" v-if="item[item.length-1].controltype === 99"></i>
40
40
  </div>
41
- <i class="iconfont icon-gongjiaoche" style="font-size:11PX;color:#606266;margin-left:10PX" v-if="item[item.length-1].controltype === 3"></i>
42
- <i class="iconfont icon-youguidianche" style="font-size:11PX;color:#606266;margin-left:10PX" v-if="item[item.length-1].controltype === 5"></i>
41
+ <i class="iconfont icon-gongjiaoche" :style="{color: themeColor}" style="font-size:11PX;color:#606266;margin-left:10PX" v-if="item[item.length-1].controltype === 3"></i>
42
+ <i class="iconfont icon-youguidianche" :style="{color: themeColor}" style="font-size:11PX;color:#606266;margin-left:10PX" v-if="item[item.length-1].controltype === 5"></i>
43
43
  <div v-if="presetStageIndex === index + 1" style="color:red;width:50px;position:absolute;right:0px;bottom:5px;font-size:11px;">{{presetText}}</div>
44
44
  </div>
45
45
  </div>
@@ -54,6 +54,8 @@
54
54
  /* eslint-disable */
55
55
  import RingDataModel from '../../../utils/RingDataModel.js'
56
56
  // import patternwalksvg from '../PatternWalkSvg/PatternWalkSvg'
57
+ import { getTheme } from '../../../utils/auth.js'
58
+
57
59
  export default {
58
60
  name: 'Stages',
59
61
  components: {
@@ -102,7 +104,7 @@ export default {
102
104
  },
103
105
  StageHeight: {
104
106
  type: String,
105
- default: '65px'
107
+ default: '80px'
106
108
  }
107
109
  },
108
110
  data () {
@@ -119,6 +121,8 @@ export default {
119
121
  side: {key: 'pedphase1653818707546719', phaseid: 1, id: 1, name: '东人行横道'},
120
122
  // stagesList: [],
121
123
  currentStage: -1,
124
+ themeColor: getTheme() === 'light' ? '#606266' : '#fff',
125
+ themeColor2: getTheme() === 'light' ? '#454545' : '#fff'
122
126
  };
123
127
  },
124
128
  computed: {
@@ -138,6 +142,7 @@ export default {
138
142
  }
139
143
  }
140
144
  console.log(list,'list')
145
+ this.clickType(list, this.currentStage)
141
146
  console.log(this.phaseList,'this.phaseList')
142
147
  return list
143
148
  },
@@ -203,9 +208,45 @@ export default {
203
208
  }
204
209
  this.currentStage = value
205
210
  this.$emit('onSelectStages', value)
211
+ this.clickType(this.stagesList, value)
212
+ },
213
+ resetToDefaultThemeColor (List) {
214
+ for (let i = 0; i < List.length; i++) {
215
+ if (List[i].length) {
216
+ if (List[i][0].clicked) {
217
+ delete List[i][0].clicked
218
+ }
219
+ List[i][0].bgcolor = getTheme() === 'light' ? '#edf6ff' : '#243d59'
220
+ }
221
+ }
222
+ },
223
+ highlightThemeColor (List, index) {
224
+ for (let i = 0; i < List.length; i++) {
225
+ if (i === index) {
226
+ List[i][0].clicked = true
227
+ List[i][0].bgcolor = getTheme() === 'light' ? '#c1e0ff' : '#0082ac'
228
+ }
229
+ }
230
+ },
231
+ clickType (stagelist, value) {
232
+ this.resetToDefaultThemeColor(stagelist)
233
+ this.highlightThemeColor(stagelist, value - 1)
234
+ },
235
+ dirListSetTheme (list) {
236
+ let dirArr = []
237
+ let color = getTheme() === 'light' ? '#606266' : '#F1F3F4'
238
+ for (let rec of list) {
239
+ let recd = {
240
+ ...rec,
241
+ color: color
242
+ }
243
+ dirArr.push(recd)
244
+ }
245
+ return dirArr
206
246
  }
207
247
  },
208
248
  mounted () {
249
+ this.resetToDefaultThemeColor(this.stagesList)
209
250
  }
210
251
  };
211
252
  </script>