openatc-components 0.2.20 → 0.2.22
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 +8 -39
- package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +33 -33
- package/package/kisscomps/components/OverLap/OverLap.vue +24 -3
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +10 -12
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +3 -3
- package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +28 -5
- package/package/kisscomps/components/patternConfig/pattern/patternTable.vue +2 -49
- package/package/kisscomps/components/patternConfig/planContent.vue +0 -3
- package/package/kissui.min.js +1 -1
- package/package.json +2 -2
- package/src/EdgeMgr/controller/crossDiagramMgr.js +1 -0
- package/src/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue +49 -49
- package/src/kisscomps/components/IntersectionDirectionSelection/IntersectionDirectionSelection.vue +8 -39
- package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +33 -33
- package/src/kisscomps/components/OverLap/OverLap.vue +24 -3
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +10 -12
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +3 -3
- package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +28 -5
- package/src/kisscomps/components/patternConfig/pattern/patternTable.vue +2 -49
- package/src/kisscomps/components/patternConfig/planContent.vue +0 -3
- package/src/node_modules/.package_versions.json +1 -0
- package/src/views/intersection.vue +5 -11
- package/src/views/patternConfig.vue +969 -6
- package/static/styles/schemeconfig.scss +8 -3
|
@@ -76,28 +76,13 @@
|
|
|
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
|
-
|
|
79
|
+
<pattern-list
|
|
80
80
|
:patternStatusList="scope.row.rings"
|
|
81
81
|
:cycles="scope.row.cycle"
|
|
82
82
|
:phaseList="scope.row.currPhase"
|
|
83
|
-
:contrloType="controlType"
|
|
84
83
|
>
|
|
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">
|
|
99
84
|
</pattern-list>
|
|
100
|
-
|
|
85
|
+
</div>
|
|
101
86
|
</template>
|
|
102
87
|
</el-table-column>
|
|
103
88
|
</el-table>
|
|
@@ -129,7 +114,6 @@ export default {
|
|
|
129
114
|
},
|
|
130
115
|
data () {
|
|
131
116
|
return {
|
|
132
|
-
controlType: 'stage',
|
|
133
117
|
loading: true,
|
|
134
118
|
tableHeight: 460,
|
|
135
119
|
screenHeight: window.innerHeight, // 屏幕高度
|
|
@@ -195,9 +179,6 @@ export default {
|
|
|
195
179
|
let currPattern
|
|
196
180
|
if (Array.isArray(currPatternList)) {
|
|
197
181
|
currPattern = currPatternList.filter(cpl => cpl.id === patternId)[0]
|
|
198
|
-
if (!currPattern) {
|
|
199
|
-
currPattern = currPatternList[0]
|
|
200
|
-
}
|
|
201
182
|
} else {
|
|
202
183
|
currPattern = currPatternList
|
|
203
184
|
}
|
|
@@ -311,34 +292,6 @@ export default {
|
|
|
311
292
|
}
|
|
312
293
|
return res
|
|
313
294
|
},
|
|
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
|
-
},
|
|
342
295
|
getCurPattern (agentid) {
|
|
343
296
|
// 获取当前设备所有可选方案
|
|
344
297
|
this.loading = true
|
|
@@ -170,9 +170,6 @@ 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
|
-
}
|
|
176
173
|
} else {
|
|
177
174
|
currPattern = currPatternList
|
|
178
175
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -9,19 +9,13 @@
|
|
|
9
9
|
|
|
10
10
|
<!-- 显示按通道获取相位的模版路口图 -->
|
|
11
11
|
<h2 class="text">显示配置的相位路口图</h2>
|
|
12
|
-
|
|
12
|
+
<intersection-base-map
|
|
13
13
|
ref="intersectionMap"
|
|
14
14
|
:crossStatusData="crossStatusData"
|
|
15
|
-
agentId="
|
|
15
|
+
agentId="bclgkxl"
|
|
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]"
|
|
25
19
|
:roadDirection="roadDirection" />
|
|
26
20
|
|
|
27
21
|
<!-- 按通道获取相位的方向选择列表,特殊路口显示列表,普通路口显示模版路口图 -->
|
|
@@ -137,14 +131,14 @@ export default {
|
|
|
137
131
|
name: 'demo',
|
|
138
132
|
data () {
|
|
139
133
|
return {
|
|
140
|
-
roadDirection: '
|
|
134
|
+
roadDirection: 'left',
|
|
141
135
|
// reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
142
|
-
agentId: '
|
|
136
|
+
agentId: 'bclgkxl',
|
|
143
137
|
// agentId: '13013',
|
|
144
138
|
// agentId: '12007_390',
|
|
145
139
|
// agentId: '12014',
|
|
146
140
|
reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
147
|
-
Token: '
|
|
141
|
+
Token: 'eyJraWQiOiIxNzEwNzU4MTU3Njk0IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiIxMjM0NTYiLCJleHAiOjE3MTM4ODgwMDAsImlhdCI6MTcxMDY5MTIwMH0.vicLABPjoZEWmHr12-5FXMbjYmEKv-WSTVRROR1eOME',
|
|
148
142
|
// agentId: '30003-352',
|
|
149
143
|
// reqUrl: 'https://kints-dev.devdolphin.com/openatc',
|
|
150
144
|
// Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
|