openatc-components 0.2.18 → 0.2.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.
- package/package/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue +49 -49
- package/package/kisscomps/components/IntersectionDirectionSelection/IntersectionDirectionSelection.vue +39 -8
- 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 -28
- package/package/kisscomps/components/patternConfig/pattern/patternTable.vue +49 -2
- package/package/kisscomps/components/patternConfig/planContent.vue +3 -0
- package/package/kissui.min.js +1 -1
- package/package.json +2 -2
- package/src/EdgeMgr/controller/crossDiagramMgr.js +0 -1
- package/src/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue +49 -49
- package/src/kisscomps/components/IntersectionDirectionSelection/IntersectionDirectionSelection.vue +39 -8
- 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 -28
- package/src/kisscomps/components/patternConfig/pattern/patternTable.vue +49 -2
- package/src/kisscomps/components/patternConfig/planContent.vue +3 -0
- package/src/views/intersection.vue +11 -5
- package/src/views/patternConfig.vue +6 -969
- package/static/styles/schemeconfig.scss +3 -8
- package/src/node_modules/.package_versions.json +0 -1
|
@@ -76,13 +76,28 @@
|
|
|
76
76
|
<el-table-column align="center" :label="$t('openatccomponents.pattern.plan')">
|
|
77
77
|
<template slot-scope="scope">
|
|
78
78
|
<div class="pattern-figure">
|
|
79
|
-
<pattern-list
|
|
79
|
+
<!-- <pattern-list
|
|
80
80
|
:patternStatusList="scope.row.rings"
|
|
81
81
|
:cycles="scope.row.cycle"
|
|
82
82
|
:phaseList="scope.row.currPhase"
|
|
83
|
+
:contrloType="controlType"
|
|
83
84
|
>
|
|
85
|
+
</pattern-list> -->
|
|
86
|
+
<pattern-list
|
|
87
|
+
:patternId="scope.row.patternid"
|
|
88
|
+
:contrloType="getControlType(scope.row)"
|
|
89
|
+
:index="scope.$index"
|
|
90
|
+
:cycleChange="true"
|
|
91
|
+
:stagesChange="getSelectedPattern(scope.row).stagesList"
|
|
92
|
+
:patternStatusList="getSelectedPattern(scope.row).rings"
|
|
93
|
+
:patternList="scope.row.allPatterns"
|
|
94
|
+
:allPatternList="scope.row.allPatterns"
|
|
95
|
+
:cycles="scope.row.cycle"
|
|
96
|
+
:phaseList="scope.row.currPhase"
|
|
97
|
+
:agentId="scope.row.agentid"
|
|
98
|
+
:showBarrier="false">
|
|
84
99
|
</pattern-list>
|
|
85
|
-
|
|
100
|
+
</div>
|
|
86
101
|
</template>
|
|
87
102
|
</el-table-column>
|
|
88
103
|
</el-table>
|
|
@@ -114,6 +129,7 @@ export default {
|
|
|
114
129
|
},
|
|
115
130
|
data () {
|
|
116
131
|
return {
|
|
132
|
+
controlType: 'stage',
|
|
117
133
|
loading: true,
|
|
118
134
|
tableHeight: 460,
|
|
119
135
|
screenHeight: window.innerHeight, // 屏幕高度
|
|
@@ -179,6 +195,9 @@ export default {
|
|
|
179
195
|
let currPattern
|
|
180
196
|
if (Array.isArray(currPatternList)) {
|
|
181
197
|
currPattern = currPatternList.filter(cpl => cpl.id === patternId)[0]
|
|
198
|
+
if (!currPattern) {
|
|
199
|
+
currPattern = currPatternList[0]
|
|
200
|
+
}
|
|
182
201
|
} else {
|
|
183
202
|
currPattern = currPatternList
|
|
184
203
|
}
|
|
@@ -292,6 +311,34 @@ export default {
|
|
|
292
311
|
}
|
|
293
312
|
return res
|
|
294
313
|
},
|
|
314
|
+
getControlType (row) {
|
|
315
|
+
let contrloType = 'ring'
|
|
316
|
+
let allPatternList = row.feature && row.feature.patternList ? row.feature.patternList : row.allPatterns
|
|
317
|
+
if (
|
|
318
|
+
!allPatternList[0].contrloType &&
|
|
319
|
+
allPatternList[0].rings.length > 0
|
|
320
|
+
) {
|
|
321
|
+
contrloType = 'ring'
|
|
322
|
+
} else if (
|
|
323
|
+
!allPatternList[0].contrloType &&
|
|
324
|
+
allPatternList[0].rings.length === 0
|
|
325
|
+
) {
|
|
326
|
+
contrloType = 'stage'
|
|
327
|
+
} else {
|
|
328
|
+
contrloType = allPatternList[0].contrloType
|
|
329
|
+
}
|
|
330
|
+
let res = contrloType
|
|
331
|
+
return res
|
|
332
|
+
},
|
|
333
|
+
getSelectedPattern (row) {
|
|
334
|
+
let res = []
|
|
335
|
+
let patternList = row.feature && row.feature.patternList ? row.feature.patternList : row.allPatterns
|
|
336
|
+
let pattern = patternList.find(item => item.id === row.patternid)
|
|
337
|
+
if (pattern) {
|
|
338
|
+
res = pattern
|
|
339
|
+
}
|
|
340
|
+
return res
|
|
341
|
+
},
|
|
295
342
|
getCurPattern (agentid) {
|
|
296
343
|
// 获取当前设备所有可选方案
|
|
297
344
|
this.loading = true
|
|
@@ -170,6 +170,9 @@ export default {
|
|
|
170
170
|
let currPattern
|
|
171
171
|
if (Array.isArray(currPatternList)) {
|
|
172
172
|
currPattern = currPatternList.filter(cpl => cpl.id === patternId)[0]
|
|
173
|
+
if (!currPattern) {
|
|
174
|
+
currPattern = currPatternList[0]
|
|
175
|
+
}
|
|
173
176
|
} else {
|
|
174
177
|
currPattern = currPatternList
|
|
175
178
|
}
|
|
@@ -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',
|