openatc-components 0.2.17 → 0.2.19
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/IntersectionDirectionSelection/IntersectionDirectionSelection.vue +31 -6
- package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +33 -33
- package/package/kisscomps/components/OverLap/OverLap.vue +3 -24
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +12 -10
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +3 -3
- package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +5 -29
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/EdgeMgr/controller/crossDiagramMgr.js +0 -1
- package/src/kisscomps/components/IntersectionDirectionSelection/IntersectionDirectionSelection.vue +31 -6
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +33 -33
- package/src/kisscomps/components/OverLap/OverLap.vue +3 -24
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +12 -10
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +3 -3
- package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +5 -29
- package/src/views/intersection.vue +11 -5
- package/static/styles/schemeconfig.scss +3 -8
- package/src/node_modules/.package_versions.json +0 -1
package/package.json
CHANGED
package/src/kisscomps/components/IntersectionDirectionSelection/IntersectionDirectionSelection.vue
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="intersection-direction-selection">
|
|
3
3
|
<intersection-base-map
|
|
4
|
-
v-if="!isSpecialIntersection"
|
|
4
|
+
v-if="!isSpecialIntersection && reset"
|
|
5
5
|
ref="intersectionMap2"
|
|
6
6
|
:crossStatusData="crossStatusData"
|
|
7
7
|
:agentId="agentId"
|
|
8
8
|
isVipRoute
|
|
9
|
-
clickMode
|
|
9
|
+
:clickMode="clickMode"
|
|
10
10
|
:isThirdSignal="isThirdSignal"
|
|
11
11
|
:choosedDirection="choosedDirection"
|
|
12
12
|
:choosedPedDirection="choosedPedDirection"
|
|
13
13
|
:roadDirection="roadDirection"
|
|
14
14
|
@handleClickCrossIcon="handleClickCrossIcon" />
|
|
15
15
|
<direction-list-configuration
|
|
16
|
-
v-if="isSpecialIntersection"
|
|
16
|
+
v-if="isSpecialIntersection && clickMode && reset"
|
|
17
17
|
:agentId="agentId"
|
|
18
18
|
:isThirdSignal="isThirdSignal"
|
|
19
19
|
:choosedDirection="choosedDirection"
|
|
@@ -35,7 +35,8 @@ export default {
|
|
|
35
35
|
return {
|
|
36
36
|
crossStatusData: {},
|
|
37
37
|
isSpecialIntersection: false,
|
|
38
|
-
isThirdSignal: false
|
|
38
|
+
isThirdSignal: false,
|
|
39
|
+
reset: true
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
42
|
props: {
|
|
@@ -55,6 +56,23 @@ export default {
|
|
|
55
56
|
},
|
|
56
57
|
thirdSignal: { // 是否是第三方平台(可以直接传,也可以内部接口判断)
|
|
57
58
|
type: Boolean
|
|
59
|
+
},
|
|
60
|
+
clickMode: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: true
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
watch: {
|
|
66
|
+
agentId: {
|
|
67
|
+
handler: function (val, oldVal) {
|
|
68
|
+
if (val) {
|
|
69
|
+
this.reset = false
|
|
70
|
+
this.$nextTick(() => {
|
|
71
|
+
this.reset = true
|
|
72
|
+
this.initSelection()
|
|
73
|
+
})
|
|
74
|
+
}
|
|
75
|
+
}
|
|
58
76
|
}
|
|
59
77
|
},
|
|
60
78
|
methods: {
|
|
@@ -113,15 +131,22 @@ export default {
|
|
|
113
131
|
},
|
|
114
132
|
handleClickCrossIcon (allChoosedDir, curClickedPhase) {
|
|
115
133
|
this.$emit('handleClickCrossIcon', allChoosedDir, curClickedPhase)
|
|
134
|
+
},
|
|
135
|
+
initSelection () {
|
|
136
|
+
this.getIntersectionInfo()
|
|
137
|
+
this.getPlatform()
|
|
116
138
|
}
|
|
117
139
|
},
|
|
118
140
|
mounted () {
|
|
119
|
-
this.
|
|
120
|
-
this.getPlatform()
|
|
141
|
+
this.initSelection()
|
|
121
142
|
},
|
|
122
143
|
destroyed () {
|
|
123
144
|
}
|
|
124
145
|
}
|
|
125
146
|
</script>
|
|
126
147
|
<style lang='scss'>
|
|
148
|
+
.intersection-direction-selection {
|
|
149
|
+
width: 100%;
|
|
150
|
+
height: 100%
|
|
151
|
+
}
|
|
127
152
|
</style>
|
|
@@ -276,7 +276,9 @@ export default {
|
|
|
276
276
|
this.phaseStatusList = val.phase
|
|
277
277
|
this.overlapStatusList = val.overlap
|
|
278
278
|
// 默认显示相位数据(包括黄闪、全红、关灯状态下,或者匝道,均不做比对跟随相位的处理)
|
|
279
|
-
this.
|
|
279
|
+
this.compLanePhaseData = JSON.parse(JSON.stringify(this.LanePhaseData))
|
|
280
|
+
this.compSidewalkPhaseData = JSON.parse(JSON.stringify(this.sidewalkPhaseData))
|
|
281
|
+
this.comdireBusPhaseData = JSON.parse(JSON.stringify(this.busPhaseData))
|
|
280
282
|
if (val.control === 1 || val.control === 2 || val.control === 3) {
|
|
281
283
|
// 黄闪、全红、关灯属于特殊控制,优先级最高,直接改变灯色,不用判断phase里的type,也不需要考虑跟随相位的灯色优先级
|
|
282
284
|
if (val.control === 1) {
|
|
@@ -385,14 +387,6 @@ export default {
|
|
|
385
387
|
this.PhaseDataModel = new PhaseDataModel(this.roadDirection)
|
|
386
388
|
this.getIntersectionInfo() // 获取路口信息
|
|
387
389
|
},
|
|
388
|
-
drawDefaultPhaseIcon () {
|
|
389
|
-
this.compLanePhaseData = JSON.parse(JSON.stringify(this.CrossDiagramMgr.compare(this.LanePhaseData, this.overlapLanePhaseData, 'type', 'nostatus')))
|
|
390
|
-
this.compSidewalkPhaseData = JSON.parse(JSON.stringify(this.CrossDiagramMgr.compare(this.sidewalkPhaseData, this.overlapsidewalkPhaseData, 'pedtype', 'nostatus')))
|
|
391
|
-
this.comdireBusPhaseData = JSON.parse(JSON.stringify(this.busPhaseData))
|
|
392
|
-
console.log(this.LanePhaseData)
|
|
393
|
-
console.log(this.overlapLanePhaseData)
|
|
394
|
-
console.log('###################', this.compLanePhaseData)
|
|
395
|
-
},
|
|
396
390
|
comparePhaseStatus () {
|
|
397
391
|
// 对比车道: 跟随相位和相位的状态数据(此处判断是为了保证被比较的数据direction都是唯一的)
|
|
398
392
|
if (!this.comdirePhaseData && !this.comdireOverlapPhaseData) {
|
|
@@ -504,51 +498,39 @@ export default {
|
|
|
504
498
|
getYellowFlashColor () {
|
|
505
499
|
// 车道相位(左行右行)
|
|
506
500
|
let curLanePhaseData = []
|
|
507
|
-
for (let i = 0; i < this.
|
|
501
|
+
for (let i = 0; i < this.LanePhaseData.length; i++) {
|
|
508
502
|
const data = {
|
|
509
|
-
...this.
|
|
503
|
+
...this.LanePhaseData[i],
|
|
510
504
|
type: '黄闪',
|
|
511
505
|
control: 1
|
|
512
506
|
}
|
|
513
507
|
curLanePhaseData.push(data)
|
|
514
508
|
}
|
|
515
|
-
this.
|
|
509
|
+
this.LanePhaseData = JSON.parse(JSON.stringify(curLanePhaseData))
|
|
516
510
|
|
|
517
511
|
// 行人相位
|
|
518
512
|
let curPedStatus = []
|
|
519
|
-
for (let i = 0; i < this.
|
|
513
|
+
for (let i = 0; i < this.sidewalkPhaseData.length; i++) {
|
|
520
514
|
const data = {
|
|
521
|
-
...this.
|
|
515
|
+
...this.sidewalkPhaseData[i],
|
|
522
516
|
pedtype: '黄闪',
|
|
523
517
|
control: 1
|
|
524
518
|
}
|
|
525
519
|
curPedStatus.push(data)
|
|
526
520
|
}
|
|
527
|
-
this.
|
|
521
|
+
this.sidewalkPhaseData = JSON.parse(JSON.stringify(curPedStatus))
|
|
528
522
|
|
|
529
523
|
// 公交相位
|
|
530
524
|
let curBusLanePhaseData = []
|
|
531
|
-
for (let i = 0; i < this.
|
|
525
|
+
for (let i = 0; i < this.busPhaseData.length; i++) {
|
|
532
526
|
const data = {
|
|
533
|
-
...this.
|
|
527
|
+
...this.busPhaseData[i],
|
|
534
528
|
type: '黄闪',
|
|
535
529
|
control: 1
|
|
536
530
|
}
|
|
537
531
|
curBusLanePhaseData.push(data)
|
|
538
532
|
}
|
|
539
|
-
this.
|
|
540
|
-
|
|
541
|
-
if (this.mainType === '103') {
|
|
542
|
-
// 匝道相位
|
|
543
|
-
if (this.LanePhaseData.length) {
|
|
544
|
-
const LanePhaseData = this.LanePhaseData.map(data => ({
|
|
545
|
-
...data,
|
|
546
|
-
type: '黄闪',
|
|
547
|
-
control: 1
|
|
548
|
-
}))
|
|
549
|
-
this.LanePhaseData = JSON.parse(JSON.stringify(LanePhaseData))
|
|
550
|
-
}
|
|
551
|
-
}
|
|
533
|
+
this.busPhaseData = JSON.parse(JSON.stringify(curBusLanePhaseData))
|
|
552
534
|
},
|
|
553
535
|
getPhaseStatus () {
|
|
554
536
|
// 得到车道相位状态(颜色)
|
|
@@ -684,9 +666,6 @@ export default {
|
|
|
684
666
|
// 获取匝道道路的主路和支路的相位坐标
|
|
685
667
|
this.getRampPhasePos()
|
|
686
668
|
}
|
|
687
|
-
if (!this.isVipRoute) {
|
|
688
|
-
this.drawDefaultPhaseIcon()
|
|
689
|
-
}
|
|
690
669
|
if (this.isVipRoute && this.isThirdSignal) {
|
|
691
670
|
this.LanePhaseData = this.CrossDiagramMgr.compare(this.LanePhaseData, this.overlapLanePhaseData, 'type', 'nostatus')
|
|
692
671
|
// console.log(this.LanePhaseData)
|
|
@@ -814,6 +793,8 @@ export default {
|
|
|
814
793
|
})
|
|
815
794
|
}
|
|
816
795
|
})
|
|
796
|
+
// 行人相位无,也要显示人行横道,与车道相位显示与否逻辑不同
|
|
797
|
+
// this.handleCompleteSidewalkPhase()
|
|
817
798
|
},
|
|
818
799
|
getOverlapPedPhasePos () {
|
|
819
800
|
// 行人跟随相位信息
|
|
@@ -836,6 +817,25 @@ export default {
|
|
|
836
817
|
}
|
|
837
818
|
})
|
|
838
819
|
},
|
|
820
|
+
// handleCompleteSidewalkPhase () {
|
|
821
|
+
// // 没有相位状态的车道也要显示,默认白色
|
|
822
|
+
// let hasDirIds = this.sidewalkPhaseData.map(data => data.id)
|
|
823
|
+
// let allIds = []
|
|
824
|
+
// for (let key of this.PhaseDataModel.SidePosMap.keys()) {
|
|
825
|
+
// allIds.push(key)
|
|
826
|
+
// }
|
|
827
|
+
// let diffIds = allIds.filter(function (val) { return hasDirIds.indexOf(val) === -1 })
|
|
828
|
+
// diffIds.forEach(id => {
|
|
829
|
+
// this.sidewalkPhaseData.push({
|
|
830
|
+
// key: `${this.sidewalkPhaseData.length + 1}`,
|
|
831
|
+
// phaseid: undefined, // 相位id,用于对应相位状态
|
|
832
|
+
// id,
|
|
833
|
+
// name: this.PhaseDataModel.getSidePos(id).name,
|
|
834
|
+
// left: this.PhaseDataModel.getSidePos(id).x,
|
|
835
|
+
// top: this.PhaseDataModel.getSidePos(id).y
|
|
836
|
+
// })
|
|
837
|
+
// })
|
|
838
|
+
// },
|
|
839
839
|
getCrossType () {
|
|
840
840
|
// 路口类型对应底图决策
|
|
841
841
|
if (this.mainType === '101') {
|
|
@@ -47,8 +47,7 @@ export default {
|
|
|
47
47
|
},
|
|
48
48
|
data () {
|
|
49
49
|
return {
|
|
50
|
-
overlapDatas: []
|
|
51
|
-
max: ''
|
|
50
|
+
overlapDatas: []
|
|
52
51
|
}
|
|
53
52
|
},
|
|
54
53
|
props: {
|
|
@@ -68,10 +67,6 @@ export default {
|
|
|
68
67
|
type: Boolean,
|
|
69
68
|
default: false
|
|
70
69
|
},
|
|
71
|
-
cycleChange: {
|
|
72
|
-
type: Boolean,
|
|
73
|
-
default: true
|
|
74
|
-
},
|
|
75
70
|
cycle: {
|
|
76
71
|
type: Number
|
|
77
72
|
},
|
|
@@ -87,13 +82,6 @@ export default {
|
|
|
87
82
|
// 深度观察监听
|
|
88
83
|
deep: true
|
|
89
84
|
},
|
|
90
|
-
cycleChange: {
|
|
91
|
-
handler: function (val, oldVal) {
|
|
92
|
-
this.doAdd(this.stageList, this.overlap)
|
|
93
|
-
},
|
|
94
|
-
// 深度观察监听
|
|
95
|
-
deep: true
|
|
96
|
-
},
|
|
97
85
|
stageList: {
|
|
98
86
|
handler: function (val, oldVal) {
|
|
99
87
|
this.doAdd(this.stageList, this.overlap)
|
|
@@ -152,15 +140,6 @@ export default {
|
|
|
152
140
|
if (findItems.length) findIndexs.push(...findItems.map(m => m.key))
|
|
153
141
|
})
|
|
154
142
|
findIndexs = Array.from(new Set(findIndexs))
|
|
155
|
-
if (this.cycleChange) {
|
|
156
|
-
const globalParamModel = this.$store.getters.globalParamModel
|
|
157
|
-
let pattern = globalParamModel.getParamsByType('patternList')
|
|
158
|
-
const allCycle = pattern.map(item => item.cycle)
|
|
159
|
-
let cycle = Math.max(...allCycle)
|
|
160
|
-
this.max = cycle
|
|
161
|
-
} else {
|
|
162
|
-
this.max = ''
|
|
163
|
-
}
|
|
164
143
|
return {
|
|
165
144
|
...item,
|
|
166
145
|
peddirection: this.getPedPhasePos(item.peddirection),
|
|
@@ -171,8 +150,8 @@ export default {
|
|
|
171
150
|
...sta,
|
|
172
151
|
direction: this.getRoad(item),
|
|
173
152
|
// peddirection: this.getPedPhasePos(item.peddirection),
|
|
174
|
-
greenWidth: find ? (sta.split /
|
|
175
|
-
redWidth: !find ? (sta.split /
|
|
153
|
+
greenWidth: find ? (sta.split / this.cycle * 100).toFixed(3) + '%' : '0%',
|
|
154
|
+
redWidth: !find ? (sta.split / this.cycle * 100).toFixed(3) + '%' : '0%'
|
|
176
155
|
}
|
|
177
156
|
})
|
|
178
157
|
}
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
<div class="curTimeLine" :style="{'left':paddingLeft, 'height':barrierHeight}"></div>
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
|
-
<div v-if="this.contrloType === 'stage'"
|
|
56
|
+
<div v-if="this.contrloType === 'stage'">
|
|
57
57
|
<div v-for="(list, index1) in stageLists" :key="index1">
|
|
58
58
|
<!-- <div> -->
|
|
59
59
|
<div class="first-1" :style="{'width':list.greenWidth,'height':'34px','position':'relative','background':'#7ccc66'}">
|
|
@@ -215,7 +215,7 @@ export default {
|
|
|
215
215
|
handler: function (val, oldVal) {
|
|
216
216
|
if (val && val.curTime) {
|
|
217
217
|
this.curtime = val.curTime
|
|
218
|
-
if (val.control ===
|
|
218
|
+
if (val.control === '相位锁定' || val.control === '通道锁定' || val.control === '阶段锁定') {
|
|
219
219
|
this.isControl = false
|
|
220
220
|
} else {
|
|
221
221
|
this.isControl = true
|
|
@@ -244,7 +244,7 @@ export default {
|
|
|
244
244
|
}
|
|
245
245
|
if (val && val.curTime) {
|
|
246
246
|
this.curtime = val.curTime
|
|
247
|
-
if (val.control ===
|
|
247
|
+
if (val.control === '相位锁定' || val.control === '通道锁定' || val.control === '阶段锁定') {
|
|
248
248
|
this.isControl = false
|
|
249
249
|
} else {
|
|
250
250
|
this.isControl = true
|
|
@@ -432,9 +432,9 @@ export default {
|
|
|
432
432
|
},
|
|
433
433
|
getStage () {
|
|
434
434
|
if (!this.stagesChange) return
|
|
435
|
-
const globalParamModel = this.$store.getters.globalParamModel
|
|
436
|
-
let pattern = globalParamModel.getParamsByType('patternList')
|
|
437
|
-
let mapAdd =
|
|
435
|
+
// const globalParamModel = this.$store.getters.globalParamModel
|
|
436
|
+
// let pattern = globalParamModel.getParamsByType('patternList')
|
|
437
|
+
let mapAdd = this.allPatternList.map(item => item.stagesList).map(item => {
|
|
438
438
|
return item.map(val => {
|
|
439
439
|
return val.stageSplit ? val.stageSplit : val.split
|
|
440
440
|
})
|
|
@@ -444,6 +444,7 @@ export default {
|
|
|
444
444
|
return a + b
|
|
445
445
|
}) : 0
|
|
446
446
|
}) : 0
|
|
447
|
+
console.log(maxCycle, 'maxCycle')
|
|
447
448
|
let stageMaxCyle = Math.max(...maxCycle)// 每个环的周期最大值
|
|
448
449
|
if (!this.cycleChange) {
|
|
449
450
|
let stageCycleList = this.stagesChange.map(item => {
|
|
@@ -463,6 +464,7 @@ export default {
|
|
|
463
464
|
redWidth: (item.red / stageMaxCyle * 100).toFixed(3) + '%'
|
|
464
465
|
}
|
|
465
466
|
})
|
|
467
|
+
console.log(this.stageLists, '011')
|
|
466
468
|
},
|
|
467
469
|
getBusPos () {
|
|
468
470
|
// 公交相位信息
|
|
@@ -1050,9 +1052,9 @@ export default {
|
|
|
1050
1052
|
this.fillGap(ringTeams, val)
|
|
1051
1053
|
}
|
|
1052
1054
|
if (this.cycleChange) {
|
|
1053
|
-
const globalParamModel = this.$store.getters.globalParamModel
|
|
1054
|
-
let pattern = globalParamModel.getParamsByType('patternList')
|
|
1055
|
-
const allCycle =
|
|
1055
|
+
// const globalParamModel = this.$store.getters.globalParamModel
|
|
1056
|
+
// let pattern = globalParamModel.getParamsByType('patternList')
|
|
1057
|
+
const allCycle = this.patternList.map(item => item.cycle)
|
|
1056
1058
|
let cycle = Math.max(...allCycle)
|
|
1057
1059
|
this.max = cycle
|
|
1058
1060
|
} else {
|
|
@@ -1061,7 +1063,7 @@ export default {
|
|
|
1061
1063
|
let barrier = this.step2(ringTeams, newPattern)
|
|
1062
1064
|
let barrierLeft = barrier.map(item => item)// 屏障左移显示出人行横道
|
|
1063
1065
|
this.barrierList = barrierLeft.map(j => {
|
|
1064
|
-
return (j / (this.max ? this.max :
|
|
1066
|
+
return (j / (this.max ? this.max : this.newCycle) * 100) + '%'
|
|
1065
1067
|
})
|
|
1066
1068
|
// this.barrierList.unshift(0)
|
|
1067
1069
|
}
|
|
@@ -510,9 +510,9 @@ export default {
|
|
|
510
510
|
data[key] = that.ParamsModeEn.get(0)
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
513
|
+
if (key === 'control') {
|
|
514
|
+
data[key] = that.ParamsControlEn.get(data[key])
|
|
515
|
+
}
|
|
516
516
|
if (key === 'phase') {
|
|
517
517
|
for (let val of data[key]) {
|
|
518
518
|
val.type = that.phaseTypeEn.get(val.type)
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
</el-row>
|
|
95
95
|
<el-row>
|
|
96
96
|
<el-radio
|
|
97
|
+
style="margin-left: 30px"
|
|
97
98
|
v-model="isRing"
|
|
98
99
|
:label="false"
|
|
99
100
|
@change="changeRing"
|
|
@@ -109,11 +110,10 @@
|
|
|
109
110
|
:patternStatusList="patternOne.length===0?planPattern.rings:patternOne[0].rings"
|
|
110
111
|
>
|
|
111
112
|
</stage-status> -->
|
|
112
|
-
{{contrloType}}
|
|
113
113
|
<pattern-list
|
|
114
114
|
:key="keyChange"
|
|
115
115
|
:allPatternList="allPatternList"
|
|
116
|
-
:contrloType="
|
|
116
|
+
:contrloType="!this.isRing ? 'ring' : 'stage'"
|
|
117
117
|
:stagesChange="
|
|
118
118
|
patternOne.length === 0
|
|
119
119
|
? planPattern.stagesList
|
|
@@ -390,7 +390,6 @@ export default {
|
|
|
390
390
|
group: 'pattern'
|
|
391
391
|
},
|
|
392
392
|
max: '',
|
|
393
|
-
contrloType: '',
|
|
394
393
|
patternCycleEqual: true,
|
|
395
394
|
activeList: 'ring',
|
|
396
395
|
isRing: false,
|
|
@@ -418,25 +417,6 @@ export default {
|
|
|
418
417
|
this.handleStageData(this.planPattern.rings)
|
|
419
418
|
}
|
|
420
419
|
this.initData()
|
|
421
|
-
if (!this.allPatternList[0].contrloType && this.allPatternList[0].rings.length > 0) {
|
|
422
|
-
this.contrloType = 'ring'
|
|
423
|
-
} else if (!this.allPatternList[0].contrloType && this.allPatternList[0].rings.length === 0) {
|
|
424
|
-
this.contrloType = 'stage'
|
|
425
|
-
} else {
|
|
426
|
-
this.contrloType = this.allPatternList[0].contrloType
|
|
427
|
-
}
|
|
428
|
-
for (let i = 0; i < this.allPatternList.length; i++) {
|
|
429
|
-
if (this.allPatternList[i].contrloType === 'stage' || (this.isRing && !this.allPatternList[i].contrloType)) {
|
|
430
|
-
this.isRing = true
|
|
431
|
-
// this.setStageList(this.allPatternList[i].stagesList, this.allPatternList[i].id)
|
|
432
|
-
} else if (this.allPatternList[i].contrloType === 'ring' || (!this.isRing && !this.allPatternList[i].contrloType && this.allPatternList[i].rings.length > 0)) {
|
|
433
|
-
this.isRing = false
|
|
434
|
-
// this.handleStageData(this.allPatternList[i].rings)
|
|
435
|
-
} else if (this.allPatternList[i].rings.length === 0 && this.allPatternList[i].stagesList.length > 0) {
|
|
436
|
-
this.isRing = true
|
|
437
|
-
// this.setStageList(this.allPatternList[i].stagesList, this.allPatternList[i].id)
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
420
|
},
|
|
441
421
|
methods: {
|
|
442
422
|
addStage (row) {
|
|
@@ -468,7 +448,7 @@ export default {
|
|
|
468
448
|
}
|
|
469
449
|
},
|
|
470
450
|
changeRing () {
|
|
471
|
-
this.contrloType = '
|
|
451
|
+
// this.contrloType = 'stage'
|
|
472
452
|
this.isRing = false
|
|
473
453
|
// const globalParamModel = this.$store.getters.globalParamModel
|
|
474
454
|
// let pattern = globalParamModel.getParamsByType('patternList')
|
|
@@ -488,11 +468,7 @@ export default {
|
|
|
488
468
|
// }
|
|
489
469
|
},
|
|
490
470
|
changeStage () {
|
|
491
|
-
this.contrloType = 'stage'
|
|
492
471
|
this.isRing = true
|
|
493
|
-
this.patternOne = this.allPatternList.filter(item => {
|
|
494
|
-
return item.id === Number(this.manualInfo.tempPatternid)
|
|
495
|
-
})
|
|
496
472
|
this.getStageCycle()
|
|
497
473
|
},
|
|
498
474
|
getStageCycle () {
|
|
@@ -873,14 +849,14 @@ export default {
|
|
|
873
849
|
setTimeout(() => {
|
|
874
850
|
this.handleStageData(currPattern)
|
|
875
851
|
this.getCycles()
|
|
876
|
-
|
|
852
|
+
this.patternOne[0].stagesList = this.stagesList
|
|
877
853
|
}, 50)
|
|
878
854
|
} else {
|
|
879
855
|
let currPattern = this.planPattern.rings
|
|
880
856
|
setTimeout(() => {
|
|
881
857
|
this.handleStageData(currPattern)
|
|
882
858
|
this.getCycle()
|
|
883
|
-
|
|
859
|
+
this.allPatternList[0].stagesList = this.stagesList
|
|
884
860
|
}, 50)
|
|
885
861
|
}
|
|
886
862
|
},
|
|
@@ -9,13 +9,19 @@
|
|
|
9
9
|
|
|
10
10
|
<!-- 显示按通道获取相位的模版路口图 -->
|
|
11
11
|
<h2 class="text">显示配置的相位路口图</h2>
|
|
12
|
-
<intersection-base-map
|
|
12
|
+
<!-- <intersection-base-map
|
|
13
13
|
ref="intersectionMap"
|
|
14
14
|
:crossStatusData="crossStatusData"
|
|
15
|
-
agentId="
|
|
15
|
+
agentId="tjblsxl-ticp6"
|
|
16
16
|
isVipRoute
|
|
17
17
|
:choosedDirection="[1,2,3]"
|
|
18
18
|
:choosedPedDirection="[3,4]"
|
|
19
|
+
:roadDirection="roadDirection" /> -->
|
|
20
|
+
<intersection-direction-selection
|
|
21
|
+
:agentId="this.agentId"
|
|
22
|
+
:clickMode="false"
|
|
23
|
+
:choosedDirection="[14,6,13,8]"
|
|
24
|
+
:choosedPedDirection="[1]"
|
|
19
25
|
:roadDirection="roadDirection" />
|
|
20
26
|
|
|
21
27
|
<!-- 按通道获取相位的方向选择列表,特殊路口显示列表,普通路口显示模版路口图 -->
|
|
@@ -131,14 +137,14 @@ export default {
|
|
|
131
137
|
name: 'demo',
|
|
132
138
|
data () {
|
|
133
139
|
return {
|
|
134
|
-
roadDirection: '
|
|
140
|
+
roadDirection: 'right',
|
|
135
141
|
// reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
136
|
-
agentId: '
|
|
142
|
+
agentId: 'tjblsxl-ticp6',
|
|
137
143
|
// agentId: '13013',
|
|
138
144
|
// agentId: '12007_390',
|
|
139
145
|
// agentId: '12014',
|
|
140
146
|
reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
141
|
-
Token: '
|
|
147
|
+
Token: 'eyJraWQiOiIxNzE0MDk1MjUwNTU5IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcxNDEzODQ1MCwiaWF0IjoxNzE0MDk1MjUwfQ.17SP6vzbImSV2jy_LC10xQaH7z4aXWvg3yc2bUFLYvE',
|
|
142
148
|
// agentId: '30003-352',
|
|
143
149
|
// reqUrl: 'https://kints-dev.devdolphin.com/openatc',
|
|
144
150
|
// Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
|
|
@@ -342,17 +342,12 @@
|
|
|
342
342
|
margin: 10px auto;
|
|
343
343
|
color: $--color-text-primary;
|
|
344
344
|
}
|
|
345
|
-
.stage-panel-contener {
|
|
346
|
-
display: flex;
|
|
347
|
-
align-items: center;
|
|
348
|
-
flex-wrap: wrap;
|
|
349
|
-
}
|
|
350
345
|
.optimizetype {
|
|
351
346
|
color: $--color-text-primary;
|
|
352
347
|
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
348
|
+
.todo {
|
|
349
|
+
float: left;
|
|
350
|
+
}
|
|
356
351
|
.stage-item {
|
|
357
352
|
cursor: pointer;
|
|
358
353
|
width: 100%;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|