openatc-components 0.1.32 → 0.1.33
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/kisscomps/components/CommonKanban/CommonKanban.vue +4 -5
- package/package/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +9 -20
- package/package/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue +9 -20
- package/package/kisscomps/components/OverLap/OverLap.vue +8 -15
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +59 -106
- package/package/kisscomps/components/Stages/index.vue +5 -9
- package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +293 -672
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/CommonKanban/CommonKanban.vue +4 -5
- package/src/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +9 -20
- package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue +9 -20
- package/src/kisscomps/components/OverLap/OverLap.vue +8 -15
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +59 -106
- package/src/kisscomps/components/Stages/index.vue +5 -9
- package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +293 -672
- package/src/utils/RingDataModel.js +2 -18
- package/src/views/intersection.vue +1 -1
- package/src/views/overView.vue +3 -3
- package/src/views/schemeconfig.vue +3 -3
- package/static/styles/schemeconfig.scss +136 -136
- package/src/node_modules/.package_versions.json +0 -1
|
@@ -44,12 +44,11 @@
|
|
|
44
44
|
<!-- 关闭拖拽调整顺序 -->
|
|
45
45
|
<div v-if="!Draggable" class="common-board-column-content">
|
|
46
46
|
<div class="common-board-item" v-for="element in list" :key="element.id">
|
|
47
|
-
<!-- {{element}} -->
|
|
48
47
|
<div class="common-contentcolumn phase">
|
|
49
48
|
<el-tooltip class="item" effect="dark" placement="left">
|
|
50
49
|
<div slot="content">{{element.name}}</div>
|
|
51
50
|
<div class="common-phase-description">
|
|
52
|
-
|
|
51
|
+
<patternwalksvg :sidewalkPhaseData="sidewalkPhaseData" :showWalk="element.peddirection" Width="38" Height="40"></patternwalksvg>
|
|
53
52
|
<xdrdirselector Width="40px"
|
|
54
53
|
Height="40px"
|
|
55
54
|
:showlist="element.desc"
|
|
@@ -70,14 +69,14 @@
|
|
|
70
69
|
import xdrdirselector from '../XRDDirSelector/XRDDirSelector'
|
|
71
70
|
import draggable from 'vuedraggable'
|
|
72
71
|
// import PatternWalkSvg from '../IntersectionMap/crossDirection/baseImg/PatternWalkSvg'
|
|
73
|
-
|
|
72
|
+
import patternwalksvg from '../PatternWalkSvg/PatternWalkSvg'
|
|
74
73
|
|
|
75
74
|
export default {
|
|
76
75
|
name: 'common-kanban',
|
|
77
76
|
components: {
|
|
78
77
|
draggable,
|
|
79
|
-
xdrdirselector
|
|
80
|
-
|
|
78
|
+
xdrdirselector,
|
|
79
|
+
patternwalksvg
|
|
81
80
|
},
|
|
82
81
|
props: {
|
|
83
82
|
headerText: {
|
package/package/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue
CHANGED
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
<div class="phase-box" v-for="(item, index) in overlaplList" :key="index">
|
|
15
15
|
<div class="single-phase" @click="selectPhase(index, item)" :class="preselectPhase == item.id ? 'single-phase-select' : ''">
|
|
16
16
|
<div class="ped-icon">
|
|
17
|
-
|
|
17
|
+
<PatternWalkSvg v-if="item.peddirection && item.peddirection.length" :showWalk="getshowped(item.peddirection)" Width="42" Height="44" />
|
|
18
18
|
</div>
|
|
19
19
|
|
|
20
20
|
<div class="phase-icon" v-if="item.direction">
|
|
21
|
-
<xdr-dir-selector Width="44px" Height="44px" :showlist="getShowlist(item)" :roadDirection="roadDirection"></xdr-dir-selector>
|
|
21
|
+
<xdr-dir-selector Width="44px" Height="44px" :showlist="getShowlist(item.direction)" :roadDirection="roadDirection"></xdr-dir-selector>
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
24
24
|
<div class="single-phase-name">{{$t('openatccomponents.channelizationmap.phase') + item.id}}</div>
|
|
@@ -103,24 +103,13 @@ export default {
|
|
|
103
103
|
})
|
|
104
104
|
return phaseDireacitonArr
|
|
105
105
|
},
|
|
106
|
-
getShowlist (
|
|
107
|
-
|
|
108
|
-
return
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
})
|
|
115
|
-
} else {
|
|
116
|
-
return [
|
|
117
|
-
{
|
|
118
|
-
id: '',
|
|
119
|
-
peddirection: this.getshowped(data.peddirection),
|
|
120
|
-
color: '#606266'
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
}
|
|
106
|
+
getShowlist (direction) {
|
|
107
|
+
return direction.map(dir => {
|
|
108
|
+
return {
|
|
109
|
+
id: dir,
|
|
110
|
+
color: '#606266'
|
|
111
|
+
}
|
|
112
|
+
})
|
|
124
113
|
},
|
|
125
114
|
getshowped (peddirection) {
|
|
126
115
|
let peddirarr = peddirection.map(peddir => ({
|
package/package/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue
CHANGED
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
<div class="phase-box" v-for="(item, index) in phaseList" :key="index">
|
|
15
15
|
<div class="single-phase" @click="selectPhase(index, item)" :class="preselectPhase == item.id ? 'single-phase-select' : ''">
|
|
16
16
|
<div class="ped-icon">
|
|
17
|
-
|
|
17
|
+
<PatternWalkSvg v-if="item.peddirection && item.peddirection.length" :showWalk="getshowped(item.peddirection)" Width="42" Height="44" />
|
|
18
18
|
</div>
|
|
19
19
|
|
|
20
20
|
<div class="phase-icon" v-if="item.direction">
|
|
21
|
-
<xdr-dir-selector Width="44px" Height="44px" :showlist="getShowlist(item)" :roadDirection="roadDirection"></xdr-dir-selector>
|
|
21
|
+
<xdr-dir-selector Width="44px" Height="44px" :showlist="getShowlist(item.direction)" :roadDirection="roadDirection"></xdr-dir-selector>
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
24
24
|
<div class="single-phase-name">{{$t('openatccomponents.channelizationmap.phase') + item.id}}</div>
|
|
@@ -103,24 +103,13 @@ export default {
|
|
|
103
103
|
})
|
|
104
104
|
return phaseDireacitonArr
|
|
105
105
|
},
|
|
106
|
-
getShowlist (
|
|
107
|
-
|
|
108
|
-
return
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
})
|
|
115
|
-
} else {
|
|
116
|
-
return [
|
|
117
|
-
{
|
|
118
|
-
id: '',
|
|
119
|
-
peddirection: this.getshowped(data.peddirection),
|
|
120
|
-
color: '#606266'
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
}
|
|
106
|
+
getShowlist (direction) {
|
|
107
|
+
return direction.map(dir => {
|
|
108
|
+
return {
|
|
109
|
+
id: dir,
|
|
110
|
+
color: '#606266'
|
|
111
|
+
}
|
|
112
|
+
})
|
|
124
113
|
},
|
|
125
114
|
getshowped (peddirection) {
|
|
126
115
|
let peddirarr = peddirection.map(peddir => ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="overLap" v-if="checked" :style="{'margin':this.controlData ? '20px 0 0 0' :tentative ? '0' : '0
|
|
2
|
+
<div class="overLap" v-if="checked" :style="{'margin':this.controlData ? '20px 0 0 0' :tentative ? '0' : '0 40px 0 417px'}">
|
|
3
3
|
<div class="ring-first" v-for="(list, index1) in this.overlapDatas" :key="index1">
|
|
4
4
|
<div v-for="(item,index2) in list.stageLists" :key="index2" >
|
|
5
5
|
<!-- {{list.peddirection}} -->
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
<div style="cursor:pointer;">
|
|
15
15
|
<div class="ring-phase">
|
|
16
|
-
|
|
16
|
+
<patternwalksvg :showWalk="list.peddirection" :Width="'32'" :Height="'34'"></patternwalksvg>
|
|
17
17
|
<xdrdirselector Width="36px" Height="34px" :showlist="item.direction"></xdrdirselector>
|
|
18
18
|
</div>
|
|
19
19
|
<div class="box">
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
import PhaseDataModel from '../IntersectionMap/crossDirection/utils.js'
|
|
39
39
|
import CrossDiagramMgr from '../../../EdgeMgr/controller/crossDiagramMgr.js'
|
|
40
40
|
import xdrdirselector from '../XRDDirSelector/XRDDirSelector'
|
|
41
|
-
|
|
41
|
+
import patternwalksvg from '../PatternWalkSvg/PatternWalkSvg'
|
|
42
42
|
export default {
|
|
43
43
|
name: 'over-lap',
|
|
44
44
|
components: {
|
|
45
|
-
|
|
45
|
+
patternwalksvg,
|
|
46
46
|
xdrdirselector
|
|
47
47
|
},
|
|
48
48
|
data () {
|
|
@@ -98,19 +98,13 @@ export default {
|
|
|
98
98
|
methods: {
|
|
99
99
|
getRoad (i) {
|
|
100
100
|
let direction = []
|
|
101
|
-
if (i
|
|
102
|
-
i.
|
|
101
|
+
if (i) {
|
|
102
|
+
i.map(item => {
|
|
103
103
|
direction.push({
|
|
104
104
|
id: item,
|
|
105
|
-
peddirection: this.getPedPhasePos(i.peddirection),
|
|
106
105
|
color: '#454545'
|
|
107
106
|
})
|
|
108
107
|
})
|
|
109
|
-
} else {
|
|
110
|
-
direction.push({
|
|
111
|
-
id: '',
|
|
112
|
-
peddirection: this.getPedPhasePos(i.peddirection)
|
|
113
|
-
})
|
|
114
108
|
}
|
|
115
109
|
return direction
|
|
116
110
|
},
|
|
@@ -148,8 +142,8 @@ export default {
|
|
|
148
142
|
const find = findIndexs.includes(sta.key)
|
|
149
143
|
return {
|
|
150
144
|
...sta,
|
|
151
|
-
direction: this.getRoad(item),
|
|
152
|
-
|
|
145
|
+
direction: this.getRoad(item.direction),
|
|
146
|
+
peddirection: this.getPedPhasePos(item.peddirection),
|
|
153
147
|
greenWidth: find ? (sta.split / this.cycle * 100).toFixed(3) + '%' : '0%',
|
|
154
148
|
redWidth: !find ? (sta.split / this.cycle * 100).toFixed(3) + '%' : '0%'
|
|
155
149
|
}
|
|
@@ -194,7 +188,6 @@ export default {
|
|
|
194
188
|
float: left;
|
|
195
189
|
// margin-left: 5px;
|
|
196
190
|
height: 34px;
|
|
197
|
-
width: 36px;
|
|
198
191
|
z-index: 999;
|
|
199
192
|
background: rgba(30, 96, 12, 0.07);
|
|
200
193
|
// margin-top:1px;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<div slot="content">P{{item.id}}:{{item.split}}</div>
|
|
21
21
|
<div style="cursor:pointer;">
|
|
22
22
|
<div class="ring-phase">
|
|
23
|
-
|
|
23
|
+
<patternwalksvg :showWalk="item.peddirection" :Width="'32'" :Height="'34'"></patternwalksvg>
|
|
24
24
|
<xdrdirselector Width="36px" Height="34px" :showlist="item.direction"></xdrdirselector>
|
|
25
25
|
</div>
|
|
26
26
|
<div class="box">
|
|
@@ -43,10 +43,8 @@
|
|
|
43
43
|
<div class="first-1" :style="{'width':item.redWidth,'height':'34px','background':'#f27979'}"></div>
|
|
44
44
|
</div>
|
|
45
45
|
</div>
|
|
46
|
-
<div v-if="showBarrier">
|
|
47
|
-
<div
|
|
48
|
-
<div class="divider" :style="{'left':item, 'height':barrierHeight}"></div>
|
|
49
|
-
</div>
|
|
46
|
+
<div v-if="showBarrier" v-for="(item, index) in barrierList" :key="index + '1'">
|
|
47
|
+
<div class="divider" :style="{'left':item, 'height':barrierHeight}"></div>
|
|
50
48
|
</div>
|
|
51
49
|
<div v-show="(syncTime && cycle && cycle>0) || (syncTime && newCycle && newCycle>0)">
|
|
52
50
|
<div class="curTimeDiv" :style="{'left':paddingLeft, 'background-color': '#409EFF'}">{{ timeNumDevide }}</div>
|
|
@@ -65,7 +63,7 @@
|
|
|
65
63
|
</div>
|
|
66
64
|
<div style="cursor:pointer;">
|
|
67
65
|
<div class="ring-phase">
|
|
68
|
-
|
|
66
|
+
<patternwalksvg :showWalk="list.peddirection" :Width="'32'" :Height="'34'"></patternwalksvg>
|
|
69
67
|
<xdrdirselector Width="36px" Height="34px" :showlist="list.direction"></xdrdirselector>
|
|
70
68
|
</div>
|
|
71
69
|
<div class="box" style="line-height:28px">
|
|
@@ -85,7 +83,7 @@
|
|
|
85
83
|
</div>
|
|
86
84
|
</template>
|
|
87
85
|
<script>
|
|
88
|
-
|
|
86
|
+
import patternwalksvg from '../PatternWalkSvg/PatternWalkSvg'
|
|
89
87
|
import xdrdirselector from '../XRDDirSelector/XRDDirSelector'
|
|
90
88
|
// import PatternWalkSvg from '../IntersectionMap/crossDirection/baseImg/PatternWalkSvg'
|
|
91
89
|
import PhaseDataModel from '../IntersectionMap/crossDirection/utils.js'
|
|
@@ -93,7 +91,7 @@ import CrossDiagramMgr from '../../../EdgeMgr/controller/crossDiagramMgr.js'
|
|
|
93
91
|
export default {
|
|
94
92
|
name: 'pattern-list',
|
|
95
93
|
components: {
|
|
96
|
-
|
|
94
|
+
patternwalksvg,
|
|
97
95
|
xdrdirselector
|
|
98
96
|
},
|
|
99
97
|
data () {
|
|
@@ -300,7 +298,6 @@ export default {
|
|
|
300
298
|
},
|
|
301
299
|
handleStageData (data) {
|
|
302
300
|
if (!data) return
|
|
303
|
-
let peddirections = this.getPed(data)
|
|
304
301
|
let stagesTemp = []
|
|
305
302
|
let tempList = []
|
|
306
303
|
for (let stg of data) {
|
|
@@ -312,19 +309,11 @@ export default {
|
|
|
312
309
|
directionList.push(...currPhase.direction)
|
|
313
310
|
directionList = Array.from(new Set(directionList))
|
|
314
311
|
}
|
|
315
|
-
if (directionList.length === 0)
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
})
|
|
321
|
-
} else {
|
|
322
|
-
tempList = directionList.map(dir => ({
|
|
323
|
-
id: dir,
|
|
324
|
-
color: '#606266',
|
|
325
|
-
peddirection: peddirections
|
|
326
|
-
}))
|
|
327
|
-
}
|
|
312
|
+
// if (directionList.length === 0) return
|
|
313
|
+
tempList = directionList.map(dir => ({
|
|
314
|
+
id: dir,
|
|
315
|
+
color: '#606266'
|
|
316
|
+
}))
|
|
328
317
|
stagesTemp.push(...tempList)
|
|
329
318
|
}
|
|
330
319
|
return stagesTemp
|
|
@@ -343,7 +332,7 @@ export default {
|
|
|
343
332
|
this.stageLists = this.localPatternList[i].stagesList.map(item => {
|
|
344
333
|
return {
|
|
345
334
|
...item,
|
|
346
|
-
|
|
335
|
+
peddirection: this.getPed(item.phases ? item.phases : item.stages),
|
|
347
336
|
direction: this.handleStageData(item.phases ? item.phases : item.stages),
|
|
348
337
|
greenWidth: (item.green / stageMaxCyle * 100).toFixed(3) + '%',
|
|
349
338
|
yellowWidth: (item.yellow / stageMaxCyle * 100).toFixed(3) + '%',
|
|
@@ -364,7 +353,7 @@ export default {
|
|
|
364
353
|
this.stageLists = this.stagesChange.map(item => {
|
|
365
354
|
return {
|
|
366
355
|
...item,
|
|
367
|
-
|
|
356
|
+
peddirection: this.getPed(item.phases ? item.phases : item.stages),
|
|
368
357
|
direction: this.handleStageData(item.phases ? item.phases : item.stages),
|
|
369
358
|
greenWidth: (item.green / stageMaxCyle * 100).toFixed(3) + '%',
|
|
370
359
|
yellowWidth: (item.yellow / stageMaxCyle * 100).toFixed(3) + '%',
|
|
@@ -500,20 +489,6 @@ export default {
|
|
|
500
489
|
}
|
|
501
490
|
return item.id === ring.id
|
|
502
491
|
})[0]
|
|
503
|
-
let peddirections = []
|
|
504
|
-
for (let walk of this.sidewalkPhaseData) {
|
|
505
|
-
for (let ped of currPhase.peddirection) {
|
|
506
|
-
// if (stg === walk.phaseid) {
|
|
507
|
-
let objs = {}
|
|
508
|
-
objs.name = walk.name
|
|
509
|
-
objs.id = walk.id
|
|
510
|
-
if (ped === walk.id) {
|
|
511
|
-
peddirections.push(objs)
|
|
512
|
-
peddirections = Array.from(new Set(peddirections))
|
|
513
|
-
}
|
|
514
|
-
// }
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
492
|
if (ring.desc) {
|
|
518
493
|
obj.direction = ring.desc.map(item => { // 虚相位desc为空
|
|
519
494
|
return {
|
|
@@ -522,23 +497,12 @@ export default {
|
|
|
522
497
|
}
|
|
523
498
|
})
|
|
524
499
|
} else {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
}
|
|
532
|
-
})
|
|
533
|
-
} else {
|
|
534
|
-
obj.direction = [
|
|
535
|
-
{
|
|
536
|
-
id: '',
|
|
537
|
-
color: '#454545',
|
|
538
|
-
peddirection: peddirections
|
|
539
|
-
}
|
|
540
|
-
]
|
|
541
|
-
}
|
|
500
|
+
obj.direction = currPhase.direction.map(item => {
|
|
501
|
+
return {
|
|
502
|
+
id: item,
|
|
503
|
+
color: '#454545'
|
|
504
|
+
}
|
|
505
|
+
})
|
|
542
506
|
}
|
|
543
507
|
obj.split = split
|
|
544
508
|
if (ring.sum) {
|
|
@@ -549,6 +513,22 @@ export default {
|
|
|
549
513
|
obj.flashgreen = (currPhase.flashgreen / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
550
514
|
obj.yellowWidth = (currPhase.yellow / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
551
515
|
obj.greenWidth = ((split - currPhase.redclear - currPhase.yellow - currPhase.flashgreen) / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
|
|
516
|
+
// obj.peddirection = currPhase.peddirection
|
|
517
|
+
let peddirections = []
|
|
518
|
+
for (let walk of this.sidewalkPhaseData) {
|
|
519
|
+
for (let ped of currPhase.peddirection) {
|
|
520
|
+
// if (stg === walk.phaseid) {
|
|
521
|
+
let objs = {}
|
|
522
|
+
objs.name = walk.name
|
|
523
|
+
objs.id = walk.id
|
|
524
|
+
if (ped === walk.id) {
|
|
525
|
+
peddirections.push(objs)
|
|
526
|
+
peddirections = Array.from(new Set(peddirections))
|
|
527
|
+
}
|
|
528
|
+
// }
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
obj.peddirection = peddirections
|
|
552
532
|
// 忽略相位不显示
|
|
553
533
|
let mode = ring.mode
|
|
554
534
|
if (mode !== 7) { // 忽略相位不显示
|
|
@@ -610,46 +590,20 @@ export default {
|
|
|
610
590
|
}
|
|
611
591
|
return item.id === ring.id
|
|
612
592
|
})[0]
|
|
613
|
-
|
|
614
|
-
for (let walk of this.sidewalkPhaseData) {
|
|
615
|
-
for (let ped of currPhase.peddirection) {
|
|
616
|
-
// if (stg === walk.phaseid) {
|
|
617
|
-
let objs = {}
|
|
618
|
-
objs.name = walk.name
|
|
619
|
-
objs.id = walk.id
|
|
620
|
-
if (ped === walk.id) {
|
|
621
|
-
peddirections.push(objs)
|
|
622
|
-
peddirections = Array.from(new Set(peddirections))
|
|
623
|
-
}
|
|
624
|
-
// }
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
if (ring.desc && ring.desc.length > 0) {
|
|
593
|
+
if (ring.desc) {
|
|
628
594
|
obj.direction = ring.desc.map(item => { // 虚相位desc为空
|
|
629
595
|
return {
|
|
630
596
|
id: item.id,
|
|
631
|
-
color: '#454545'
|
|
632
|
-
peddirection: peddirections
|
|
597
|
+
color: '#454545'
|
|
633
598
|
}
|
|
634
599
|
})
|
|
635
600
|
} else {
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
}
|
|
643
|
-
})
|
|
644
|
-
} else {
|
|
645
|
-
obj.direction = [
|
|
646
|
-
{
|
|
647
|
-
id: '',
|
|
648
|
-
color: '#454545',
|
|
649
|
-
peddirection: peddirections
|
|
650
|
-
}
|
|
651
|
-
]
|
|
652
|
-
}
|
|
601
|
+
obj.direction = currPhase.direction.map(item => {
|
|
602
|
+
return {
|
|
603
|
+
id: item,
|
|
604
|
+
color: '#454545'
|
|
605
|
+
}
|
|
606
|
+
})
|
|
653
607
|
}
|
|
654
608
|
if (ring.sum) {
|
|
655
609
|
obj.split = split + ring.sum
|
|
@@ -661,22 +615,22 @@ export default {
|
|
|
661
615
|
obj.flashgreen = (currPhase.flashgreen / (this.max ? this.max : this.newCycle) * 100).toFixed(3) + '%'
|
|
662
616
|
obj.redWidth = (currPhase.redclear / (this.max ? this.max : this.newCycle) * 100).toFixed(3) + '%'
|
|
663
617
|
obj.yellowWidth = (currPhase.yellow / (this.max ? this.max : this.newCycle) * 100).toFixed(3) + '%'
|
|
664
|
-
//
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
618
|
+
// obj.peddirection = currPhase.peddirection
|
|
619
|
+
let peddirections = []
|
|
620
|
+
for (let walk of this.sidewalkPhaseData) {
|
|
621
|
+
for (let ped of currPhase.peddirection) {
|
|
622
|
+
// if (stg === walk.phaseid) {
|
|
623
|
+
let objs = {}
|
|
624
|
+
objs.name = walk.name
|
|
625
|
+
objs.id = walk.id
|
|
626
|
+
if (ped === walk.id) {
|
|
627
|
+
peddirections.push(objs)
|
|
628
|
+
peddirections = Array.from(new Set(peddirections))
|
|
629
|
+
}
|
|
630
|
+
// }
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
obj.peddirection = peddirections
|
|
680
634
|
// 忽略相位不显示
|
|
681
635
|
let mode = ring.mode
|
|
682
636
|
if (mode !== 7) { // 忽略相位不显示
|
|
@@ -950,7 +904,6 @@ export default {
|
|
|
950
904
|
float: left;
|
|
951
905
|
// margin-left: 5px;
|
|
952
906
|
height: 34px;
|
|
953
|
-
width: 36px;
|
|
954
907
|
z-index: 999;
|
|
955
908
|
background: rgba(30, 96, 12, 0.2);
|
|
956
909
|
// margin-top:1px;
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
:Width="'55'"
|
|
25
25
|
:Height="'55'" />
|
|
26
26
|
</template> -->
|
|
27
|
-
|
|
27
|
+
<patternwalksvg class="patternWalk"
|
|
28
28
|
:showWalk="item[0].peddirection"
|
|
29
29
|
:Width="'40'"
|
|
30
|
-
:Height="'40'" />
|
|
31
|
-
<xdr-dir-selector Width="40PX" Height="40PX" :
|
|
30
|
+
:Height="'40'" />
|
|
31
|
+
<xdr-dir-selector Width="40PX" Height="40PX" :showlist="item"></xdr-dir-selector>
|
|
32
32
|
<div style="display:flex;flex-direction:row;justify-content:center;align-items:center;">
|
|
33
33
|
<div class="current-stage-num" style="width:20%;">{{index + 1}}</div>
|
|
34
34
|
<div style="width:70%;">
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
<script>
|
|
54
54
|
/* eslint-disable */
|
|
55
55
|
import RingDataModel from '../../../utils/RingDataModel.js'
|
|
56
|
-
|
|
56
|
+
import patternwalksvg from '../PatternWalkSvg/PatternWalkSvg'
|
|
57
57
|
export default {
|
|
58
58
|
name: 'Stages',
|
|
59
59
|
components: {
|
|
60
|
-
|
|
60
|
+
patternwalksvg
|
|
61
61
|
},
|
|
62
62
|
props: {
|
|
63
63
|
isShowCurrentStage: {
|
|
@@ -99,10 +99,6 @@ export default {
|
|
|
99
99
|
},
|
|
100
100
|
data () {
|
|
101
101
|
return {
|
|
102
|
-
showStyle:{
|
|
103
|
-
top:'5PX',
|
|
104
|
-
left:'14px'
|
|
105
|
-
},
|
|
106
102
|
presetStageIndex: -1,
|
|
107
103
|
side: {key: 'pedphase1653818707546719', phaseid: 1, id: 1, name: '东人行横道'},
|
|
108
104
|
// stagesList: [],
|