openatc-components 0.4.93 → 0.4.95
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/ChannelRealtimeIntersection/ChannelRealtimeIntersection.vue +20 -2
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +2 -0
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/ChannelRealtimeIntersection/ChannelRealtimeIntersection.vue +20 -2
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +2 -0
- package/src/views/intersection.vue +13 -17
package/package.json
CHANGED
package/src/kisscomps/components/ChannelRealtimeIntersection/ChannelRealtimeIntersection.vue
CHANGED
|
@@ -12,8 +12,13 @@
|
|
|
12
12
|
<!--通道实时状态路口图-->
|
|
13
13
|
<template>
|
|
14
14
|
<div class="channel-realtime-intersection">
|
|
15
|
+
<channelization
|
|
16
|
+
v-if="isDefaultShowQuhua && reset"
|
|
17
|
+
ref="channelization"
|
|
18
|
+
:AgentId="this.AgentId"
|
|
19
|
+
:crossStatusData="realTimeChannelData" />
|
|
15
20
|
<IntersectionMap
|
|
16
|
-
v-if="reset"
|
|
21
|
+
v-if="!isDefaultShowQuhua && reset"
|
|
17
22
|
ref="intersectionMap"
|
|
18
23
|
channelType
|
|
19
24
|
:crossStatusData="crossStatusData"
|
|
@@ -28,6 +33,7 @@
|
|
|
28
33
|
import IntersectionMap from '../IntersectionMap/intersectionmap'
|
|
29
34
|
import { queryDevice } from '../../../api/control.js'
|
|
30
35
|
import { getMessageByCode } from '../../../utils/responseMessage.js'
|
|
36
|
+
import { getChannelizatonChart } from '../../../api/cross'
|
|
31
37
|
|
|
32
38
|
export default {
|
|
33
39
|
name: 'channel-realtime-intersection',
|
|
@@ -81,7 +87,8 @@ export default {
|
|
|
81
87
|
return {
|
|
82
88
|
reset: true,
|
|
83
89
|
crossStatusData: {},
|
|
84
|
-
isThirdSignal: false
|
|
90
|
+
isThirdSignal: false,
|
|
91
|
+
isDefaultShowQuhua: true
|
|
85
92
|
}
|
|
86
93
|
},
|
|
87
94
|
methods: {
|
|
@@ -102,6 +109,17 @@ export default {
|
|
|
102
109
|
this.isThirdSignal = this.thirdSignal
|
|
103
110
|
}
|
|
104
111
|
})
|
|
112
|
+
},
|
|
113
|
+
async getChannelizatonChart () {
|
|
114
|
+
this.isDefaultShowQuhua = false
|
|
115
|
+
getChannelizatonChart(this.agentId).then(data => {
|
|
116
|
+
if (!data.data.success) {
|
|
117
|
+
return
|
|
118
|
+
}
|
|
119
|
+
if (data.data.success === true && data.data.data !== undefined && JSON.stringify(data.data.data) !== '{}' && data.data.data.isDefaultShowQuhua === true) {
|
|
120
|
+
this.isDefaultShowQuhua = true
|
|
121
|
+
}
|
|
122
|
+
})
|
|
105
123
|
}
|
|
106
124
|
},
|
|
107
125
|
created () {
|
|
@@ -839,6 +839,8 @@ export default {
|
|
|
839
839
|
this.curChooseIconIndex = -1
|
|
840
840
|
let savedTemp = JSON.parse(JSON.stringify(this.LoadedChannelizatonData))
|
|
841
841
|
let arr = []
|
|
842
|
+
this.isDefaultShowQuhua = savedTemp.isDefaultShowQuhua
|
|
843
|
+
delete savedTemp.isDefaultShowQuhua
|
|
842
844
|
for (const [key, value] of Object.entries(savedTemp)) {
|
|
843
845
|
if (key === 'vehile') {
|
|
844
846
|
this.Motorways = value
|
|
@@ -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',
|