openatc-components 0.4.92 → 0.4.94
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/DrawChannelization/drawsvg/index.draw.vue +12 -2
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +12 -2
- package/src/views/customchannelization.vue +5 -6
- package/src/views/intersection.vue +14 -145
package/package.json
CHANGED
|
@@ -96,6 +96,10 @@
|
|
|
96
96
|
<el-button type="primary" @click="savedraw()">{{$t('openatccomponents.button.save')}}</el-button>
|
|
97
97
|
<el-button type="primary" @click="importFromFile()">{{$t('openatccomponents.main.import')}}</el-button>
|
|
98
98
|
<el-button type="primary" @click="exportToFile()">{{$t('openatccomponents.main.export')}}</el-button>
|
|
99
|
+
<el-switch
|
|
100
|
+
v-model="isDefaultShowQuhua"
|
|
101
|
+
active-text="渠化默认显示">
|
|
102
|
+
</el-switch>
|
|
99
103
|
</div>
|
|
100
104
|
</div>
|
|
101
105
|
<div class="custom-edit" ref="customEdit">
|
|
@@ -316,7 +320,8 @@ export default {
|
|
|
316
320
|
]),
|
|
317
321
|
phaseAssociatedMap: new Map(), // 关联相位Map: key 是相位ID, value 是车道数据包含direction
|
|
318
322
|
dialogVisible: false,
|
|
319
|
-
LoadedChannelizatonData: {} // 从接口获取到的渠化参数,用于作为加载数据,从文件导入可修改
|
|
323
|
+
LoadedChannelizatonData: {}, // 从接口获取到的渠化参数,用于作为加载数据,从文件导入可修改
|
|
324
|
+
isDefaultShowQuhua: true // 控制总览是否默认显示渠化图的开关
|
|
320
325
|
}
|
|
321
326
|
},
|
|
322
327
|
methods: {
|
|
@@ -823,7 +828,10 @@ export default {
|
|
|
823
828
|
// 保存
|
|
824
829
|
savedraw () {
|
|
825
830
|
let temp = {}
|
|
826
|
-
temp =
|
|
831
|
+
temp = {
|
|
832
|
+
...this.handleSaveParams(),
|
|
833
|
+
isDefaultShowQuhua: this.isDefaultShowQuhua
|
|
834
|
+
}
|
|
827
835
|
this.saveChannelizatonChart(temp)
|
|
828
836
|
},
|
|
829
837
|
// 加载
|
|
@@ -831,6 +839,8 @@ export default {
|
|
|
831
839
|
this.curChooseIconIndex = -1
|
|
832
840
|
let savedTemp = JSON.parse(JSON.stringify(this.LoadedChannelizatonData))
|
|
833
841
|
let arr = []
|
|
842
|
+
this.isDefaultShowQuhua = savedTemp.isDefaultShowQuhua
|
|
843
|
+
delete savedTemp.isDefaultShowQuhua
|
|
834
844
|
for (const [key, value] of Object.entries(savedTemp)) {
|
|
835
845
|
if (key === 'vehile') {
|
|
836
846
|
this.Motorways = value
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<!-- 渠化绘制demo -->
|
|
3
3
|
<div style="height: 100%;">
|
|
4
|
-
<custom-channelization
|
|
5
|
-
:
|
|
6
|
-
|
|
7
|
-
<!-- <CustomChannelization
|
|
4
|
+
<!-- <custom-channelization
|
|
5
|
+
:AgentId="agentId" /> -->
|
|
6
|
+
<CustomChannelization
|
|
8
7
|
:AgentId="agentId"
|
|
9
8
|
:tscParam="tscParams"
|
|
10
|
-
@saveCallback="saveCallback" />
|
|
9
|
+
@saveCallback="saveCallback" />
|
|
11
10
|
</div>
|
|
12
11
|
</template>
|
|
13
12
|
<script>
|
|
@@ -17,7 +16,7 @@ export default {
|
|
|
17
16
|
name: 'custom-channelization-demo',
|
|
18
17
|
data () {
|
|
19
18
|
return {
|
|
20
|
-
agentId: '
|
|
19
|
+
agentId: '0',
|
|
21
20
|
tscParams: {}
|
|
22
21
|
}
|
|
23
22
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
|
|
3
|
+
<intersection-with-interface :AgentId="agentId" />
|
|
4
4
|
<h2 class="text">实时通道路口图</h2>
|
|
5
5
|
<!-- <channel-realtime-intersection
|
|
6
6
|
:agentId="this.agentId"
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
<!-- channelType是按通道显示方向;不传按相位显示方向 -->
|
|
13
13
|
<!-- clickMode是否开启方向选择功能 -->
|
|
14
14
|
<el-button @click="clear" style="color: #fff;">清空</el-button>
|
|
15
|
-
|
|
15
|
+
<custom-intersection-base-map
|
|
16
16
|
ref="intersectionMap3"
|
|
17
17
|
clickMode
|
|
18
18
|
channelType
|
|
19
19
|
:agentId="this.agentId"
|
|
20
20
|
:choosedDirection="choosedDirection"
|
|
21
|
-
:choosedPedDirection="choosedPedDirection"/>
|
|
21
|
+
:choosedPedDirection="choosedPedDirection"/>
|
|
22
22
|
|
|
23
23
|
<!-- 按通道获取相位的方向选择列表,特殊路口显示列表,普通路口显示模版路口图 -->
|
|
24
24
|
<h2 class="text">非第三方配置路口图(按通道显示相位方向)</h2>
|
|
@@ -52,13 +52,13 @@
|
|
|
52
52
|
:roadDirection="roadDirection" /> -->
|
|
53
53
|
<el-button @click="refresh">刷新特勤路口底图</el-button>
|
|
54
54
|
<el-button @click="changeChoosedDir" style="color: #fff;">重置所选方向</el-button>
|
|
55
|
-
|
|
55
|
+
<intersection-direction-selection
|
|
56
56
|
ref="selectMap"
|
|
57
57
|
agentId="16005"
|
|
58
58
|
:clickMode="false"
|
|
59
59
|
:choosedDirection="choosedDirection"
|
|
60
60
|
:choosedPedDirection="choosedPedDirection"
|
|
61
|
-
:roadDirection="roadDirection" />
|
|
61
|
+
:roadDirection="roadDirection" />
|
|
62
62
|
|
|
63
63
|
<!-- <button @click="lockPhase" >相位锁定</button><br/>
|
|
64
64
|
<button @click="unlockPhase" >解锁相位</button><br/>
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
<!-- <Stages :stagesList="stagesList"
|
|
123
123
|
:currentStage="currentStage"
|
|
124
124
|
@onSelectStages="onSelectStages"></Stages> -->
|
|
125
|
-
|
|
125
|
+
<div style="height: 100px;">
|
|
126
126
|
<PhaseLegend :crossStatusData="tscControlData"
|
|
127
127
|
:phaseList="phaseList"
|
|
128
128
|
showDataType="phase"
|
|
@@ -137,22 +137,18 @@
|
|
|
137
137
|
:showStyle="{top:'2PX',left:'9px'}"
|
|
138
138
|
:showStyles="{top:'0PX',left:'7px'}"
|
|
139
139
|
></PhaseLegend>
|
|
140
|
-
</div>
|
|
140
|
+
</div>
|
|
141
141
|
|
|
142
|
-
<h2 style="color: #fff;">渠化图</h2>
|
|
143
|
-
|
|
142
|
+
<!-- <h2 style="color: #fff;">渠化图</h2>
|
|
143
|
+
<channelization-with-interface
|
|
144
144
|
ref="channelization"
|
|
145
145
|
:AgentId="agentId"
|
|
146
146
|
:reqUrl="reqUrl"
|
|
147
147
|
:Token="Token"
|
|
148
148
|
@getTscControl="getTscControl"
|
|
149
|
-
@onPhaseChange="onPhaseChange"/>
|
|
150
|
-
<channelization
|
|
151
|
-
AgentId="16005"
|
|
152
|
-
:crossStatusData="crossStatusData2"
|
|
153
|
-
:detectorStatusData="{}" />
|
|
149
|
+
@onPhaseChange="onPhaseChange"/>
|
|
154
150
|
|
|
155
|
-
|
|
151
|
+
<h2 style="color: #fff;">流量统计渠化路口图</h2>
|
|
156
152
|
<channelization-flow-statistic
|
|
157
153
|
:AgentId="agentId"
|
|
158
154
|
:phasesStatisticsList="phasesStatisticsList"
|
|
@@ -181,12 +177,12 @@ export default {
|
|
|
181
177
|
return {
|
|
182
178
|
roadDirection: 'right',
|
|
183
179
|
// reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
184
|
-
agentId: '
|
|
180
|
+
agentId: '1059',
|
|
185
181
|
// agentId: '13013',
|
|
186
182
|
// agentId: '12007_390',
|
|
187
183
|
// agentId: '12014',
|
|
188
184
|
reqUrl: 'http://192.168.13.103:10003/openatc',
|
|
189
|
-
Token: '
|
|
185
|
+
Token: 'eyJraWQiOiIxNzYxMjY5Mzk4MDQ2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc2MTI3Mjk5OSwiaWF0IjoxNzYxMjY1Nzk5fQ.5qQJQWZLDI6tav6Mhfc7W6o1fH-NFPVrefQsA6tcNoU',
|
|
190
186
|
// agentId: '30003-352',
|
|
191
187
|
// reqUrl: 'https://kints-dev.devdolphin.com/openatc',
|
|
192
188
|
// Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
|
|
@@ -346,134 +342,7 @@ export default {
|
|
|
346
342
|
tscControlData: {},
|
|
347
343
|
phaseList: [],
|
|
348
344
|
choosedDirection: [1, 5],
|
|
349
|
-
choosedPedDirection: [3]
|
|
350
|
-
crossStatusData2: {
|
|
351
|
-
'phase': [
|
|
352
|
-
{
|
|
353
|
-
'id': 1,
|
|
354
|
-
'type': 3,
|
|
355
|
-
'pedtype': 3
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
'id': 2,
|
|
359
|
-
'type': 1,
|
|
360
|
-
'pedtype': 1
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
'id': 3,
|
|
364
|
-
'type': 1,
|
|
365
|
-
'pedtype': 1
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
'id': 4,
|
|
369
|
-
'type': 1,
|
|
370
|
-
'pedtype': 1
|
|
371
|
-
}
|
|
372
|
-
],
|
|
373
|
-
'mode': 0,
|
|
374
|
-
'control': 5,
|
|
375
|
-
'patternid': 2,
|
|
376
|
-
'cycle': 107,
|
|
377
|
-
'patternoffset': 0,
|
|
378
|
-
'stages': [
|
|
379
|
-
[
|
|
380
|
-
1
|
|
381
|
-
],
|
|
382
|
-
[
|
|
383
|
-
2
|
|
384
|
-
],
|
|
385
|
-
[
|
|
386
|
-
3
|
|
387
|
-
],
|
|
388
|
-
[
|
|
389
|
-
4
|
|
390
|
-
],
|
|
391
|
-
[
|
|
392
|
-
1
|
|
393
|
-
],
|
|
394
|
-
[
|
|
395
|
-
2
|
|
396
|
-
],
|
|
397
|
-
[
|
|
398
|
-
3
|
|
399
|
-
],
|
|
400
|
-
[
|
|
401
|
-
4
|
|
402
|
-
],
|
|
403
|
-
[
|
|
404
|
-
1
|
|
405
|
-
],
|
|
406
|
-
[
|
|
407
|
-
2
|
|
408
|
-
],
|
|
409
|
-
[
|
|
410
|
-
3
|
|
411
|
-
],
|
|
412
|
-
[
|
|
413
|
-
4
|
|
414
|
-
],
|
|
415
|
-
[
|
|
416
|
-
1
|
|
417
|
-
],
|
|
418
|
-
[
|
|
419
|
-
2
|
|
420
|
-
],
|
|
421
|
-
[
|
|
422
|
-
3
|
|
423
|
-
],
|
|
424
|
-
[
|
|
425
|
-
4
|
|
426
|
-
]
|
|
427
|
-
],
|
|
428
|
-
'stages_len': [
|
|
429
|
-
0,
|
|
430
|
-
0,
|
|
431
|
-
0,
|
|
432
|
-
0,
|
|
433
|
-
0,
|
|
434
|
-
0,
|
|
435
|
-
0,
|
|
436
|
-
0,
|
|
437
|
-
0,
|
|
438
|
-
0,
|
|
439
|
-
0,
|
|
440
|
-
0,
|
|
441
|
-
0,
|
|
442
|
-
0,
|
|
443
|
-
0,
|
|
444
|
-
0
|
|
445
|
-
],
|
|
446
|
-
'stages_seq': [
|
|
447
|
-
1,
|
|
448
|
-
2,
|
|
449
|
-
3,
|
|
450
|
-
4,
|
|
451
|
-
5,
|
|
452
|
-
6,
|
|
453
|
-
7,
|
|
454
|
-
8,
|
|
455
|
-
9,
|
|
456
|
-
10,
|
|
457
|
-
11,
|
|
458
|
-
12,
|
|
459
|
-
13,
|
|
460
|
-
14,
|
|
461
|
-
15,
|
|
462
|
-
16
|
|
463
|
-
],
|
|
464
|
-
'current_stage': 1,
|
|
465
|
-
'current_stagecd': 0,
|
|
466
|
-
'offset': 0,
|
|
467
|
-
'current_phase': [
|
|
468
|
-
1
|
|
469
|
-
],
|
|
470
|
-
'next_phase': [
|
|
471
|
-
2
|
|
472
|
-
],
|
|
473
|
-
'rings': [],
|
|
474
|
-
'curTime': 43,
|
|
475
|
-
'syncTime': 64
|
|
476
|
-
}
|
|
345
|
+
choosedPedDirection: [3]
|
|
477
346
|
}
|
|
478
347
|
},
|
|
479
348
|
components: {
|